Add watch rules to the makefile
This commit is contained in:
parent
b0e2a9e6d4
commit
a7a7560201
1 changed files with 13 additions and 1 deletions
|
|
@ -13,4 +13,16 @@ esm:
|
|||
cjs:
|
||||
mkdir $(CJS_LOCATION) --parents
|
||||
tsc --module commonjs --outDir $(CJS_LOCATION)
|
||||
cp ./package.template.json $(CJS_LOCATION)/package.json
|
||||
cp ./package.template.json $(CJS_LOCATION)/package.json
|
||||
|
||||
watch:
|
||||
@echo To have Typescript auto-rebuild, run the following commands in new terminals
|
||||
@echo "\tmake watch-esm"
|
||||
@echo "\tmake watch-cjs"
|
||||
@echo These processes will not terminate, which is why they cannot be run in the same rule
|
||||
|
||||
watch-esm:
|
||||
tsc --module es6 --outDir $(ESM_LOCATION) --watch
|
||||
|
||||
watch-cjs:
|
||||
tsc --module commonjs --outDir $(CJS_LOCATION) --watch
|
||||
Loading…
Add table
Add a link
Reference in a new issue