Skip to content

Commit 2757be5

Browse files
authored
chore(scripts): reorganize build commands for clarity (#611)
* chore(scripts): reorganize build commands for clarity - Rename 'build:all' to 'build:workspaces' for better naming - Create separate 'build:front' for frontend build (esbuild) - Update main 'build' to run both build:front and build:workspaces * chore(workflows): update build command to use build:workspaces
1 parent e202c1a commit 2757be5

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

.github/workflows/cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434
- name: Install dependencies
3535
run: npm install --ignore-scripts
3636
- name: Build
37-
run: npm run build:all
37+
run: npm run build:workspaces
3838
- name: Run tests
3939
run: npm run test -w workspaces/cache

.github/workflows/server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434
- name: Install dependencies
3535
run: npm install --ignore-scripts
3636
- name: Build
37-
run: npm run build:all
37+
run: npm run build:workspaces
3838
- name: Run tests
3939
run: npm run test -w workspaces/server

.github/workflows/size-satisfies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434
- name: Install dependencies
3535
run: npm install --ignore-scripts
3636
- name: Build
37-
run: npm run build:all
37+
run: npm run build:workspaces
3838
- name: Run tests
3939
run: npm run test

.github/workflows/vis-network.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434
- name: Install dependencies
3535
run: npm install --ignore-scripts
3636
- name: Build
37-
run: npm run build:all
37+
run: npm run build:workspaces
3838
- name: Run tests
3939
run: npm run test

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
"lint:css": "stylelint \"**/*.css\"",
1717
"lint-fix": "npm run lint -- --fix",
1818
"prepublishOnly": "rimraf ./dist && npm run build && pkg-ok",
19-
"build": "node ./esbuild.config.js",
20-
"build:all": "npm run build --ws --if-present",
19+
"build": "npm run build:front && npm run build:workspaces",
20+
"build:front": "node ./esbuild.config.js",
21+
"build:workspaces": "npm run build --ws --if-present",
2122
"test": "npm run test:cli && npm run lint && npm run lint:css",
2223
"test:cli": "glob -c \"node --no-warnings --test-concurrency 1 --test\" \"test/**/*.test.js\"",
2324
"test:all": "npm run test --ws --if-present",

0 commit comments

Comments
 (0)