167 Commits

Author SHA1 Message Date
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
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
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
Jack Hsu
a6db5facc5
fix(react): fix object destructuring with async-await for buildable libs (#3308)
Closes #3202
2020-07-10 14:44:37 -04:00
Jason Jean
a7b7af2dfe
feat(core): switch over to angular 10 (#3056)
* feat(core): switch over to devkit 10-rc.0

* feat(core): implement solution tsconfigs wip

* feat(angular): add angular migrations

* fix(angular): modify angularjs tests
2020-07-07 17:02:06 -04:00
czaplej#26
0c5c81b0be
feat(react): add sass-loader to webpack (#2853)
`sass-loader` allow export scss variables

Closes #2829
2020-06-24 14:03:36 -04:00
Jason Jean
0ab2fc7875
fix(repo): register local collections for unit tests (#3207) 2020-06-20 03:01:03 -04:00
Victor Savkin
d0cbc35efa feat(repo): build nx with nx 2020-06-03 16:25:25 -04:00
Victor Savkin
2a3116f2e6 feat(misc): add an option not to update package.json files when building libs 2020-06-03 12:55:37 -04:00
Jack Hsu
d593153a33
feat(react): refactored babel support so options are more easily customized (#3089)
This reverts commit 7679df22f5b90d085b5f32f2135d828036ee5aa7.
2020-05-29 02:09:47 -04:00
Victor Savkin
7679df22f5 Revert "feat(react): refactored babel support so options are more easily customized (#3058)"
This reverts commit 0e036272cbe156fe9750a2f2bc6498a08cf7f457.
2020-05-28 13:11:56 -04:00
Jack Hsu
0e036272cb
feat(react): refactored babel support so options are more easily customized (#3058) 2020-05-26 09:16:36 -04:00
Jack Hsu
bd5ca7d909
fix(nextjs): copy public folder to dist when building Next app (#3047)
Closes #3019
2020-05-22 15:56:15 -04:00
Jack Hsu
b95d395ab7
fix(react): update sass-loader to 8.0.2 and fix the options accordingly. (#2988)
Closes #2099
2020-05-11 23:08:02 -04:00
Jack Hsu
8e6ad2ffab
feat(react): add assets option for package builder to copy files to output path (#2933) 2020-05-01 09:16:49 -04:00
Jason Jean
e06822da7e
chore(repo): update prettier to v2 (#2934)
this is just for the repo, and not the workspace

Co-authored-by: Rares Matei <matei.rar@gmail.com>
2020-04-29 01:09:37 -04:00
Noriyuki Shinpuku
40ebe4dd7a
fix(core): fix source map generation for production build (#2808)
ISSUES CLOSED: #2802
2020-04-04 14:01:18 -04:00
Jason Jean
33dc84672e fix(react): fix build options being overwritten by undefined se… (#2798) 2020-04-02 16:47:15 -04:00
Jack Hsu
7225d29773
feat(react): add support for css modules for SASS/SCSS files (#2719)
Closes #2406
2020-03-24 22:20:09 -04:00
Michael Lancaster
2d02777c9a feat(core): add web:build support for environment variables 2020-03-23 16:26:11 +00:00
Emilio Martinez
4fb025bd41
fix(core): filter webpack warnings only instead of full output (#2697)
Remedies an issue where the entire webpack output would be filtered-out if any part of it contained a warning to be ignored.

Additionally, this adds one more warning filter to suppress a `license-webpack-plugin` warning emitted when a license isn't found in a third-party.

Closes #2696
2020-03-20 16:20:46 -04:00
Jack Hsu
6b9f35bc45
feat(react): --maxWorkers and --memoryLimit add tests and common fix (#2581)
`nx serve -—maxWorkers=1 -—memoryLimit=1024`

Closes #2366
2020-03-05 09:12:18 -05:00
Jack Hsu
a433035eca
chore(react): update web/react dependencies and clean up npm warnings (#2547) 2020-02-25 11:03:58 -05:00
Max Koretskyi
9b2e07026d
Remove dependency on Angular specific tools from @nrwl/web (#2543)
cleanup(react): remove dependency on Angular specific tools from @nrwl/web
2020-02-25 08:57:56 -05:00
Jack Hsu
1132d9ec57
feat(react): add support for css modules (#2349)
Closes #1744
2020-01-20 15:52:34 -05:00
Josip Bojčić
4060930240 feat(react): add an option to set memory limit for type checking service process (#2305) 2020-01-14 10:18:28 -05:00
Jack Hsu
5d0e1ad199
feat(react): add support for const enums (#2224) 2019-12-23 14:06:58 -05:00
Jason Jean
cee6888a12
feat(misc): export mock builder context from workspace (#2221) 2019-12-19 18:30:21 -05:00
Victor Savkin
f5b56fd41b fix(misc): reenable run-many tests 2019-12-14 15:26:34 -05:00
Victor Savkin
f816fc424d Revert "feat(core): update to next version of angular deps"
This reverts commit bd230e0530e690b2ae7896a876510f62002943c8.
2019-12-10 08:07:26 -05:00
Jason Jean
bd230e0530 feat(core): update to next version of angular deps 2019-12-08 16:16:33 -05:00
victor savkin
dbd94926bf fix(web): clean up third-party code to drop unnecessary deps from web's package.json 2019-12-04 09:24:59 -05:00
Jack Hsu
7a434d469a fix(web): resolve issue where different core-js versions exist in the same workspace
Closes #2086
2019-11-28 07:54:08 -05:00
Brandon Roberts
791c3f25fc chore(nx): fix LicenseWebpackPlugin references 2019-11-12 09:53:43 -05:00
Brandon Roberts
a24c31dd20 chore(nx): format new files 2019-11-12 09:53:43 -05:00
Brandon Roberts
64ebe9483a refactor(nx): remove dependency from @nrwl/web on @angular-devkit/build-angular 2019-11-12 09:53:43 -05:00
Alan Elias
f3b673e618 feat(web): enable devserver allowed hosts option (#1969)
* feat(web): enable devserver allowed hosts option
2019-10-21 21:49:36 -04:00
Jack Hsu
34a887a93f
fix(web): use legacy decorators so they work with TypeScript. (#1928)
Closes #1908
2019-10-08 12:05:30 -04:00
Jack Hsu
a524b2e947 feat(react): add publishable library support
Issue #1521
2019-10-02 16:26:20 -04:00
Mehrad Rafigh
e6b07e282c fix(nx): use same prettier version (#1869) 2019-09-23 11:24:13 +01:00
Jack Hsu
68498ab08e
fix(web): fix broken test (#1820) 2019-09-10 09:58:12 -04:00
Jack Hsu
6f48e0175d
fix(web): use require.resolve for babel presets/plugins so we don't rely on module hoisting (#1813) 2019-09-09 21:37:35 -04:00
Victor Savkin
09a94b8958 feat(nx): implement next support 2019-09-08 14:36:30 -04:00
Brandon Roberts
0491ccc5b2 feat(nx): update to Angular 8.2, Devkit 8.3, and NgRx 8.3
Incorporates fix from https://github.com/angular/angular-cli/pull/15041
which changed the behavior of registering schematic defaults
2019-09-07 16:28:07 -04:00
Jack Hsu
ca889a862b
feat(web): add support for typescript decorators (#1798) 2019-09-06 15:38:29 -04:00
Jack Hsu
811c50b92c feat(web): use babel-loader instead of ts-loader for web build builder
- removes the `differentialLoading` build option
- differential loading is always enabled for prod builds

BEFORE (without ESM):

Benchmark #1: nx build demo --prod
  Time (mean ± σ):     13.834 s ±  1.731 s    [User: 11.817 s, System: 1.352 s]
  Range (min … max):   11.947 s … 16.015 s    10 runs

AFTER (with ESM):

Benchmark #1: nx build demo --prod
  Time (mean ± σ):     18.711 s ±  1.310 s    [User: 12.172 s, System: 1.394 s]
  Range (min … max):   17.232 s … 20.770 s    10 runs
2019-09-05 15:34:01 -04:00
Victor Savkin
70d71b3516 feat(nx): add support for migrations 2019-09-02 14:33:56 -04:00