mirror of
https://github.com/status-im/js-waku.git
synced 2025-02-23 02:18:25 +00:00
chore: only build what is necessary to test
Script to build enough to run tests locally and in CI (skip bundling).
This commit is contained in:
parent
afa7262604
commit
3aed340cb2
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -52,7 +52,7 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ env.NODE_JS }}
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- run: npm run build
|
||||
- run: npm run build:esm
|
||||
- run: npm run test:browser
|
||||
|
||||
node:
|
||||
@ -76,7 +76,7 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ env.NODE_JS }}
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- run: npm run build
|
||||
- run: npm run build:esm
|
||||
- run: npm run test:node
|
||||
env:
|
||||
DEBUG: ""
|
||||
@ -130,7 +130,7 @@ jobs:
|
||||
node-version: ${{ env.NODE_JS }}
|
||||
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- run: npm run build
|
||||
- run: npm run build:esm
|
||||
- run: npm run test:node
|
||||
env:
|
||||
DEBUG: "waku:nwaku*,waku:test*"
|
||||
@ -184,7 +184,7 @@ jobs:
|
||||
cd nwaku
|
||||
./build/wakunode2 --help
|
||||
|
||||
- run: npm run build
|
||||
- run: npm run build:esm
|
||||
- run: npm run test:node
|
||||
env:
|
||||
DEBUG: "waku:nwaku*,waku:test*"
|
||||
|
@ -18,6 +18,7 @@
|
||||
"scripts": {
|
||||
"prepare": "husky install",
|
||||
"build": "npm run build --workspaces --if-present",
|
||||
"build:esm": "npm run build:esm --workspaces --if-present",
|
||||
"size": "npm run build && size-limit",
|
||||
"fix": "npm run fix --workspaces --if-present",
|
||||
"check": "npm run check --workspaces --if-present",
|
||||
|
@ -32,7 +32,8 @@
|
||||
"privacy"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"build": "run-s build:**",
|
||||
"build:esm": "tsc",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:prettier": "prettier . --write",
|
||||
"fix:lint": "eslint src --ext .ts --ext .cjs --fix",
|
||||
|
Loading…
x
Reference in New Issue
Block a user