588 Commits

Author SHA1 Message Date
KeKs0r
1f66f4cc42 feat(web): Update browserslist to 4.14.6 to allow supports query 2020-11-07 08:57:27 -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
Mehrad Rafigh
e3f318cde3 feat(core): update prettier to v2.1.2 2020-11-06 15:56:40 -05:00
Lili Tong
1b1ddfa3bb
fix(web): upgraded webpack-subresource-integrity (#4004) 2020-11-06 09:18:38 -05:00
Fabian Hippmann
3e2ce9e100 fix(core): update terser-webpack-plugin to 2.3.7 2020-10-28 21:01:33 -04: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
Jason Jean
6c4aacf212
feat(repo): update to nx 10.3 (#3840) 2020-10-02 13:12:34 -04: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
Jason Jean
232fd9f30b
feat(core): update to typescript 4 (#3814) 2020-09-29 18:53:22 -04:00
Tasos Bekos
9153007462 feat(repo): check package dependencies on CI 2020-09-25 09:06:02 +03:00
Jack Hsu
ea71278aba
fix(react): calculate npm project dependencies correctly (#3804) 2020-09-24 13:29:23 -04:00
Ashley Hunter
c382feb4de
fix(web): adding missing @rollup/plugin-json dependency (#3783)
* fix(web): adding missing @rollup/plugin-json dependency

* fix(web): updating @rollup/plugin-json dependency range

Co-authored-by: Ashley Hunter <ashley.hunter@hotmail.co.uk>
2020-09-24 11:54:05 -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
atomaszewski
e50b2c2de4 fix(node): update all webpack-dev-server versions 2020-09-21 12:38:54 -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
b11a50f9a0 cleanup(repo): add packages to dependency lists in package.json
This commit also adds a dependency check tool.
2020-09-14 13:07:45 -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
Jack Hsu
e4485d4223
fix(react): fix babel preset for web to support undefined caller (#3694) 2020-09-09 09:16:14 -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
Emilio Martinez
a45c31e6b5 chore(web): update sass to ^1.26.3
Updates `sass` to match the version used at the root project, while
loosening semver scope to allow versions within the current major.

Closes #3475
2020-09-01 16:07:36 -04: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
Jonathan Cammisuli
7dbf48a11e
chore(repo): update to 10.1.0-beta (#3561) 2020-08-19 13:06:12 -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
Victor Savkin
aff592b930 feat(angular): add an option to use eslint 2020-08-06 22:08:16 -04:00
Christopher Dieringer
68e169ba70 feat(core): pass through builder options to custom rollup config
Just as the default rollup config is a function of builder options, so too should-be/could-be userland rollup configuration

Pass in full options to userland rollup config function
2020-08-05 23:13:16 -04:00
Jo Hanna Pearce
53b69272eb
fix(misc): add regex pattern to schematics to prevent empty app/lib creation (#3396)
ISSUES CLOSED: #2924
2020-07-31 10:44:31 -04:00
Jason Jean
7af13bbcbe
fix(core): properly resolve tsconfig when serving from project root (#3403) 2020-07-31 10:41:11 -04:00
Victor Savkin
3cd9f4fe6c feat(misc): add nx package to make installing global cli easier 2020-07-29 12:16:12 -04:00
Jack Hsu
7b477eaea4
fix(react): allow env to work in .babelrc for projects (#3385)
Closes #3351
2020-07-23 16:18:40 -06:00
Jack Hsu
ed8bd2bbe8
Revert "fix(core): resolve webpack loaders with require.resolve() (#3341)" (#3371)
This reverts commit d74ab4e9d6eae6d83c3bb76072b45f7a4c7a6305.
2020-07-20 16:24:47 -04:00
Jack Hsu
83865747e9
fix(react): move url-loader to the react package.json (#3356) 2020-07-17 10:41:16 -04:00
Victor Savkin
5d53661139 fix(repo): update the repo to nx 10 2020-07-16 16:18:00 -04:00
Spencer Elliott
d74ab4e9d6
fix(core): resolve webpack loaders with require.resolve() (#3341)
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
2020-07-15 13:55:38 -04:00
Adam L Barrett
9a5650136c
fix(react): fix differential loading in ES6 only Web/React apps (#3319) 2020-07-14 11:02:33 -04:00