facebook

ng new project –skip-git –style=scss –router

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #576366 Reply

    Marvin Toll
    Participant

    I would like to be able to create a new project as follows:

    ng new project –skip-git –style=scss –router

    However, it seems the new project wizard is hard-coded as follows:

    npm install @angular/cli@1.7.3
    ng new project –skip-git
    npm install –save-dev angular-ide

    Is there anyway to override the default and/or modify the generated CLI project?

    #576803 Reply

    support-swapna
    Moderator

    Marvin,

    I am afraid there is no way to customize the project creation commands at this point of time. An enhancement request is already filed for the dev team to support it. We will keep you posted when the support is added.

    You can change the default css preprocessor of an existing angular project by running this command for the project in the Terminal+ view (ensure the right project is selected in the dropdown box):
    ng set defaults.styleExt scss

    So as a workaround, you can create angular project using the New Angular Project wizard and then change the default css preprocessor as suggested above.

    Please refer to this thread which discusses similar issue for more details : https://stackoverflow.com/questions/36220256/angular-cli-sass-options/41541042

    Hope this helps. Please let us know how it works for you.

    –Swapna
    MyEclipse Support

    #581905 Reply

    Marvin Toll
    Participant

    Regarding scss… there are two distinct outcomes when using (1) new project vs. the (2) set after the project is created. The implications of these distinctions is not entirely clear:

    1. app.component.scss
    2. app.component.css

    #581913 Reply

    Marvin Toll
    Participant

    With the inability to use “ng new project –router” results in the following artifact not being generated:

    app.routing.module.ts

    Can this module simply be created outside of Webclipse… or, are there additional implications?

    #581940 Reply

    Brian Fernandes
    Moderator

    Marvin,

    You can add any files you like post project creation – however, since you’re adding them manually, making sure they are correctly hooked up to your existing source will be your responsibility.

    Another option would be to create the project outside Angular IDE, use the angular-cli on the command line with the arguments you want. Once the project is created by the CLI, import it into Angular IDE using the File > Import > Angular > Angular Project wizard.

    Hope this helps.

    #581946 Reply

    Marvin Toll
    Participant

    hmmm… did not realize that an Angular Import was available (and so obvious)… that sounds like the best way to deal with the hard-coded “ng new <project>” limitation for now. Please presume that works well unless I post back otherwise. [Thanks Brian]

    #582019 Reply

    Brian Fernandes
    Moderator

    No problem Marvin, have a great weekend!

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: ng new project –skip-git –style=scss –router

You must be logged in to post in the forum log in