488 Commits

Author SHA1 Message Date
Jason Jean
5b305f758d feat(schematics): update to angular cli 7.1 2018-12-12 19:31:44 -05:00
Jason Jean
0bca0a7273 enhancement(schematics): incrementally update dependencies with only files changed 2018-12-12 19:29:42 -05:00
Piotr Rogowski
fd994b7104 fix(schematics): fix path resolution for modules that are above project rooti
In some projects some common code is placed in shared repo outdise of the workspace
In this cases there is upper dir present in paths (..)
For those cases resolved path is absolute to dir that isn't staring with project root path,
and it results in weirdly truncated path in error messages
like instead of /project/root/../shared/module we get /project/root/d/module
this commit uses node implementation, that works fine for those cases
2018-12-12 19:21:14 -05:00
Jason Jean
2e25398e8c feat(schematics): support dry run for workspace-schematics 2018-12-03 15:37:13 -05:00
Jason Jean
92383e53b6 fix(schematics): add es2015 module to tsconfig 2018-12-03 11:52:01 -05:00
Jimmy Reichley
e290abc29c fix(schematics): dont let bad .nx-results file prevent test run
If the .nx-results file got into a bad state, then it caused CLI
commands to fail in a cryptic way due to yargs failing JSON parsing.
This included having an empty .nx-results file.

Now we treat this case as if there was no results file in the first place.
2018-12-03 11:51:44 -05:00
ben
973d33b818 fix(schematics): add forbidden properties when renaming
Add a `forbiddenPropertyList` into the `replaceAppNameWithPath` function
to not override some property's value that should stay pristine.

closes #900
2018-12-03 11:49:38 -05:00
Jason Jean
f75445dd8e fix(schematics): update npm-run-all and purge dependency on event-stream 2018-11-26 16:30:11 -05:00
Jason Jean
cd2e311a32 feat(schematics): create local project tsconfigs for typings 2018-11-25 14:25:43 -05:00
Jason Jean
d0c9c5e05d fix(schematics): always npm scope for generating package.json of lib 2018-11-25 14:25:19 -05:00
Jason Jean
dd4d671341 fix(schematics): generate defaults for scss 2018-11-23 11:10:10 -05:00
Jason Jean
a93033e728 fix(schematics): pass parsedArgs straight to generateDepGraph 2018-11-23 11:08:59 -05:00
Jason Jean
5357aa4b9c fix(schematics): fix affected argument delimiting 2018-11-19 17:29:25 -05:00
listepo-alterpost
e2cd2f9259 fix(schematics): update description for simpleModuleName 2018-11-18 14:48:38 -05:00
listepo-alterpost
0c70d0777d fix(schematics): rename skipModuleName to simpleModuleName 2018-11-18 14:48:38 -05:00
listepo-alterpost
c0ec046b0b fix(schematics): added skipModulePrefix 2018-11-18 14:48:38 -05:00
Emilio Martinez
ace390e6f7 fix(schematics): ensure path to file before writing 2018-11-18 14:48:11 -05:00
--get
e7e9fac7d9 feat(schematics): update prettier to 1.15 and format html 2018-11-18 14:47:11 -05:00
--get
f8ac8e1569 feat(schematics): add generic affected 2018-11-12 14:30:25 -05:00
--get
e4f45afad9 fix(schematics): set correct tsConfig for lint for cypress project 2018-11-12 13:52:54 -05:00
--get
ed938e4cda feat(builders): allow copying of assets for node apps 2018-11-12 13:51:40 -05:00
--get
1d1315ab4f fix(schematics): update ng packagr for ng7 migration 2018-11-07 14:25:34 -05:00
ben
f6af0b951e fix(schematics): replaceAppNameWithPath use pattern matching now
Make `replaceAppNameWithPath` uses pattern matching while replacing the strings, making sure it does
not mess with the wrong properties or values. Example: `ui` was messing with `build` &&
`@angular-devkit/build-angular`.

fix #856
2018-11-07 14:23:21 -05:00
--get
cf158c940e fix(schematics): fix ng test --watch 2018-11-07 14:19:36 -05:00
--get
e681a18c1e fix(schematics): ignore node_modules during affected 2018-11-05 12:52:49 -05:00
--get
1a3770bc94 refactor(schematics): patch move to be more performant 2018-11-04 16:38:53 -05:00
ben
f89a6260ef test(cypress): add type references 2018-10-28 09:17:48 -04:00
ben
5154146f02 fix(builders): using fork and getSystemPath 2018-10-27 13:50:24 -04:00
ben
f73c1b57a8 build(package): use latest jasmine marble version
This update the package to use the latest jasmin marbles version. Avoiding peer dependency warnings.

