Closed
Description
Please consider add some options to make this tool more convenient.
--clean
: remove theoutDir
directory before every compilation. (This option extends Add--onEachCompilationStarted
option #169)--copyfiles
: copy non-ts/js files tooutDir
. This is an important feature thattsc
lacks of. We still have no elegant solution. I hope this tool can solve it.--no-watch
: With this option, we can focus this tool only. Otherwise, we have to face bothtsc
andtsc-watch
. It's not very convenient. More Please add a --no-watch option #154
Without these options and #169, I have to write scripts below and install 3 pkgs (rimraf, copyfiles, nodemon). I hope this tool can help like NODE_ENV=local tsc-watch --clean --copyfiles --onSuccess 'node bootstrap.js'
. It's much more clear and elegant!
{
"scripts": {
"clean": "rimraf dist",
"compile": "tsc -p tsconfig.build.json",
"copy-files": "copyfiles -u 1 src/**/*.json dist",
"build": "npm run clean && npm run compile && npm run copy-files",
"dev": "NODE_ENV=local nodemon -w src -e ts --exec 'npm run build && node bootstrap.js'",
}
}
Metadata
Metadata
Assignees
Labels
No labels