question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Development workflow with watch mode

See original GitHub issue

Hi ! I’m not seeing a way to watch files changes with ng-packagr, do you plan to add this ? Edit: using ng-packaged if I run yarn build:lib while ng serve is running, it break. How do you develop a lib with ng-packagr ? (sorry I’m totally lost…)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ar-arkhipovcommented, Nov 14, 2017

@ronnyek , Hello. I’ve built simple library example, which is based on basic angular-cli app and ng-packagr. It has preview app inside, supports demo/developer mode and can be easily imported into your running angular5 apps. I’ve also added compodoc and live-rebuild mode to make it a bit more cool.

Check it out here: https://github.com/Tamango92/yo-lib Read the docs (sorry in advance, I am not good in writing nice docs), feel free to rename lib in local package.json file and replace all ‘yo-’ prefixes with your own.

1reaction
dhergescommented, Jul 27, 2017

@Wykks One more note: it is possible to use ng-packagr together with a generic file watcher tool like chokidar or chokidar-cli.

From their docs, you can try:

$ chokidar '**/*.html' '**/*.ts' | ng-packagr
Read more comments on GitHub >

github_iconTop Results From Across the Web

Development workflow - GraphQL Code Generator
By default, watch mode uses the system's native support to listen for file change events. This can be configured in the settings file...
Read more >
[MVP] Watch mode · Issue #21 · evanw/esbuild - GitHub
I want esbuild to demonstrate that it's possible for a normal web development workflow to have high-performance tools. I consider watch mode ......
Read more >
Increasing development speed with CDK Watch - AWS
cdk watch makes development faster by monitoring your code and assets for changes and automatically performing the optimal form of deployment ...
Read more >
Watch Mode - StealJS
The --watch mode is meant to be used in development, to make it possibly to quickly iterate on an application. Although it creates...
Read more >
Watch modes in Cloud Code for IntelliJ
You can configure watch mode in the Cloud Code Kubernetes and Cloud Run ... This is available for Kubernetes development and Cloud Run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found