Skip to content

Commit 3acd915

Browse files
committed
chore: remove package scripts from main
1 parent 1b03030 commit 3acd915

File tree

3 files changed

+11
-21
lines changed

3 files changed

+11
-21
lines changed

.husky/pre-commit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
make frontend-lint
2-
3-
make http-fmt
2+
make http-lint
43
make http-test

Makefile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,24 @@ env-encrypt:
55
sh cli/encrypt.sh
66

77
frontend-build:
8-
pnpm frontend:build
8+
cd frontend && pnpm build
99

1010
frontend-deploy:
1111
cd frontend && pnpm build
1212
vercel build
1313
vercel --prod
1414

1515
frontend-dev:
16-
pnpm frontend:dev
16+
cd frontend && pnpm dev
1717

1818
frontend-lint:
19-
cd frontend && tsc --noEmit
20-
pnpm frontend:lint
19+
cd frontend && tsc && pnpm lint
2120

2221
frontend-test:
23-
pnpm frontend:test
22+
cd frontend && pnpm test
2423

2524
http-run:
26-
cd http && dotenvx run -f .env.production -- go run cmd/api-server/main.go
25+
dotenvx run -f http/.env.production -- go run ./http/cmd/api-server/main.go
2726

2827
http-build:
2928
cd http/cmd/api-server && dotenvx run -f ../../.env.production -- go build
@@ -32,9 +31,9 @@ http-test:
3231
cd http/cmd/api-server && dotenvx run -f ../../.env.production -- go build
3332
rm http/cmd/api-server/api-server
3433

35-
http-fmt:
36-
cd http && gofmt -w ./cmd/api-server/main.go
34+
http-lint:
35+
gofmt -w ./http/cmd/* ./http/internal/
3736

3837
bump:
39-
pnpm bump
38+
sh cli/bump.sh
4039

package.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,11 @@
33
"version": "1.0.8",
44
"description": "Instructor - Personal VTA",
55
"scripts": {
6-
"bump": "sh cli/bump.sh",
7-
"prepare": "husky",
8-
"frontend:dev": "cd frontend && pnpm run dev",
9-
"frontend:build": "cd frontend && pnpm run build",
10-
"frontend:start": "cd frontend && pnpm run start",
11-
"frontend:lint": "cd frontend && pnpm run lint:fix",
12-
"frontend:test": "cd frontend && pnpm run test",
13-
"env:decrypt": "sh cli/decrypt.sh",
14-
"env:encrypt": "sh cli/encrypt.sh"
6+
"prepare": "husky"
157
},
168
"dependencies": {
179
"husky": "^9.1.7",
1810
"semver": "^7.7.2"
1911
},
2012
"packageManager": "pnpm@9.9.0+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1"
21-
}
13+
}

0 commit comments

Comments
 (0)