Skip to content

Commit bd5e02f

Browse files
author
Ian
committed
playing with build script in package.json. added new shell script to handle just building sip.js
1 parent 4a3e794 commit bd5e02f

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

build-sip.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# build sip.js so the next step works. not needed when using sip.js packages from npm
2+
cd node_modules/sip.js
3+
yarnpkg install
4+
# these two commands are run by the "yarnpkg run build" but it explicitly invokes npm and we only have yarn, so we do this
5+
yarnpkg run generate-grammar
6+
yarnpkg run build-lib
7+
cd ../..

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
"private": true,
77
"scripts": {
88
"dev": "vite",
9-
"build": "npm-run-all build-only",
9+
"build": "run-p build-sip && run-p build-only",
1010
"preview": "vite preview",
1111
"build-only": "vite build",
12+
"build-sip": "sh ./build-sip.sh",
1213
"type-check": "vue-tsc --noEmit",
1314
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
1415
"format": "prettier --write src/"
@@ -26,6 +27,7 @@
2627
"@vitejs/plugin-vue": "^6.0.3",
2728
"@vue/eslint-config-prettier": "^10.2.0",
2829
"@vue/eslint-config-typescript": "^14.6.0",
30+
"vue-eslint-parser": "^10.2.0",
2931
"@vue/tsconfig": "^0.8.1",
3032
"eslint": "^9.39.2",
3133
"eslint-plugin-vue": "^10.6.2",
@@ -34,7 +36,6 @@
3436
"typescript": "~5.9.3",
3537
"uuid": "13.0.0",
3638
"vite": "^7.3.0",
37-
"vue-eslint-parser": "^10.2.0",
3839
"vue-tsc": "^3.2.1"
3940
}
4041
}

0 commit comments

Comments
 (0)