8697 Commits

Author SHA1 Message Date
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
muradm
b2843ecef7 feat(builders): add mjs to extensions for node-app #944 2018-12-10 19:02:33 -05:00
Andrew Grekov
ba3b40a40b docs(builders): typo fix 2018-12-10 10:43:52 -05:00
Chumachenkovlad
8b8bd41534 feat(schematics): add jest -t option 2018-12-07 13:49:04 -05:00
Chumachenkovlad
4d856ae1c4 feat(schematics): add jest testNamePattern option
`ng test <appNamw> —testNamePattern=<testSuitRegexp>` help to debug specific test suits
2018-12-07 13:49:04 -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
Jeff Cross
3dc01a263f
chore: add Connect Live banner to Readme 2018-11-26 15:54:35 -07: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
Victor Savkin
e23b5107e6 Release 7.1.0 2018-11-20 08:22:57 -05:00
ben
193f2e84a0 docs(github): update contributing & saved replies 2018-11-19 17:30:06 -05:00
Timo Hillmann
b13bf3a371 feat(builders): updated schema.json for cypress builder 2018-11-19 17:29:46 -05:00
Timo Hillmann
e5923ad4db feat(schematics): add browser option to cypress builder
Cypress supports running the tests in a user-specified browser. This option was not exposed through
the Cypress builder before. This change will add this option in.

re #906
2018-11-19 17:29:46 -05:00
Jason Jean
5357aa4b9c fix(schematics): fix affected argument delimiting 2018-11-19 17:29:25 -05:00
Jason Jean
dfba24dc9b fix(builders): do not copy fixtures if not defined by cypress.json 2018-11-19 17:29:02 -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
54063df355 feat(builders): create sourcemaps for node apps 2018-11-18 14:42:57 -05:00
--get
f8ac8e1569 feat(schematics): add generic affected 2018-11-12 14:30:25 -05:00
rwoody
3f493b71c6 fix(nx): use pipeable ofType operator from ngrx
fix #890
2018-11-12 13:54:12 -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
Mark Pieszak
afd67b52e6 docs(readme): update to use correct install command
ng new myworkspacename --collection=@nrwl/schematics doesn't typically work and throws dep errors like `Cannot find module '@angular-devkit/schematics'`
2018-11-09 13:33:59 -05:00
Victor Savkin
615abad219 Release 7.0.2 2018-11-07 17:20:12 -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
Victor Savkin
60f08fae50 Release 7.0.1 2018-11-05 13:49:36 -05:00
--get
e681a18c1e fix(schematics): ignore node_modules during affected 2018-11-05 12:52:49 -05:00
Emilio Martinez
a1b8ef9c64 fix(nx): set jasmine-marbles peer dependency to v0.4.0
Sets jasmine-marbles peer dependency version in nx package to match rest of project as set in f73c1b5.
2018-11-04 16:39:35 -05:00
--get
1a3770bc94 refactor(schematics): patch move to be more performant 2018-11-04 16:38:53 -05:00
Victor Savkin
4fee84e0f4 Release 7.0.0 2018-10-28 12:14:11 -04:00
ben
9cddb41a9d ci(travis): add windows build 2018-10-28 09:18:10 -04: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