nativescript-schematics icon indicating copy to clipboard operation
nativescript-schematics copied to clipboard

Support all `ng new` flags and options

Open sis0k0 opened this issue 6 years ago • 0 comments

Describe the current behaviour Currently, not all flags and options available through ng new are supported by the schematic for creating a new application.

To Reproduce Execute:

ng new lqlqlq --collection @nativescript/schematics --link-cli

Expected behavior All options provided by ng new should be supported:

$ ng new --help
arguments:
  name
    The name of the new workspace and initial project.

options:
  --collection (-c)
    A collection of schematics to use in generating the initial app.
  --commit 
    Initial git repository commit information.
  --create-application 
    When true (the default), creates a new initial app project in the src folder of the new workspace. When false, creates an empty workspace with no initial app. You can then use the generate application command so that all apps are created in the projects folder.
  --defaults 
    When true, disables interactive input prompts for options with a default.
  --directory 
    The directory name to create the workspace in.
  --dry-run (-d)
    When true, runs through and reports activity without writing out results.
  --enable-ivy 
    When true, creates a new app that uses the Ivy rendering engine.
  --force (-f)
    When true, forces overwriting of existing files.
  --help 
    Shows a help message for this command in the console.
  --inline-style (-s)
    When true, includes styles inline in the component TS file. By default, an external styles file is created and referenced in the component TS file.
  --inline-template (-t)
    When true, includes template inline in the component TS file. By default, an external template file is created and referenced in the component TS file.
  --interactive 
    When false, disables interactive input prompts.
  --minimal 
    When true, creates a project without any testing frameworks. (Use for learning purposes only.)
  --new-project-root 
    The path where new projects will be created, relative to the new workspace root.
  --prefix (-p)
    The prefix to apply to generated selectors for the initial project.
  --routing 
    When true, generates a routing module for the initial project.
  --skip-git (-g)
    When true, does not initialize a git repository.
  --skip-install 
    When true, does not install dependency packages.
  --skip-tests (-S)
    When true, does not generate "spec.ts" test files for the new project. 
  --style 
    The file extension or preprocessor to use for style files.
  --verbose (-v)
    When true, adds more details to output logging.
  --view-encapsulation 
    The view encapsulation strategy to use in the initial project.

sis0k0 avatar Jul 25 '19 10:07 sis0k0