Skip to content
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

Build plugin in watch mode #5

Open
haskelcurry opened this issue Jun 25, 2019 · 2 comments
Open

Build plugin in watch mode #5

haskelcurry opened this issue Jun 25, 2019 · 2 comments

Comments

@haskelcurry
Copy link

Hi! First of all, thanks for your brilliant research and solution!
My question is about the "dev" (debug) mode. How do you guys do it?
Are you rebuilding the plugin with AOT every time you change something in the code?
I'd like to at least have the plugins to rebuild on code change automatically, but when I add --watch to build:plugin1, it goes into forever loop...
Any ideas on how to fix that?
Thank you! 🙏

@piyushmanurkar
Copy link

Any solution for this?

@jhasenfuss
Copy link

jhasenfuss commented Apr 21, 2020

Hi,
in case you haven't found a solution yet. This is my simple solution:
If you comment out this line, the main.ts no longer gets cleared.

   return super.run(builderConfig).pipe(
      tap(() => {
        // clear entry point so our main.ts is always empty
        // this.patchEntryPoint(''); <--------
      })
    );

run: .\builders>tsc --project tsconfig.builders.json

But this will only work, if you run one plugin.
If you need two or more, you can copy the project-configuration in the angular.json file and adjust the paths to the main.ts files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants