Skip to content

Accelerate deployment ng new project #23449

Closed

Description

@splincode

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[x] Other... Please describe: Build improvements

Current behavior

In total, to run the first application, and the usual demo, I need to spend 6 minutes until it installs all the packages. This is sometimes very annoying.

$ ng new demo
349.36 sec ~ 6 min
Project 'demo' successfully created

If we use Vue then we can simply add a script

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Vue CDN</title>
</head>
<body>
    ...
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.13/dist/vue.js"></script>
</body>
</html>

And all, you can write to start the application or if you usage vue init it's best start config cli

Expected behavior

$ ng new project
? default install all dependencies (Y/n) n
# ========================
? Install @angular/router? (Y/n) n
? Use TSLint to lint your code? (Y/n) n
? Set up unit tests Karma (Y/n) n
? Setup e2e tests with Protractor? (Y/n) n
# Project initialization finished!
# ========================
To get started:

  ng serve

Documentation can be found at https://angular.io/guide/quickstart

If you make a customizable way to install the application, you could create simple applications faster.

Activity

  1. Toxicable commented on Apr 19, 2018

    @Toxicable

    https://github.com/angular/angular-cli
    Already does this.
    just replace the Q and A interface with CLI flags

  2. splincode commented on Apr 19, 2018

    @splincode
    ContributorAuthor

    @Toxicable why am I not aware of this? and where examples in the official quickstart documentation

  3. trotyl commented on Apr 19, 2018

    @trotyl
    Contributor

    You can already use whatever schematics in ng new command.

  4. splincode commented on Apr 19, 2018

    @splincode
    ContributorAuthor

    @trotyl Where are the documentation and examples?)

    ng-cli@1.7 ? or ng-cli@6 ?

  5. Toxicable commented on Apr 19, 2018

    @Toxicable
  6. trotyl commented on Apr 19, 2018

    @trotyl
    Contributor

    The feature was added in CLI 1.4.0: https://github.com/angular/angular-cli/releases/tag/v1.4.0-beta.1

    Seems the doc is indeed outdated, PR found in angular/angular-cli#9170

  7. splincode commented on Apr 19, 2018

    @splincode
    ContributorAuthor

    This is not exactly what I would like to have by default
    You are talking about schemes

  8. trotyl commented on Apr 19, 2018

    @trotyl
    Contributor

    The default schematics used will obviously follow the best practices, which is the current behavior.

  9. vicb commented on Apr 20, 2018

    @vicb
    Contributor

    This is handled by the CLI.

  10. angular-automatic-lock-bot commented on Sep 13, 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.

  11. locked and limited conversation to collaborators on Sep 13, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions