Skip to content

[Feature Request]: Integrating with angular/cli #2850

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
sandangel opened this issue Oct 30, 2017 · 5 comments
Closed

[Feature Request]: Integrating with angular/cli #2850

sandangel opened this issue Oct 30, 2017 · 5 comments
Milestone

Comments

@sandangel
Copy link

sandangel commented Oct 30, 2017

Since angular/cli 1.5, we could use schematics to generate project boilerplate. So I think it is possible to integrate ionic with angular/cli to take the advantages of:

1/ make use of --build-optimizer to reduce bundle size.
2/ using angular/bazel for blazing fast 2s production build which will release about next year.
3/ building web components not only by stencil, but also by brand new angular/elements package.
4/ environment variable support: We don't have to do some workarounds as described in this issue.
5/ optional adding cordova support, If we are building PWA, we won't need cordova.

You can take a look at ngx-rocket. They did a great job but there is still some warning about crucial dependencies in console when serving app.

@imhoffd
Copy link
Contributor

imhoffd commented Oct 31, 2017

@sandangel I took a look at Angular schematics a little while ago and it's not quite ready yet for other players. I'm excited to do some work on our generators, too. See #2407.

For 5 -> #2595

As for the rest, I need to investigate the rest a bit more. Perhaps @danbucholtz knows more.

@imhoffd imhoffd added this to the CLI Future milestone Oct 31, 2017
@sandangel
Copy link
Author

sandangel commented Oct 31, 2017

@dwieeb thanks for your answer. I know that angular schematics is not ready yet, but It will, soon. You can take a look at @nrwl, they had an early adoption of angular/schematics, with experimental feature angular/bazel build tool. This is really amazing. At this time ionic build takes about 15~20s for webpack stuffs. It will be a huge boost for end users, as well as for Ionic Pro cloud build with angular/bazel. Can't wait to see this.

@jdnichollsc
Copy link

jdnichollsc commented Feb 8, 2018

+1 I'm getting the same warning using the angular-cli in this POC (Code sharing between web and mobile using Ionic only for web) https://github.com/proyecto26/nativescript-ionic-template

@imhoffd
Copy link
Contributor

imhoffd commented Feb 9, 2018

The Ionic CLI will use the Angular CLI for tooling in CLI v4, which supports Ionic Angular v4. The CLI will also continue to support Ionic Angular v2/v3 with @ionic/app-scripts for tooling.

@imhoffd imhoffd closed this as completed Feb 10, 2018
@jdnichollsc
Copy link

Excellent news! thanks guys! 👍

@ionic-team ionic-team locked and limited conversation to collaborators Feb 13, 2018
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

3 participants