Watchable builds

This commit is contained in:
Tony Garnock-Jones 2021-01-25 22:14:15 +01:00
parent c82918d9a0
commit 7332096828
6 changed files with 13 additions and 6 deletions

View File

@ -11,7 +11,9 @@
"scripts": {
"prepare": "npm run compile && npm run rollup",
"compile": "../../node_modules/.bin/tsc",
"rollup": "../../node_modules/.bin/rollup -c"
"compile-watch": "../../node_modules/.bin/tsc -w",
"rollup": "../../node_modules/.bin/rollup -c",
"rollup-watch": "../../node_modules/.bin/rollup -c -w"
},
"main": "dist/syndicate-compiler.js",
"module": "lib/index.js",

View File

@ -11,7 +11,9 @@
"scripts": {
"prepare": "npm run compile && npm run rollup",
"compile": "../../node_modules/.bin/tsc",
"compile-watch": "../../node_modules/.bin/tsc -w",
"rollup": "../../node_modules/.bin/rollup -c",
"rollup-watch": "../../node_modules/.bin/rollup -c -w",
"test": "../../node_modules/.bin/jest",
"cover": "../../node_modules/.bin/nyc --reporter=html ../../node_modules/.bin/jest"
},

View File

@ -10,7 +10,8 @@
"repository": "github:syndicate-lang/syndicate-js",
"scripts": {
"prepare": "npm run compile",
"compile": "../../node_modules/.bin/tsc"
"compile": "../../node_modules/.bin/tsc",
"compile-watch": "../../node_modules/.bin/tsc -w"
},
"author": "Tony Garnock-Jones <tonyg@leastfixedpoint.com>",
"dependencies": {

View File

@ -10,7 +10,8 @@
"repository": "github:syndicate-lang/syndicate-js",
"scripts": {
"prepare": "npm run compile",
"compile": "../../node_modules/.bin/tsc"
"compile": "../../node_modules/.bin/tsc",
"compile-watch": "../../node_modules/.bin/tsc -w"
},
"main": "lib/index.js",
"types": "lib/index.d.ts",

View File

@ -10,7 +10,8 @@
"repository": "github:syndicate-lang/syndicate-js",
"scripts": {
"prepare": "npm run compile",
"compile": "../../node_modules/.bin/tsc"
"compile": "../../node_modules/.bin/tsc",
"compile-watch": "../../node_modules/.bin/tsc -w"
},
"author": "Tony Garnock-Jones <tonyg@leastfixedpoint.com>",
"dependencies": {

View File

@ -16,12 +16,12 @@ open() {
for d in packages/*/tsconfig.json
do
open "cd $(dirname $d); ../../node_modules/.bin/tsc -w"
open "cd $(dirname $d); npm run compile-watch"
done
for d in packages/*/rollup.config.js
do
open "cd $(dirname $d); npx rollup -c -w"
open "cd $(dirname $d); npm run rollup-watch"
done
tmux select-layout even-vertical