Skip to content

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

Description

@jetfontanilla

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

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions