39 Commits

Author SHA1 Message Date
Amadou Sall
0e3d8e4a64 feat(@schematics/angular): add packageManager option
closes #15875
2019-10-25 09:53:12 -07:00
Amadou Sall
cc4abddcdd refactor(@schematics/angular): remove hardcoded value of newProjectRoot (#15925)
the default value of `newProjectRoot` is already defined in the schema
2019-10-23 10:00:04 -07:00
Alan
f1b87da67d fix(@schematics/angular): add strict option to ng-new
Closes: #15654
2019-09-24 13:19:51 -07:00
Alan
ba8a6ea599 feat(@schematics/angular): remove enableIvy option
With this change we remove the enableIvy option as now we only support generating Ivy application. Users who want to create a VE applications should follow the opt-out guide
2019-08-16 09:31:02 -07:00
Amadou Sall
c4a3262ee2 fix(@schematics/angular): the ng-new schematic should not prompt for style
closes #13383
2019-08-02 13:34:26 -07:00
Amadou Sall
5b3c608682 fix(@schematics/angular): the ng-new schematic should not prompt for routing
refs #13383
2019-08-02 13:34:26 -07:00
istiti
c119a402bd fix(@schematics/angular): update sass documentation links
Closes #14975
2019-07-10 04:13:14 +08:00
Amadou Sall
7dac687767 refactor(@schematics/angular): remove non-useful or operator 2019-06-06 14:21:24 -07:00
Charles Lyding
ca1ecb027d test(@schematics/angular): ensure application schematic is run async 2019-04-16 11:23:48 -07:00
Hans Larsen
55471770db refactor: use dimensions for some values instead of metrics
This is after a discussion with someone internal. Metrics are good
for sums but not for comparisons and search/filtering.
2019-03-28 13:28:41 -07:00
Hans Larsen
2e9dc3d252 docs: add analytics dimensions for schematics flags and internal doc
The analytics.md should be kept up to date with the flags.
2019-03-20 15:08:07 -07:00
Alan
a7d095d916 feat(@schematics/angular): change layout for root applications
This change aligns the file layout of applications generated with `ng new` and `ng generate`

Ref: TOOL-686
2019-03-06 11:28:26 -08:00
Alan
08c4cb748f fix(@schematics/angular): reintroduce .sass as a supported file extention
Sass Indented (.sass) is fully supported by the Sass team and we should still offer and support it.

Fixes #13739
2019-03-04 10:26:09 -08:00
Alan Agius
edfc155f35 feat(@schematics/angular): rename tsconfig.e2e.json to tsconfig.json
This will help IDEs as they only pick up the standard name
2019-03-04 09:33:12 -08:00
Alan
026ae8cefc feat(@schematics/angular): change layout of e2e files
With this change E2E files will be relocated inside an existing application instead of creating a seperate E2E project. This will also remove a lot of extra boilerplating inside the workspace configuration file.

File layout:
```
│   browserslist
│   karma.conf.js
│   tsconfig.app.json
│   tsconfig.spec.json
│   tslint.json
│
├───e2e
│   │   protractor.conf.js
│   │   tsconfig.e2e.json
│   │
│   └───src
│           app.e2e-spec.ts
│           app.po.ts
│
└───src
    │   favicon.ico
    │   index.html
    │   main.po.ts
    │   main.ts
    │   polyfills.ts
    │   styles.css
    │   test.ts
    │
    ├───app
    │       app.component.css
    │       app.component.html
    │       app.component.spec.ts
    │       app.component.ts
    │       app.module.ts
    │
    ├───assets
    │       .gitkeep
    │
    └───environments
            environment.prod.ts
            environment.ts
```

Ref: TOOL-699
2019-03-04 09:33:12 -08:00
Filipe Silva
05966646e7 feat(@schematics/angular): rename experimentalIvy to enableIvy
Followup to https://github.com/angular/angular/pull/28569#discussion_r259558085
2019-02-26 10:49:58 -08:00
Alan
81acdd7066 fix(@schematics/angular): add file extensions to style prompt
This is causing major confusion as users are not aware that choosing `sass` will generate files with `scss` extension.

Another reason for this confusion is that in other schematics, `style` accepts either a preprocessor or file extension while in this prompt only a preprocessor is provided.
2019-02-19 13:58:32 -08:00
Judy Bogart
3a4396580e docs: description of minimal option consistent across commands 2019-01-18 12:06:59 -08:00
Judy Bogart
be3fa89dc3 docs: highlight creating workspace without initial app 2019-01-18 12:06:59 -08:00
Alan
4718de4dae feat(@schematics/angular): only support known style extentions
Fixes #13149
2019-01-18 11:56:19 -08:00
Alex Eagle
4f358f48f8 fix(@schematics/angular): stop offering SASS option for ng new
The old Sass language referred to as "SASS" here is no longer relevant. This was denoted with the file extension ".sass"
Any new projects should use the modern Sass language which is expressed in ".scss" files.
This change does not remove any support for projects which were already created with ".sass" files, we simply stop offering
this option when creating new projects.

Also correct the capitalization of Less based on how they spell it on their website.
2019-01-15 14:49:58 -08:00
Alan Agius
04a7dca3cf docs: add clause that states the minimal projects are for learning purposes.
Minimal projects contains limited functionality and certain commands might not work at all.

This projects should be considered as a throw away.

Fixes #13054
2019-01-11 14:09:12 -08:00
Alan Agius
e18b912aa7 test: use toContain instead of indexOf 2018-11-14 12:34:49 -08:00
Judy Bogart
9da4bdca81
docs: copy edit
Closes #12837.
Closes #12898.
2018-11-13 13:10:20 -08:00
Judy Bogart
ed6e765471
docs: add generation schematics option docs 2018-11-13 13:09:51 -08:00
Noël Macé
1f3e2768c2 fix(@schematics/angular): --minimal should prevent generating e2e (#12742)
* fix(@schematics/angular): --minimal should prevent generating e2e

Don't run the e2e schematic when using application or ng-new schematics
with option.minimal set to true.

fix #12739

* style: inverse logic according to feedback

* test(@schematics/angular): app and ng-new --minimal shouldn't generate e2e
2018-11-01 10:59:13 -07:00
Alan Agius
90a5a7db96 feat(@schematics/angular): install packages when creating a new application
Fixes #12719
2018-10-31 20:57:09 -07:00
Alan Agius
c24afaf31c fix(@schematics/angular): experimentalIvy creates project using next packages
Close: #12667
2018-10-31 14:57:16 -07:00
Rohit Sarkar
907ce5c94c feat(@schematics/angular): Add --minimal flag to generate a barebones (#12498)
project
2018-10-10 12:08:24 -07:00
Igor Minar
90e69805b2 fix(@schematics/angular): tweak the ng new routing prompt 2018-10-05 15:03:19 -07:00
Mike Brocchi
b16cb27f5b feat(@schematics/angular): Add the option to allow preventing the creation of an application
Fixes #12216
2018-09-26 15:04:19 -07:00
Alan Agius
6d6870314c feat(@schematics/angular): add support for ShadowDom as a viewEncapsulation value 2018-09-26 08:53:43 -04:00
Hans
f15d5589c3 refactor(@schematics/angular): automated JSON schema generation 2018-09-13 16:44:17 -07:00
Charles Lyding
ee7603f597 feat(@schematics/angular): add several prompts to ng-new 2018-09-06 08:46:33 -07:00
Hans
75d682b271 refactor(@angular/cli): use smart default instead of overwriting args 2018-09-06 07:37:48 -07:00
Filipe Silva
9720077a4b build: make resolution logic compatible with Bazel 2018-08-22 16:36:10 -07:00
Hans
3886aab55b feat(@schematics/angular): add a --experimental-ivy flag to ng-new
This will create a new Ivy-enabled application. Also available in "ng g application".
2018-08-09 19:37:53 -04:00
Mike Brocchi
f64087b625 fix(@schematics/angular): Allow additionalProperties in schematics options
fixes #11681
2018-08-03 12:38:27 -04:00
Hans Larsen
44086c60ff build: move devkit repo back to angular-cli 2018-06-05 18:50:06 -07:00