fix #793 #804
2018-10-25 12:18:15 -04:00
Dominik
21bb88bcb7 fix(schematics): check implicity touched projects independently from git folder structure 2018-10-25 12:15:25 -04:00
ben
f38bda025b feat(schematics): add cypress e2e test runner
This is enables the use of Cypress as e2e test runner for a new
application in the Nx workspace.

The Cypress command is hidden as a flag in the main application
schematics. Meaning, the only thing needed to enable this feature is to
add the `--e2eTestRunner=cypress` flag at your command when creating
a new application.
Example:
```shell
$ ng generate application myApp --e2eTestRunner=cypress
```

By default `ng e2e my-app-e2e` will start Cypress in the application
mode. You will see the desktop application and will be able to check all
the tests and run them as you which.

If you want to run the Cypress tests in headless mode (while being on CI
for example), you can do so by passing the `--headless` to the command.
  You will see all the test results live in the terminal.
  ```shell
  $ ng e2e my-app-e2e --headless
  ```

The Cypress configuration files and folders are present in the new
`my-app-e2e` folder created. Every file are written in typescript and
will be compiled into the `/dist/apps/my-app-e2e` folder before starting
Cypress.

If you need to fine tunes the options of Cypress, you can do so by
modifying directly the `cypress.json` file in the related project.

The build steps are has follow:
• compile typescript files into javascript inside the
`/dist/app/my-app-e2e` folder
• build a dev server (using the default AngularCLI dev target build)
• run Cypress with the compiled e2e files

Screenshots and Videos will be accessible respectively in
`/dist/apps/homer-app-e2e/screenshots` and
`/dist/apps/homer-app-e2e/videos`.
2018-10-25 12:14:35 -04:00
--get
31061d42b6 fix(schematics): do not add setup file for --no-module libs 2018-10-24 09:43:23 -04:00
--get
47d99d49ba fix(schematics): fix tslint rules for ngadd 2018-10-24 09:42:49 -04:00
--get
67c4bdf4af feat(schematics): upgrade to angular 7 2018-10-24 09:42:31 -04:00
skydever
cd43c6d9ba fix(schematics): check type of tsConfig lint entry (ng-add) 2018-10-22 11:15:53 -04:00
skydever
12e484266c fix(schematics): check existence of tslint.json for app (ng-add) 2018-10-22 11:15:32 -04:00
--get
f03f007380 fix(schematics): create unique ids for schematic configs 2018-10-22 11:10:25 -04:00
--get
479bf5bee9 feat(schematics): add interactive prompts 2018-10-22 11:09:49 -04:00
--get
8c22ae41bb feat(schematics): make jest flow simpler 2018-10-22 11:08:59 -04:00
--get
9ab505334e fix(schematics): add node types for node apps 2018-10-19 11:33:34 -04:00
--get
9a60c697e8 fix(schematics): handle complex asset options in ng-add 2018-10-18 14:01:35 -04:00
ben
02a49e774f fix(schematics): use feature key in selector
Use now the feature key constant from the reducer to set `createFeatureSelector` with the right
state nomination.

fix #818
2018-10-18 13:32:50 -04:00
ben
183f360a2f chore(commands): workspace integrity check angular.json
This updates the `.angular-cli.json` to `angular.json` which is now the convention from Angular CLI.
2018-10-18 13:32:01 -04:00
ben
15b8e4bc93 feat(schematics): make dep-graph export to svg
This enables to export the dependency graph into a `svg` file. It was shown in the documentation but
not quite ready yet.

fix #811
2018-10-18 13:31:44 -04:00
Steven Masala
3ba5fefc23 fix(schemantics): tests are unable to run when window paths have spaces in them. 2018-10-04 19:42:56 -04:00
--get
f1d4dd9f46 feat(schematics): add option for no module in lib 2018-10-04 19:42:13 -04:00
skydever
96716ae279 fix(schematics): convert fileReplacements paths for all configurations 2018-10-03 20:02:43 -04:00
skydever
4bd39e7f85 fix(schematics): exclude jest setup file in tsconfig.app.json 2018-10-03 20:02:29 -04:00
--get
9714a97f3c feat(schematics): update cli to 6.2.4 2018-10-03 20:02:02 -04:00
--get
0b086dd27c fix(schematics): fix affected for projects without architect config 2018-10-03 20:01:42 -04:00