2290 Commits

Author SHA1 Message Date
Juri Strumpflohner
2d2880ef94
fix(core): iteration of targets should not break if targets don't exist (#5791) 2021-05-26 20:48:48 +03:00
Fernando Montoya
b2e266ac2c Fix GitHub brand typo 2021-05-26 13:41:53 -04:00
Leosvel Pérez Espinosa
8354c54b18
fix(core): nx run should not use defaultConfiguration when configuration is passed (#5796)
ISSUES CLOSED: #5793
2021-05-26 11:35:52 +01:00
Leosvel Pérez Espinosa
0c454dd29f
cleanup(angular): migrate add-linting generator to nx devkit (#5795) 2021-05-26 11:09:42 +01:00
Miroslav Jonaš
4b758f842e
fix(angular): disable double module update on move (#5788)
* fix(angular): disable double module update on move

* chore(angular): rename test sections
2021-05-25 23:36:29 +01:00
Philip Fulcher
a80a6ae535
fix(angular): prevent move generator form making un-intended changes (#5780) 2021-05-25 09:42:47 -06:00
Leosvel Pérez Espinosa
95ac98406e
cleanup(angular): migrate delegate-build executor to nrwl devkit (#5758) 2021-05-24 13:55:49 +01:00
Philip Fulcher
d891c69813
chore(angular): convert move schematic to Nx generator (#5708)
* chore(angular): convert move schematic to Nx generator

* fix(angular): fix bad generator import

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-05-22 18:38:01 +00:00
Jason Clark
0345d08fd7
fix(core): update rollup-plugin-typescript2 to fix array spread error (#5704)
* Update rollup-plugin-typescript2 to fix array spread

* fix(core): update rollup-plugin-typescript2 to 0.30.0 to fix issue with array spreading

Fixes: #5467 - Update rollup-plugin-typescript2 to fix array spread issue
ISSUES CLOSED: #5467

ISSUES CLOSED: #5467

* cleanup(core): cleanup(core): cleanup old rollup-plugin-typescript2 versions
2021-05-22 13:35:11 -04:00
Vaughan Reid
b50d7e4b0c
fix(react): nextjs check causes linting commands to fail (#5705)
* fix(react): is next js check caller is sometimes undefined

* fix(react): refactor to optional chaining

Co-authored-by: Mark Goho <markgoho@gmail.com>

Co-authored-by: Mark Goho <markgoho@gmail.com>
2021-05-22 13:16:16 -04:00
Ben Callaghan
646bb72904
fix(nx-plugin): fix package json key for migration generator (#5731)
Update the key to match the value expected by the `nx migrate` command

Fixes #5730

Co-authored-by: Ben Callaghan <bcallaghan@selectbankcard.com>
2021-05-22 13:00:17 -04:00
Leosvel Pérez Espinosa
3117107725
cleanup(angular): migrate package and ng-packagr-lite executors to nrwl devkit (#5737) 2021-05-21 16:50:45 +01:00
Juri Strumpflohner
efbb7c6b4c
feat(core): add spinner during node module install (#5593) 2021-05-21 10:33:42 -04:00
Kirils L
bffc239e6e
fix(nextjs): add @nrwl/next as a prod dependency for new workspaces (#5662) 2021-05-21 13:50:58 +00:00
Minijus L
2778e6e1ec
feat(testing): update cypress to 7.x (#5624)
Closes #5382
2021-05-21 09:44:35 -04:00
Colum Ferry
488804163e
cleanup(angular): refactor init generator to use Nx Devkit (#5735)
Refactor `init` generator to use Nx Devkit
2021-05-21 11:33:59 +00:00
Leosvel Pérez Espinosa
c71137f34c
fix(angular): make path optional for customWebpackConfig in webpack browser executor (#5728) 2021-05-20 15:01:39 +00:00
Aaron Brewer
313c376f55
feat(storybook): add html to supported 6.2 uiFrameworks (#5610) 2021-05-20 16:15:15 +03:00
Leosvel Pérez Espinosa
d0afa3dd89
feat(angular): add executor which allows to delegate the build to another target (#5715) 2021-05-20 12:29:46 +01:00
vsavkin
319a90b6ab feat(web): add a plugin to coordinate webpack and nx builds 2021-05-19 16:12:02 -04:00
Zachary DeRose
9878619706
feat(web): environment variables interpolated to index.html (#5521)
* feat(web): environment variables interpolated to index.html

* feat(web): Support for %PUBLIC_URL% as option in index.html

* chore(web): adding test case for NX_ option not present

* fix(web): supporting deployUrl - not publicUrl

* fix(web): e2e test added for index.html interpolation

* fix(web): rm unused publicUrl instance

* fix(web): rm more unused publicUrl instances

* fix(web): fixing e2e test

* fix(web): fixing e2e test

* fix(web): fixing e2e test expected formatting

* fix(web): fixing whitespace issue in tests

* fix(web): using regex in interpolation
2021-05-19 11:46:07 -07:00
vsavkin
75cd7d9006 cleanup(core): clean up hash details 2021-05-19 14:26:02 -04:00
Miroslav Jonaš
f112b9283a
fix(linter): improve error message for circular reference (#5721)
Improves original error message by providing a hint

Closes #5625
2021-05-19 17:50:58 +00:00
Phillip Barta
053d488801 cleanup(core): removed reexport of devkit types in workspace 2021-05-19 13:42:03 -04:00
Noriyuki Shinpuku
a037dcb351
cleanup(react): remove import react from component generator (#5686) 2021-05-19 11:40:24 -04:00
Miroslav Jonaš
1a6fc7649d
fix(core): update project's eslintrc and readme on move (#5714)
* fix(core): update eslint project path on move

Closes #5493

* fix(core): update project readme on move

* fix(core): add update readme to move generator
2021-05-19 15:14:31 +02:00
Leosvel Pérez Espinosa
45f7d77188
feat(angular): generate apps and libs with strict mode on by default (#5690) 2021-05-19 11:39:35 +01:00
vsavkin
f82344d63a chore(repo): refine the tag line 2021-05-18 20:55:40 -04:00
vsavkin
af23cc5d7d feat(misc): change the nx tag line 2021-05-18 16:07:22 -04:00
Emily Xiong
b8584a6f18
feat(react): add react fast refresh to webpack (#5612) 2021-05-18 15:47:18 -04:00
vsavkin
f31b8cb023 docs(misc): replace memoization with caching 2021-05-18 13:43:50 -04:00
vsavkin
fe0dec1f99 fix(angular): adjust the adapter to work with angular 12 2021-05-18 11:07:11 -04:00
Colum Ferry
0872f01738
feat(angular): allow custom webpack config support for webpack-browse… (#5609)
* feat(angular): allow custom webpack config support for webpack-browser builds

Allow building with a custom webpack config when using webpack-browser builds

* cleanup(angular): have buildApp function determine what builder to use

have buildApp function determine what builder to use keeping run function cleaner

* chore(misc): add IGNORE_MATCHES to CI dep discrepancy check

Add option to ignore packages in the discrepancy check for CI

* cleanup(angular): throw schematic error when webpack config path incorrect

Throw a helpful error when the user supplies an incorrect custom webpack config file path
2021-05-18 16:05:17 +01:00
Miroslav Jonaš
ff3cc38b0c
feat(linter): optimize lint performance. resolves #5210 (#5576)
* feat(linter): optimize containsFile function

related to #5210

* feat(linter): optimize find project function

related to #5210

* feat(core): cleanup target project locator

* fix(core): fix false positive match on resolvedModule

* chore(core): mark old code for removal

* feat(linter): move npm check before expensive typescript resolution

* feat(linter): improve performance of extension removal

* feat(linter): improve I/O operations

* feat(linter): read ts config only once in project locator

* feat(linter): remove double path normalization from rule

normalization is already part of getSourceFilePath function

* feat(linter): run find source only once

* feat(linter): defer source file path calculation will after whitelist check

* feat(linter): map project graph node files to hash map

* fix(linter): map projectGraph only once per runtime

* feat(linter): introduce mapped project graph type
2021-05-18 16:41:12 +02:00
Juri Strumpflohner
75cbd54818
feat(nextjs): allow custom server to be written in TypeScript (#5510)
ISSUES CLOSED: #1933
2021-05-18 09:50:01 -04:00
Colum Ferry
fa01e90156
Revert "feat(angular): add support for a target Builder (#4903)" (#5684)
* Revert "feat(angular): add support for a target Builder (#4903)"

This reverts commit a78fe65d81600e2f1b522722b6ce6374b8c652d3.

* chore(angular): disable failing test
2021-05-18 14:14:43 +01:00
Phillip Barta
52e3083a19
feat(core): added encoding param in Tree.read() (#5668)
feat(core): added encoding param in Tree.read()
2021-05-17 21:03:04 -04:00
Jason Jean
f111027a8e fix(misc): be more specific finding targets being used when removing projects 2021-05-17 20:59:46 -04:00
Younes Jaaidi
2c811aba73 feat(testing): add testingType option to cypress executor
Cf. https://docs.cypress.io/guides/guides/module-api#Options

Closes #5622
2021-05-17 20:59:17 -04:00
Jason Jean
b4fe292d83 fix(core): run workspace-generators within the same process 2021-05-17 20:57:07 -04:00
Michaël De Boey
370831d527 Update format.ts 2021-05-17 20:55:51 -04:00
Michaël De Boey
672e728007 feat(workspace): support formatting on .graphql, .gql, .yaml, .yml & .vue files 2021-05-17 20:55:51 -04:00
Tasos Bekos
4103c6007a fix(node): package execution doesn't exit on watch mode
Closes #5208
2021-05-17 20:54:35 -04:00
Phillip Barta
6a4bb34103 cleanup(core): removed dependency axios 2021-05-17 20:48:47 -04:00
Jason Jean
ff69134373
chore(repo): update nx to 12.3.0-rc.1 (#5645) 2021-05-15 01:18:27 +00:00
Jason Jean
1c714de844
fix(testing): support cypress projects for default serve configuration (#5667) 2021-05-14 12:45:10 -04:00
Noriyuki Shinpuku
cdb4cdc196
fix(react): fix application template for strict mode (#5552) 2021-05-14 12:00:13 -04:00
Noriyuki Shinpuku
bcdbb02aaf
feat(react): update generator defaults in workspace.json for strict mode (#5529)
ISSUES CLOSED: #5250
2021-05-14 10:06:42 -04:00
Noriyuki Shinpuku
cd3dd9431a
fix(web): set envName to production when script optimization is enabled (#5522)
ISSUES CLOSED: #5512
2021-05-14 08:51:29 -04:00
vsavkin
e781d3c1e0 fix(linter): hasher throws when invoked not in root 2021-05-13 15:49:10 -04:00