You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more like feature and maybe this is already in the list.
Even all works great, I would like to extends angular-cli and have some hooks available, to I can plug in my custom-command that can be called everytime I spin a build, or anything while on ng serve I change something and the build refreshes.
ideally the command would be outside of node_modules/
As I understand the cli is based on ember-cli, which supports the install action for installing addons:
Ember CLI will detect the presence of an addon by inspecting each of your applications dependencies and search their package.json files for the presence of ember-addon in the keywords section
See DEVELOPING ADDONS AND BLUEPRINTS
We just added customizable blueprints (#7090, docs are still being created) so that bit is customizable, but there isn't any build step customization yet.
An addon system has been promised as solution for extending the default webpack configuration. Currently, I cannot even do such a simple thing as adding a loader for *.graphql files without hacking node_modules/@angular/cli/models/webpack-configs/common.js.
If it will take too long to provide a proper addon system, it would be helpful to re-consider #1656 and at least provide an interim way of injecting webpack loaders using the angular-cli.json cofiguration. I really don't want to eject angular-cli just to be able to import *.graphql files.
Reacted by Mitchell, David MacGugan, AntoineC, Kam Figy, Akos Tothmarton, 4F2E4A2E, João Dias and Oren Trutner
Activity
grizzm0 commentedon Oct 26, 2016
You can create scripts in package.json that chains multiple commands together. And live-reload on ng serve is already a thing...
fkolar commentedon Oct 26, 2016
Right lets say I can use package.json from where I will execute a command, but does not help with live-reload - when running ng serve
filipesilva commentedon Nov 2, 2016
We plan to support addons in the future, yes. It's a post 1.0 concern at the moment.
tuvokki commentedon Mar 11, 2017
As I understand the cli is based on ember-cli, which supports the
installaction for installing addons:Is it possible to enable this?
feat(@angular/cli): add custom addon possiblity for custom commands (a…
filipesilva commentedon May 22, 2017
Just wanted to give an update: 1.0 is currently released, and we are looking at the design of an addon system for future major versions.
fkolar commentedon May 22, 2017
This is good news!! Is this going to be under wiki to look at ?
fkolar commentedon Aug 18, 2017
Are there any news on this ?
filipesilva commentedon Aug 21, 2017
We just added customizable blueprints (#7090, docs are still being created) so that bit is customizable, but there isn't any build step customization yet.
fkolar commentedon Aug 21, 2017
I see. I will just have to wait for this addons support that maybe allows me to extends or customize build steps. Any timeline for this?
But thanks for the prompt reply.
filipesilva commentedon Aug 21, 2017
No time to share yet, no. But will try to share it as soon as we can.
1 remaining item
Cito commentedon Oct 20, 2017
An addon system has been promised as solution for extending the default webpack configuration. Currently, I cannot even do such a simple thing as adding a loader for *.graphql files without hacking node_modules/@angular/cli/models/webpack-configs/common.js.
If it will take too long to provide a proper addon system, it would be helpful to re-consider #1656 and at least provide an interim way of injecting webpack loaders using the angular-cli.json cofiguration. I really don't want to eject angular-cli just to be able to import *.graphql files.
fkolar commentedon Oct 20, 2017
Yeah. I am hacking too few files and next to it I have to have my own CLI script that initialize a few things ;-(
chadbr commentedon Dec 5, 2017
@filipesilva
Any updates / branches I could look into?
I'm basically at a standstill on some authorization workflows I need to do...
I'm not sure if I should fork / maintain merges or... what.
Thanks - Chad
4F2E4A2E commentedon Feb 9, 2018
I thought it's happening
alfaproject commentedon Feb 24, 2018
Sucks not having an easy way to add a loader for
.graphqlfiles. ):jonahbron commentedon Mar 2, 2018
Having pre-build hooks would be really nice for compiling GRPC-Web stubs.
hansl commentedon Aug 23, 2018
I'm going to close this as Architect and Schematics are covering those bases. Architect is going to be stable in 7.0.
chadbr commentedon Aug 23, 2018
@hansl great stuff by the way - congrats!
angular-automatic-lock-bot commentedon Sep 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.