Skip to content

angular-cli: Extensibility #2906

Closed
Closed

Description

@fkolar

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/

Thanks,
-Fk

Activity

  1. grizzm0 commented on Oct 26, 2016

    @grizzm0
    Contributor

    You can create scripts in package.json that chains multiple commands together. And live-reload on ng serve is already a thing...

  2. fkolar commented on Oct 26, 2016

    @fkolar
    Author

    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

  3. filipesilva commented on Nov 2, 2016

    @filipesilva
    Contributor

    We plan to support addons in the future, yes. It's a post 1.0 concern at the moment.

  4. tuvokki commented on Mar 11, 2017

    @tuvokki

    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

    Is it possible to enable this?

  5. filipesilva commented on May 22, 2017

    @filipesilva
    Contributor

    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.

  6. self-assigned this
    on May 22, 2017
  7. fkolar commented on May 22, 2017

    @fkolar
    Author

    This is good news!! Is this going to be under wiki to look at ?

  8. fkolar commented on Aug 18, 2017

    @fkolar
    Author

    Are there any news on this ?

  9. filipesilva commented on Aug 21, 2017

    @filipesilva
    Contributor

    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.

  10. fkolar commented on Aug 21, 2017

    @fkolar
    Author

    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.

  11. filipesilva commented on Aug 21, 2017

    @filipesilva
    Contributor

    No time to share yet, no. But will try to share it as soon as we can.

  12. 1 remaining item

  13. Cito commented on Oct 20, 2017

    @Cito

    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.

  14. fkolar commented on Oct 20, 2017

    @fkolar
    Author

    Yeah. I am hacking too few files and next to it I have to have my own CLI script that initialize a few things ;-(

  15. chadbr commented on Dec 5, 2017

    @chadbr

    @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

  16. added
    featureLabel used to distinguish feature request from other issues
    and removed on Jan 30, 2018
  17. 4F2E4A2E commented on Feb 9, 2018

    @4F2E4A2E

    @hansl hansl unassigned filipesilva 3 days ago

    I thought it's happening

  18. alfaproject commented on Feb 24, 2018

    @alfaproject

    Sucks not having an easy way to add a loader for .graphql files. ):

  19. jonahbron commented on Mar 2, 2018

    @jonahbron

    Having pre-build hooks would be really nice for compiling GRPC-Web stubs.

  20. hansl commented on Aug 23, 2018

    @hansl
    Contributor

    I'm going to close this as Architect and Schematics are covering those bases. Architect is going to be stable in 7.0.

  21. chadbr commented on Aug 23, 2018

    @chadbr

    @hansl great stuff by the way - congrats!

  22. angular-automatic-lock-bot commented on Sep 8, 2019

    @angular-automatic-lock-bot

    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.

  23. locked and limited conversation to collaborators on Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureLabel used to distinguish feature request from other issuestype: faq

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions