510 Commits

Author SHA1 Message Date
Jason Jean
6bd0c2deac
feat(react): migrate @nrwl/web:build to devkit (#4646) 2021-02-01 17:06:41 +00:00
Tasos Bekos
6bf245edb7 fix(react): change css modules class naming convention
Similar to 7e4949a20f/packages/react-dev-utils/getCSSModuleLocalIdent.js
2021-01-29 20:26:00 -05:00
Tasos Bekos
1f534317d0 fix(nextjs): support shared assets
Closes #4552
2021-01-27 15:07:52 -05:00
Victor Savkin
a25e081a84 feat(core): remove angular devkit deps 2021-01-25 12:52:30 -05:00
Victor Savkin
c40ce8a539 feat(testing): update cypress use nx devkit 2021-01-18 21:46:17 -05:00
Levent Arman Özak
41f10b5a05
fix(web): convert scripts and styles to extra entry points (#4471)
ISSUES CLOSED: #3730
2021-01-14 20:41:04 -05:00
Tasos Bekos
f95f855cf7 fix(web): handle delete-output-path option
Closes #4015
2021-01-07 14:41:21 -05:00
Tasos Bekos
e25159d915 fix(react): correctly resolve babel-plugin-transform-async-to-promises
Closes #4352
2020-12-21 11:24:41 -05:00
Juri
541785b515 fix(web): check whether deps have been built when using incremental build 2020-12-04 14:11:07 -05:00
Juri
fa67518892 fix(web): set buildLibsFromSource to true by default
Incremental build is for large monorepos and should be enabled manually
2020-12-04 14:10:46 -05:00
Tasos Bekos
038cef1ec9
fix(react): fix Less & Stylus (#4195) 2020-12-04 11:03:48 -05:00
victor savkin
a24fb961d8 feat(core): format workspace.json based on version field 2020-12-03 20:20:04 -05:00
Tasos Bekos
776930ce61 fix(web): add core-js as direct depndency 2020-12-03 20:06:48 -05:00
victor savkin
93ebc835dc docs(misc): clean up api docs 2020-12-02 10:51:43 -05:00
victor savkin
baa8c23d0f feat(misc): make all generators public 2020-12-02 10:51:43 -05:00
Tasos Bekos
6c1335ac83 feat(core): interpolated outputs & cache coverage folder 2020-12-01 13:49:43 -05:00
Juri
c699f8d5c4 fix(react): dependency resolution for buildable libraries
Fixes #3994
2020-11-30 19:28:47 -05:00
Jason Jean
b9791a3108
feat(core): upgrade to angular and angular devkit 11 (#4095) 2020-11-30 14:07:27 -05:00
victor savkin
234ca36385 cleanup(misc): clean up devkit 2020-11-26 10:19:13 -05:00
Victor Savkin
2824794a92 feat(core): clean up the language to use word executor 2020-11-24 09:49:52 -05:00
Juri
17bd3f4a93 fix(web): pass http-server params without "=" 2020-11-19 09:57:35 -05:00
Victor Savkin
7d3627ab27 feat(web): add parallel, maxParallel, with-deps to file-serve target 2020-11-18 21:11:59 -05:00
Victor Savkin
4511ec65fb feat(web): add file-server builder 2020-11-17 19:31:08 -05:00
Victor Savkin
cdcd2415a6 chore(repo): reenable linting 2020-11-13 20:56:19 -05:00
Tasos Bekos
0ec634d61a fix(react): use only liveReload option of webpack-dev-server
Closes #3910
2020-11-07 08:53:59 -05:00
Tasos Bekos
463d2cb9e0
fix(repo): add missing tslib dependency in generated applications (#3858) 2020-10-23 17:09:35 -04:00
Jack Hsu
c84ad4020f
fix(react): support vendor sourcemap option for web build (#3902) 2020-10-09 19:35:27 -06:00
James Henry
e339ece224
feat(linter): add explicit file extension to config files (#3847)
* feat(linter): add explicit file extension to config files

* feat(linter): update references to .eslintrc for new projects

* fix(linter): fix quotes in global eslint config
2020-10-01 18:59:45 -04:00
Brian
3f436fc6d0
feat(core): add flag to set dependant libs in either peerDependencies or dependencies (#3078)
* feat(core): add flag to set dependant libs in either peerDependencies or dependencies

* fix(core): mark new property as optional

* feat(core): add migration for new option

* Update migrations.json

Co-authored-by: Jonathan Cammisuli <jon@cammisuli.ca>
2020-09-30 10:36:35 -04:00
James Henry
e22f9370f5
feat(linter): new eslint builder (#3834)
* feat(linter): new eslint builder

* chore(linter): move migration to linter, add implementation

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2020-09-29 20:52:10 -04:00
Jack Hsu
ea71278aba
fix(react): calculate npm project dependencies correctly (#3804) 2020-09-24 13:29:23 -04:00
Jonathan Cammisuli
e6e2dc67aa
feat(testing): add projects into jest config (#3766)
* feat(testing): add projects into jest config

* chore(testing): update unit tests and fix presets with spreading a default

* chore(testing): fix node e2e

* chore(testing): review comment changes
2020-09-23 02:20:10 -04:00
Katerina Skroumpelou
44069bf0c8
Fix web builder (#3661)
* feat(react): wip: initial e2e test by jack and web package builder fix

Updated some commnets about versions of Storybook, extra config files, and how to treat these

* fix(web): preserve the target set in tsconfig.lib.json

ISSUES CLOSED: #3601

* fix(react): preserve the target set in tsconfig.lib.json

ISSUES CLOSED: #3601

* fix(react): preserve the target set in tsconfig.lib.json

ISSUES CLOSED: #3601
2020-09-14 15:43:56 -04:00
Ashwin Gokhale
434cb21366
feat(web): added rollup json plugin to web package builder (#3666)
* feat(web): added rollup json plugin to web package builder

* fix(testing): increased timeout for nx-plugin e2e plugin test
2020-09-14 15:43:27 -04:00
Tasos Bekos
655ef4a91f fix(web): package builder correctly copies assets on Windows
On Windows, the paths were using backslashes and this was causing `globby` inside `rollup-plugin-copy` to not match any pattern, and thus ignoring all assets during the build. This commit ensures that all paths passed to `rollup-plugin-copy` use only forward slashes.

ISSUES CLOSED: #3328
2020-09-11 13:53:59 +03:00
Jack Hsu
d5481e58b2
fix(react): support default envName behavior for babel (e.g. set through BABEL_ENV or NODE_ENV) (#3693) 2020-09-09 10:47:09 -04:00
Martin Hochel
6b8592da2e
feat(misc): add babelJest support to node,web,workspace,express plugins (#3636)
ISSUES CLOSED: #3041
2020-09-08 13:59:36 -04:00
Tasos Bekos
afa4588b0e
fix(repo): fix e2e react tests (#3678) 2020-09-07 10:20:31 -04:00
Tasos Bekos
3461a86c6d
fix(web): support baseHref on serve (#3639)
ISSUES CLOSED: #3553
2020-09-04 14:54:29 -04:00
Adam L Barrett
5fa38f89f6 cleanup(react): add e2e test for IE support and differential loading 2020-09-03 10:47:46 -04:00
Tasos Bekos
72dfbdd10b
cleanup(repo): align local and web package dependency versions (#3614)
Versions mismatch and import issues were causing unexpected errors during development.
2020-09-02 10:54:42 +03:00
Tasos Bekos
8c4904240e fix(web): don't run type checking for legacy build
ISSUES CLOSED: #3349
2020-09-01 11:49:53 -04:00
Jan
95dd857126
fix(core): handle projects build assets option being empty (#3591)
ISSUES CLOSED: #3590
2020-08-31 19:33:27 +03:00
Tasos Bekos
dd1527ce03
cleanup(repo): robust CopyWebpackPlugin tests (#3616) 2020-08-28 14:57:55 -04:00
Tasos Bekos
7fcf136cad
fix(web): clean output bewtween library builds (#3547)
* fix(web): clean output bewtween library builds

* fix(web): avoid deleting files before differential loading build
2020-08-19 22:14:00 -04:00
Jason Jean
d4fe7815cc
fix(web): remove duplicate copy webpack plugin (#3556) 2020-08-18 17:03:34 -04:00
Tasos Bekos
c8cb3ceeae
fix(web): clean output bewtween builds (#3544)
ISSUES CLOSED: #3466
2020-08-17 12:45:34 -04:00
Marvin Luchs
0644c6bb5b
fix(core): update copy-webpack-plugin (#3514)
fixes security vulnerability caused by serialize-javascript < 3.1.0

closes #3506
2020-08-14 15:13:24 -04:00
Spencer Elliott
5b6df632cb
fix(core): resolve webpack loaders with require.resolve() (#3436)
* fix(core): resolve webpack loaders with `require.resolve()`

With strict package managers such as pnpm or Yarn PnP, transitive
dependencies are *not* hoisted to the root node_modules folder. This
means that a webpack config defined within a package like
'@nrwl/cypress' cannot resolve loaders like 'ts-loader', unless
'ts-loader' is declared in the workspace's own package.json.

This is a problem because the workspace might define a different version
of 'ts-loader', incompatible with the version declared by
'@nrwl/cypress/package.json'. The workspace should not need to declare
a dependency on 'ts-loader' anyway.

See also:
* https://github.com/pnpm/pnpm/issues/801
* https://github.com/webpack/webpack/issues/5087

* fix(core): resolve absolute 'raw-loader' path

When replacing the 'raw-loader' rule in the `getStylesPartial` function,
check for the absolute path of 'raw-loader' rather than just the name.
2020-08-08 17:53:00 -04:00
Andrew Luca
fdab3b9225 fix(web): use missing umdName option in package builder 2020-08-07 15:52:52 -04:00