552 Commits

Author SHA1 Message Date
Jason Jean
448923a1b1
chore(repo): update nx to 13.2.0-rc.4 (#7796) 2021-11-18 16:56:36 -05:00
Nicholas Cunningham
49529b69d0
fix(web): add scripts default value in schema.json (#7757)
The scripts property inside project.json is not required. So if it is not provided running the build
command should not fail due to the scripts property being missing.

ISSUES CLOSED: #7178
2021-11-16 17:59:42 -05:00
Nicholas Cunningham
6e801a1e9b
fix(web): default react builds to production when NODE_ENV is not provided (#7727)
ISSUES CLOSED: #7410
2021-11-15 14:30:39 -05:00
AgentEnder
f6a562d1ec chore(repo): migrate to v13.1.4 2021-11-11 15:12:06 -05:00
Nicholas Cunningham
6c7891cf34
fix(web): add default value for project.json schema style (#7693) 2021-11-10 16:56:25 -06:00
Colum Ferry
8d6ac4f694
chore(angular): support angular 13 (#7161)
* chore(angular): support angular 13

Support Angular 13

chore(angular): support ng 13 next 11

chore(angular): upgrade tslib dep

chore(angular): update package and ng-packagr-lite executors to align with ng-packagr v13

chore(angular): update test snapshots with ts version

fix(angular): buildable lib tsconfig transform test

* chore(angular): sync ng-packagr changes to the package and ng-packagr-lite executors

* chore(angular): add migrations

* chore(angular): rxjs7

* feat(angular): check rxjs version to install

* feat(angular): update jest resolver to resolve esm

* chore(angular): fix version

* chore(angular): support jest-preset-angular

* fix(angular): tests

* fix(angular): fix e2e tests and add .angular to gitignore

* fix(angular): fix jest transformers ignore pattern

* fix(angular): fix node test

* fix(angular): fix workspace test

* fix(angular): import marble utils from jasmine-marbles instead of @nrwl/angular/testing

* feat(angular): update ngrx to 13.0.0-beta.;0

* fix(angular): temporarily skip test with pnpm

* fix(angular): bump jest-preset-angular to fix jest performance issues

* fix(angular): webpack-browser and server schema changes

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-11-08 12:01:55 -05:00
Nico
5bc169264b
fix(web): custom typescript webpack config files are now compatible for react applications (#7633)
When a typescript webpack config file is provided as an option for the web build executor
`nx
run
project:serve` will not fail because the file type is typescript.
ISSUES CLOSED: #7454
2021-11-05 21:50:45 +00:00
Jack Hsu
75513d6f8b
chore(repo): add tests to make sure migration factory/implementation are correct (#7541) 2021-10-27 16:12:07 -04:00
Jack Hsu
8686e919fb
fix(core): update generator logic so empty strings ("") for appsDir and libsDir work properly (#7508) 2021-10-25 12:01:53 -04:00
Jack Hsu
1528248548
fix(web): remove sass migration since it is failing (#7461) 2021-10-20 17:32:43 -04:00
Jack Hsu
22294e98a5
chore(react): update react packages (#7434) 2021-10-19 22:08:55 -04:00
Jack Hsu
5028a9116c fix(web): fix index html generator for webpack 5 2021-10-19 16:30:55 -04:00
Jack Hsu
9c1ae3a1b0
chore(web): clean up webpack setup (#7411) 2021-10-19 09:07:33 -06:00
Xie Jay
3fca35ceb1
fix(web): remove default baseHref in dev-server (#7302) 2021-10-15 21:38:16 -04:00
Craigory Coppola
bdcbac4445
feat(core): standalone project configuration is default (#7351)
* feat(core): standalone project configuration is default

* chore(core): changes to e2e tests

* fix(core): intuit projects when inside their directories when using project.json files

* chore(core): e2e changes

* fix(core): standalone configurations work with npm-project generator

* chore(core): e2e tests should use standalone configurations

* chore(core): e2e fixes per review
2021-10-16 00:07:12 +02:00
Jack Hsu
bedad1cc77
fix(core): patch resolve logic for tsconfig paths (#7387) 2021-10-15 20:47:18 +00:00
Miroslav Jonaš
b23f2d8b80
feat(core): extract project graph external nodes (#7340) 2021-10-15 10:08:12 -04:00
Jack Hsu
ed11e6ca73 fix(web): turn off fully specified option in webpack so packages like graphql@14 will not break build 2021-10-14 17:03:35 -04:00
Jack Hsu
ccf42f020a
fix(core): update webpack 5 migration smartly match expected version and packages before performing removal (#7365) 2021-10-14 19:16:19 +00:00
Jack Hsu
8779a22be3
chore(core): move webpack utils into web and node packages (#7367) 2021-10-14 18:50:46 +00:00
Craigory Coppola
79cf69b4e4
feat(core): consolidate nx.json and workspace.json (#6642)
* feat(core): consolidate settings between workspace.json + nx.json

workspace.json (and linked project.json files) now contain all project specific settings.
nx.json now contains all settings that affect the whole workspace.

* chore(core): fix angular unit tests w/ new config

* chore(core): fix failing tests

* chore(core): fix formatting

* chore(core): fix more tests

* chore(core): normalize-nx-json feedback

* chore(core): Fix more unit tests

* chore(core): fix remaining tests in workspace

* chore(linter): fix remaining linter tests

* chore(core): fix remaining spec + build issues

* chore(core): formatting fixes

* feat(core): migration script to move config options to new locations

* chore(core): fix e2e tests

* chore(core): run format

* chore(react-native): fix failing tests

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* feat(core): move properties to new location during format step

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* feat(core): initial pass on ngcli-adapter for property consolidation

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(misc): fix tests

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* docs(core): update docs with changes

* chore(misc): fix tests

* chore(core): code review changes

updateWorkspaceJson -> updateWorkspace, no longer uses updater function

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): fix bug in ngcli impl

* fix(core): fix bug in ngcli-adapter

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* fix(core): fix ngcli-adapter

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): fix workspace e2e

* chore(core): fix nx-plugin e2e

* fix(core): move defaultProject to nx.json

* chore(core): fix broken workspace test

* chore(core): formatting

* chore(core): fix workspace format

* chore(core): add nxJson to ExecutorContext

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): remove all references ot `NxProjectConfiguration` from our code

* chore(core): Review Changes

* fix(core): update new config locations v13 migration
2021-10-14 10:42:47 -04:00
Jack Hsu
f9fe52bb18
fix(web): add support for barrel exports in web build (#7354) 2021-10-14 10:07:51 -04:00
Jack Hsu
fc3573f1ca
chore(web): remove install and build warnings (#7343) 2021-10-14 05:27:30 +02:00
Jack Hsu
086f67d4bd
chore(web): remove build options deprecated since Nx 11 (#7330) 2021-10-13 05:48:31 +00:00
Jack Hsu
724b0c0e3c
feat(core): upgrade to webpack 5 (#7283)
* feat(core): upgrade to webpack 5

* chore(core): update webpack 5 docs
2021-10-13 00:34:28 -04:00
Juri Strumpflohner
c446aa5c1d
feat(storybook): add Webpack 5 support for React Storybook setups (#6791)
* feat(storybook): add Webpack 5 support for React Storybook setups

ISSUES CLOSED: #6703

* feat(storybook): adding storybook webpack 5 migration to web migrator

Co-authored-by: Katerina Skroumpelou <sk.katherine@gmail.com>
2021-10-08 21:51:04 -04:00
Jack Hsu
a8bcd27933
fix(react): apply postcss config from apps to their lib dependencies (#7265)
Fixes #7040
2021-10-08 14:10:25 -04:00
Jack Hsu
0d3601e8cb
fix(react): use default module resolution (#7254)
Fixes #6662
2021-10-05 15:00:07 -04:00
Dan Roujinsky
268fc20305
fix(web): add postcss loader in sass, less and stylus module files (#7141) 2021-10-04 14:52:01 -04:00
Sushruth Shastry
11cc599463
fix(web): remove obsolete options for terser in webpack 5 mode (#6956)
* fix(web): remove chunkFilter option in webpack 5 mode

Fixes #6953

* fix(web): correct fix for the issue
2021-10-04 14:51:15 -04:00
Xie Jay
2bcc552fa0
fix(web): remove default value of baseHref (#6994)
close #5079
2021-10-04 14:50:26 -04:00
Jack Hsu
9c2a8b155c
feat(react): buildable React libraries now generate smaller ESM packages (#7199) 2021-10-04 14:39:20 -04:00
Jack Hsu
2cd26c47d3
fix(nextjs): fix buildable nextjs libs (#7197) 2021-10-01 14:16:03 -04:00
Jack Hsu
fec1c39be0
feat(react): add migration to replace deprecated node-sass with sass (#7105) 2021-09-23 12:01:38 -04:00
Victor Savkin
d79bba3630 chore(repo): update to nx 12.10 2021-09-20 16:39:13 -04:00
Victor Savkin
3e8427f783 docs(misc): clarify a few things regarding incremental builds 2021-09-18 21:13:53 -04:00
Andrew Luca
fe7c25d00f
chore(misc): add repository directory for all packages.json (#6973) 2021-09-15 11:53:08 -04:00
Marko Grešak
bbeb89cbc2
fix(web): fix stylesOptimization for webpack 5 (#6817)
ISSUES CLOSED: #6816
2021-09-15 15:22:07 +00:00
Jack Hsu
06d20352f7
fix(react): fix extracCss option for webpack 5 (#6925) 2021-09-03 12:17:48 -04:00
kazamov
804cc73f52
fix(web): npm dependencies from the project graph (#6843)
get the npm dependencies from the project graph correctly. Allow deep import from `externals` passed from settings

Co-authored-by: Zakir Nuriiev <zakir.nuriev@caspio.com>
2021-09-02 12:51:05 -04:00
Jason Jean
1b6c0ee7fa
feat(misc): add x-type to app and lib generators (#6874) 2021-08-27 19:28:01 -04:00
Jason Jean
a7f89508e5
feat(linter): cache --outputFile (#6852) 2021-08-26 11:25:51 -04:00
AgentEnder
c9c8fa7f1c chore(core): project.json should not be included in builds
Signed-off-by: AgentEnder <craigorycoppola@gmail.com>
2021-08-20 20:22:30 -04:00
Leosvel Pérez Espinosa
ff202d323c
cleanup(misc): rename oss preset to npm and update presets related docs (#6777) 2021-08-19 11:10:29 -07:00
Ashwin Gokhale
101a89e9e8
fix(web): Added WebpackError for webpack 4 compatibility (#6519)
* fix(web): Added WebpackError for webpack 4 compatibility

* Added WebpackError to cypress and node
2021-08-19 09:48:33 -04:00
Jack Hsu
cddb1edd56
feat(react): add format option for buildable libs (#6753)
- Clean up @nrwl/web:package executor
- Combine react package e2e tests to speed up test time
2021-08-18 23:08:30 -04:00
Ryan Marganti
74964834e5
fix(web): syncs loose option between @babel/preset-env and @babel/plugin-proposal-class-properties (#6715)
If `loose` is set to `true` for `@babel/plugin-proposal-class-properties`, the same must be true for
`@babel/preset-env`.

ISSUES CLOSED: #6683
2021-08-18 21:57:05 -04:00
Jason Jean
2f442ec632
feat(testing): remove cypress typescript preprocessor (#6706) 2021-08-16 16:23:17 -04:00
Jack Hsu
422c5f8c8e
fix(react): relax babel dependency versions (#6637) 2021-08-06 15:40:05 -04:00
Juri
b5b5f250d0 feat(react): add Nx React Storybook preset 2021-08-06 18:11:47 +02:00