Skip to content

Feature Request: cli command to automate installation of 3rd party libraries #1114

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

Closed
jetfontanilla opened this issue Jun 17, 2016 · 2 comments

Comments

@jetfontanilla
Copy link

Right now, it seems that adding 3rd party vendor libraries is very cumbersome based on the current documentation:
https://github.com/angular/angular-cli/wiki/3rd-party-libs

imagine adding 3 vendor libraries into your project, and you have to repeat all of these steps for each library you add. not to mention each step is a potential case for an error to happen

my current proposal is that we have a cli command like:
ng install lodash

which does the following:

1 does npm install lodash
2 install the typings for the library

it should also be able to figure out which typing command to use:

  • typings install lodash --save --ambient
  • typings install dt~lodash --save --ambient
  • typings install lodash --save --global

or if we use typescript's planned api: https://blogs.msdn.microsoft.com/typescript/2016/06/15/the-future-of-declaration-files/

  • npm install --save @types/lodash

3 adds the library to the angular-cli-build.js file
4 adds the mapping for system-config.ts

@filipesilva
Copy link
Contributor

Dupe (of sorts) of #882.

Your post does add some more information but it is better if it's added on that issue, otherwise this discussion will become even more fragmented than it already is (there are some 5 different issues at least that talk about it).

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants