mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
chore(monorepo): scripts to build globally
This commit is contained in:
parent
bc42038e01
commit
b3946db40a
@ -20,7 +20,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:webpack": "tsx node_modules/webpack/bin/webpack.js -c webpack.config.ts",
|
"build:webpack": "tsx ../../node_modules/webpack/bin/webpack.js -c webpack.config.ts",
|
||||||
"test": "vitest"
|
"test": "vitest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
12
package.json
12
package.json
@ -13,13 +13,15 @@
|
|||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm --workspace=apps/client --workspace=apps/server test",
|
"build": "npm run client:build && npm run server:build",
|
||||||
|
"test": "npm --workspace=apps/client --workspace=apps/server run test",
|
||||||
|
|
||||||
"client:test": "npm --workspace=apps/client test",
|
"client:test": "npm --workspace=apps/client run test",
|
||||||
"client:build": "npm --workspace=apps/client build:webpack",
|
"client:build": "npm --workspace=apps/client run build:webpack",
|
||||||
|
|
||||||
"server:test": "npm --workspace=apps/server test",
|
"server:test": "npm --workspace=apps/server run test",
|
||||||
"server:coverage": "npm --workspace=apps/server coverage",
|
"server:coverage": "npm --workspace=apps/server run coverage",
|
||||||
|
"server:build": "npm --workspace=apps/client run build:ts",
|
||||||
|
|
||||||
"chore:ci-update-nightly-version": "tsx ./scripts/update-nightly-version.ts",
|
"chore:ci-update-nightly-version": "tsx ./scripts/update-nightly-version.ts",
|
||||||
"chore:update-build-info": "tsx ./scripts/update-build-info.ts"
|
"chore:update-build-info": "tsx ./scripts/update-build-info.ts"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user