-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable tsc watch in projects scaffolded by lb4 CLI tool #1259
Comments
related to #1234 (difference being a
Shouldn't |
@virkt25 You'd like the information to be in the README as opposed to |
Ooh ok. I thought he meant the the I'm ok with a |
Sorry for the confusion! Yes, I meant to add What's important to me: when we scaffold an application using a non-trivial build setup (i.e. TypeScript), the scaffolded app should contain documentation on how actually develop the app and work with/in the build system configured. Whether the content goes to README or Developing file, that's an implementation detail as far as I am concerned. |
I had a similar requirement and simply replaced the start command with a tsc-watch instruction (it is like
Next, update
And finally replace the start command in
By using the '--inspect' command option, I can use vscode to attach to the running process. |
Description / Steps to reproduce / Feature proposal
Our old extension starter repository has a neat dev setup that enables quick red-green-refactor cycles by leveraging incremental transpilation via
tsc --watch
, see DEVELOPING.md:We should update the empty project template used by our CLI tooling to include similar configuration.
It's important to enable
tsc --watch
not only for people using VisualStudio Code, but also for users of different editors/IDEs. See the extension starter repo for inspiration: Other editors/IDEsAcceptance criteria
Modify the project template in
packages/cli
to:build:watch
andtest:dev
scripts to package.json, see the [starter repo](https://github.com/strongloop/loopback4-extension-starter/blob/e9062ca01f9bff28d6d2ebe077cba84c242ae96e/package.jsonDeveloping.md
document to the scaffolded applicationexplaining users our envisioned dev workflow, I think it's enough to mostly copy the contents from the starter repo.The steps above should be applied to all relevant CLI project templates.
See Reporting Issues for more tips on writing good issues
The text was updated successfully, but these errors were encountered: