8000 Add some options · Issue #170 · gilamran/tsc-watch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add some options #170
Closed
Closed
@zanminkian

Description

@zanminkian

Please consider add some options to make this tool more convenient.

  • --clean: remove the outDir directory before every compilation. (This option extends Add --onEachCompilationStarted option #169)
  • --copyfiles: copy non-ts/js files to outDir. This is an important feature that tsc 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 both tsc and tsc-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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0