Watchable builds
This commit is contained in:
parent
c82918d9a0
commit
7332096828
|
@ -11,7 +11,9 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "npm run compile && npm run rollup",
|
"prepare": "npm run compile && npm run rollup",
|
||||||
"compile": "../../node_modules/.bin/tsc",
|
"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",
|
"main": "dist/syndicate-compiler.js",
|
||||||
"module": "lib/index.js",
|
"module": "lib/index.js",
|
||||||
|
|
|
@ -11,7 +11,9 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "npm run compile && npm run rollup",
|
"prepare": "npm run compile && npm run rollup",
|
||||||
"compile": "../../node_modules/.bin/tsc",
|
"compile": "../../node_modules/.bin/tsc",
|
||||||
|
"compile-watch": "../../node_modules/.bin/tsc -w",
|
||||||
"rollup": "../../node_modules/.bin/rollup -c",
|
"rollup": "../../node_modules/.bin/rollup -c",
|
||||||
|
"rollup-watch": "../../node_modules/.bin/rollup -c -w",
|
||||||
"test": "../../node_modules/.bin/jest",
|
"test": "../../node_modules/.bin/jest",
|
||||||
"cover": "../../node_modules/.bin/nyc --reporter=html ../../node_modules/.bin/jest"
|
"cover": "../../node_modules/.bin/nyc --reporter=html ../../node_modules/.bin/jest"
|
||||||
},
|
},
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
"repository": "github:syndicate-lang/syndicate-js",
|
"repository": "github:syndicate-lang/syndicate-js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "npm run compile",
|
"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>",
|
"author": "Tony Garnock-Jones <tonyg@leastfixedpoint.com>",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
"repository": "github:syndicate-lang/syndicate-js",
|
"repository": "github:syndicate-lang/syndicate-js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "npm run compile",
|
"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",
|
"main": "lib/index.js",
|
||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.ts",
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
"repository": "github:syndicate-lang/syndicate-js",
|
"repository": "github:syndicate-lang/syndicate-js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "npm run compile",
|
"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>",
|
"author": "Tony Garnock-Jones <tonyg@leastfixedpoint.com>",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
4
watchall
4
watchall
|
@ -16,12 +16,12 @@ open() {
|
||||||
|
|
||||||
for d in packages/*/tsconfig.json
|
for d in packages/*/tsconfig.json
|
||||||
do
|
do
|
||||||
open "cd $(dirname $d); ../../node_modules/.bin/tsc -w"
|
open "cd $(dirname $d); npm run compile-watch"
|
||||||
done
|
done
|
||||||
|
|
||||||
for d in packages/*/rollup.config.js
|
for d in packages/*/rollup.config.js
|
||||||
do
|
do
|
||||||
open "cd $(dirname $d); npx rollup -c -w"
|
open "cd $(dirname $d); npm run rollup-watch"
|
||||||
done
|
done
|
||||||
|
|
||||||
tmux select-layout even-vertical
|
tmux select-layout even-vertical
|
||||||
|
|
Loading…
Reference in New Issue