588 Commits

Author SHA1 Message Date
Miroslav Jonaš
8ab463e386
cleanup(core): replace deprecated usage of appRootPath (#6241)
* cleanup(core): replace deprecated usage of appRootPath

* cleanup(core): revert migration changes
2021-07-05 15:51:19 -04:00
Jonathan Romano
7fc5d6fd8f
fix(web): add setParserOptionsProject option to web:application (#6239)
This option is available in most other generators, but was missing for @nrwl/web:application
2021-07-05 15:50:16 -04:00
Leosvel Pérez Espinosa
195e6bade5
cleanup(misc): rename builders.json to executors.json (#6230) 2021-07-02 15:59:34 +01:00
Jack Hsu
369da3ee78
feat(web): add support for webpack 5 (#5892) 2021-06-29 08:41:01 -04:00
ben
013818273d fix(web): inline nx template logo 2021-06-25 17:13:08 -04:00
Jason Jean
4f7191e154 chore(repo): update nx to 12.5.0-beta.5 2021-06-25 17:08:37 -04:00
Craigory V Coppola
f1911a71f3
feat(core): split nx config to project files (#5880) 2021-06-22 20:30:38 -04:00
Phillip Barta
fe97444d78
feat(core): migrate prettier to v2.3.1 (#5623) 2021-06-17 16:44:30 +02:00
Phillip Barta
9d78629ec0
cleanup(web): use json utils (#5944) 2021-06-16 21:09:30 +00:00
Jack Hsu
4a03859de4
fix(web): update packages that have audit errors and warnings (#5847) 2021-05-31 19:55:02 +00:00
Jack Hsu
12ee3bce97
feat(web): add generateIndexHtml option to web build executor (#5843) 2021-05-31 14:33:01 +00:00
Ben Heidemann
060660ea49
fix(web): prevent inherited target in tsconfig from being removed (#5756)
* fix(web): prevent inherited target in tsconfig from being removed

ISSUE 4115 (https://github.com/nrwl/nx/issues/4115): when a library tsconfig.json inherited a script
target, this was removed when building the library with "nx build [some lib]".

ISSUES CLOSED: #4115

* cleanup(web): format code in package.impl.ts

ISSUE 4115 (https://github.com/nrwl/nx/issues/4115): when a library tsconfig.json inherited a
script
target, this was removed when building the library with "nx build [some lib]".
ISSUES CLOSED:
#4115
2021-05-31 10:17:02 -04:00
James Henry
a3c08a9153
feat(linter): do not set eslint parserOptions.project by default (#5798) 2021-05-28 13:35:34 +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
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
Phillip Barta
053d488801 cleanup(core): removed reexport of devkit types in workspace 2021-05-19 13:42:03 -04: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
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
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
Zachary DeRose
6fdf9d62f9
fix(repo): fixing issue with some options missing from docs (#5641) 2021-05-12 17:50:09 -04:00
Leosvel Pérez Espinosa
678818a58b
feat(angular): upgrade Angular to v12.0.0-rc.3 (#5630)
* feat(angular): upgrade Angular to v12.0.0-rc.3

* feat(angular): target Nx v12.4.0-beta.0 for Angular v12.0.0-rc.0 upgrade

* fix(angular): use defaultConfiguration if no other configuration is passed

* cleanup(angular): sync migration folder name to target version

* fix(repo): creating custom schema flattener for docs

* chore(repo): amend yarn.lock

* feat(angular): update angular storybook to use webpack 5

* fix(angular): add legacy peer deps for angular+jest

* fix(angular): move migrations to 12.3.0-rc.0

Co-authored-by: Zack DeRose <zack.derose@gmail.com>
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-05-12 12:20:12 -04:00
Juri Strumpflohner
d24d401eb5
fix(web): chokidar watching on file-server (#5564) 2021-05-07 13:41:08 -04:00
Phillip Barta
d1f267764b
feat(web): use chokidar for the fileserver implementation (#5535) 2021-05-03 21:11:48 +02:00
vsavkin
d767261fea fix(nextjs): default to build target for incremental serve
feat(core): support exclude with run-many
2021-04-29 15:57:26 -04:00
vsavkin
85ceb3c790 fix(core): propagate sigterm and other signals correctly 2021-04-26 20:50:30 -04:00
Tasos Bekos
156e3c2c40 chore(repo): use jest-circus runner 2021-04-26 15:16:09 -04:00
Minijus L
357ecd09a4
fix(testing): update ts-jest to version 26.5.5 (#5405)
Update `jest.config.js` ts-jest section with lower-cased 'tsconfig' property as 'tsConfig' is to be deprecated in version 27.
2021-04-26 08:56:52 -04:00
Jason Jean
a47e5e4993
fix(web): fix circular dependency in babelrc migration (#5435) 2021-04-22 14:38:36 -04:00
Phillip Barta
c0ce1ce65e
cleanup(core): normalized usage of fs-extra and updated fs-extra to 9.1.0 (#5199)
* cleanup(core): normalized usage of fs-extra and updated fs-extra

* cleanup(misc): use fs over fs-extra when possible

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-04-22 12:52:52 -04:00
Lukas Geiter
b39f559380
fix(web): fix postcss-loader options object structure (#5420) 2021-04-21 12:30:48 -04:00
Noriyuki Shinpuku
e656241752
fix(web): fix named exports mapping for react/jsx-runtime (#5294)
* fix(web): fix named exports mapping for react/jsx-runtime

* fix(web): add named exports mapping for react/jsx-dev-runtime
2021-04-20 10:06:54 -04:00
Tasos Bekos
5ad1a61a7a feat(web): support multiple rollupConfig plugins 2021-04-16 08:36:10 -04:00
Jason Jean
d007d37fb4
fix(devkit): add env variable to disable project graph cache (#5297) 2021-04-15 10:29:33 -04:00
Phillip Barta
48bf60c17d
cleanup(repo): removed unused dependecies from @nrwl/web migration in #2004 (#5344) 2021-04-15 00:14:27 -04:00
Kirils L
159bc9986b
fix(nextjs): remove isServer flag from web babel preset (#5322) 2021-04-12 15:50:46 -04:00
Phillip Barta
0e99ffca2f
cleanup(repo): replaced deprecated opn package with open (#5236) 2021-04-12 15:42:22 -04:00
Juri Strumpflohner
c580bbec2e
fix(web): emit event to which upstream executors can listen to (e.g. Cypress) (#5273) 2021-04-08 08:50:00 -04:00
vsavkin
38c111ba06 chore(repo): update to nx 12 2021-04-07 12:31:23 -04:00
Jack Hsu
a647e19303
feat(react): use "@babel/plugin-transform-runtime" so babel helpers can be reused (#5257) 2021-04-07 06:08:12 +00:00
Jason Jean
bfb194843f
feat(core): remove readFile argument from createProjectGraph (#5206)
* feat(core): deprecate creating a project graph from a host

* feat(core): remove readFile argument from createProjectGraph
2021-04-06 13:44:09 -04:00
Jack Hsu
c84bbb3c93
feat(react): add support for new jsx transform (#5131) 2021-04-01 13:46:12 +00:00
Jason Jean
03d16676ac
fix(misc): pass in specific copy of webpack (#5190) 2021-03-31 18:07:55 -04:00
Kirils L
7ccee19000
fix(web): support isServer flag in babel (#5158) 2021-03-31 13:51:23 -04:00
Tasos Bekos
14b1df2173
cleanup(misc): deprecate showCircularDependencies option (#5135) 2021-03-26 15:12:21 -04:00
Tasos Bekos
ead6dd8864
chore(repo): run e2e outside project directory on CI (#5037) 2021-03-26 11:19:31 -04:00
Vivek More 🧐
212fb00548 cleanup(misc): use more es6 features
- Single char alternation (e.g. a|b|c|d) in a RegExp can be simplified to use a character class ([abcd]) instead.
  This usually also provides slightly better matching performance.
- Character escapes that are replaceable with the unescaped character without a change in meaning. Inside the square brackets of a character class, many escapes are unnecessary that would be necessary outside of a character class. For example the regex [\.] is identical to [.]
- If several qualified expressions occur after the qualifier having been checked for nullable, they can be replaced with optional chaining
2021-03-24 20:11:32 -04:00
Vivek
d1b09eaabd
cleanup(misc): make code more consistent and fix typos 2021-03-23 13:03:17 -04:00