573 Commits

Author SHA1 Message Date
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
Adam L Barrett
c5426d46d6
feat(react): remove IE 11 and old browsers from default config in React/Web Schematics (#3321) 2020-07-13 12:41:20 -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
1e593a2b07 fix(misc): minor format changes in readmes 2020-06-15 10:27:07 -04:00
Victor Savkin
0111d87575 feat(repo): have separate readmes for all plugins 2020-06-14 23:33:05 -04:00
Victor Savkin
e71ceba4ce feat(repo): run e2e tests using nx 2020-06-07 23:31:38 -04:00
Rares Matei
5a59f090fe
fix(linter): fix exclude pattern for tslint and eslint schematics (#3113) 2020-06-05 16:04:53 -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
Daniel Ji
25432a6395
fix(react): exposed the crossOrigin option for web builder options (#2830)
ISSUES CLOSED: 2419

Co-authored-by: danielji <daniel.ji@innovid.com>
2020-05-29 11:04:08 -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