Skip to content

Commit e76df8f

Browse files
committed
refactor: add lint and test scripts to package.json for database, song, sounds, and thumbnail packages
1 parent 0785bd5 commit e76df8f

File tree

5 files changed

+31
-16
lines changed

5 files changed

+31
-16
lines changed

package.json

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,29 @@
88
"build:server": "bun run build:data && cd packages/backend && bun run build",
99
"build:web": "cd ./apps/frontend && bun run build",
1010
"start:server": "cd ./packages/backend && bun run start",
11-
"start:server:prod": "cd ./server && bun run start",
12-
"start:web:prod": "cd ./web && bun run start",
11+
"start:server:prod": "cd ./packages/backend && bun run start",
12+
"start:web:prod": "cd ./apps/frontend && bun run start",
1313
"dev": "concurrently --success first -n \"server,web\" --prefix-colors \"cyan,magenta\" --prefix \"{name} {time}\" \"bun run dev:server\" \"bun run dev:web\"",
14-
"dev:web": "cd ./web && bun run dev",
15-
"dev:server": "cd ./server && bun run start:dev",
16-
"lint": "bun run lint:server && bun run lint:web && bun run lint:shared",
17-
"lint:server": "cd ./server && bun run lint",
18-
"lint:web": "cd ./web && bun run lint",
19-
"lint:shared": "cd ./shared && bun run lint",
20-
"test": "bun run test:server && bun run test:shared",
21-
"test:server": "cd ./server && bun run test",
22-
"test:shared": "cd ./shared && bun run test",
14+
"dev:web": "cd ./apps/frontend && bun run dev",
15+
"dev:server": "cd ./packages/backend && bun run start:dev",
16+
"lint": "bun run lint:server && bun run lint:web && bun run lint:database && bun run lint:song && bun run lint:sounds && bun run lint:thumbnail",
17+
"lint:server": "cd ./packages/backend && bun run lint",
18+
"lint:web": "cd ./apps/frontend && bun run lint",
19+
"lint:database": "cd ./packages/database && bun run lint",
20+
"lint:song": "cd ./packages/song && bun run lint",
21+
"lint:sounds": "cd ./packages/sounds && bun run lint",
22+
"lint:thumbnail": "cd ./packages/thumbnail && bun run lint",
23+
"test": "bun run test:server && bun run test:web && bun run test:database && bun run test:song && bun run test:sounds && bun run test:thumbnail",
24+
"test:server": "cd ./packages/backend && bun run test",
25+
"test:web": "cd ./apps/frontend && bun run test",
26+
"test:database": "cd ./packages/database && bun run test",
27+
"test:song": "cd ./packages/song && bun run test",
28+
"test:sounds": "cd ./packages/sounds && bun run test",
29+
"test:thumbnail": "cd ./packages/thumbnail && bun run test",
2330
"cy:open": "bun run test:cy",
2431
"test:cy": "cd ./tests && bun run cy:open",
2532
"prettier": "prettier --write .",
26-
"build:data": "ts-node ./build.ts"
33+
"build:data": "bun ./build.ts"
2734
},
2835
"keywords": [],
2936
"author": "",

packages/database/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"build": "bun run clean && bun run build:js && bun run build:types",
1717
"build:js": "tsc --project tsconfig.build.json --declaration false --emitDeclarationOnly false",
1818
"build:types": "tsc --project tsconfig.build.json --emitDeclarationOnly",
19-
"clean": "rm -rf dist"
19+
"clean": "rm -rf dist",
20+
"lint": "eslint \"src/**/*.ts\" --fix",
21+
"test": "bun test"
2022
},
2123
"devDependencies": {
2224
"@types/bun": "latest",

packages/song/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"scripts": {
1616
"build": "bun run clean && bun build src/index.ts --outdir dist --target node && bun run build:types",
1717
"build:types": "tsc --project tsconfig.build.json",
18-
"clean": "rm -rf dist"
18+
"clean": "rm -rf dist",
19+
"lint": "eslint \"src/**/*.ts\" --fix",
20+
"test": "bun test"
1921
},
2022
"devDependencies": {
2123
"@types/bun": "latest",

packages/sounds/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"scripts": {
1616
"build": "bun run clean && bun build src/index.ts --outdir dist --target node && bun run build:types",
1717
"build:types": "tsc --project tsconfig.build.json",
18-
"clean": "rm -rf dist"
18+
"clean": "rm -rf dist",
19+
"lint": "eslint \"src/**/*.ts\" --fix",
20+
"test": "bun test"
1921
},
2022
"devDependencies": {
2123
"@types/bun": "latest",

packages/thumbnail/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"scripts": {
1616
"build": "bun run clean && bun build src/index.ts --outdir dist --target node && bun run build:types",
1717
"build:types": "tsc --project tsconfig.build.json",
18-
"clean": "rm -rf dist"
18+
"clean": "rm -rf dist",
19+
"lint": "eslint \"src/**/*.ts\" --fix",
20+
"test": "jest"
1921
},
2022
"devDependencies": {
2123
"@types/bun": "latest",

0 commit comments

Comments
 (0)