338 Commits

Author SHA1 Message Date
Leosvel Pérez Espinosa
cf7a18bd14
fix(angular): prevent adding dependencies when generating apps and specifying skipPackageJson (#8806) 2022-02-01 16:32:47 -05:00
Jack Hsu
120e987580
fix(react): fix issue with postcss and images in webpack config (#8802)
Fixes #8300
2022-02-01 11:43:01 -05:00
Phillip Barta
be91d1f99a
fix(core): stop inlining tsconfig-paths-webpack-plugin and use version with fix (#8357) 2022-01-27 08:59:46 -05:00
Phillip Barta
78c9f158a7
fix(web): remove terser from dependencies and update terser-webpack-plugin (#8631) 2022-01-27 08:53:24 -05:00
Isaac Mann
07ebdb36a3
feat(core): add nx graph as alias of nx dep-graph (#8539)
* feat(core): add nx graph as alias of nx dep-graph

* docs(core): add note about old dep-graph syntax

* cleanup(core): formatting

* feat(core): formatting

* feat(core): formatting

Co-authored-by: Isaac Mann <isaacplmann+git@gmail.com>
2022-01-21 11:15:23 -05:00
Jack Hsu
f231cfc01b
feat(repo): move gatsby plugin to nx-labs repo (#8617) 2022-01-20 12:00:51 -05:00
Leosvel Pérez Espinosa
7a35db9037
fix(web): prevent caching in the file-server (#8472) 2022-01-11 12:21:10 -05:00
Chau Tran
978cfe942d
fix(testing): turn swc/jest back on for react, web, and js (#8464) 2022-01-11 09:28:30 -05:00
Jack Hsu
166985f33d
feat(web): import TS plugin only if SWC is not used (#8328) 2021-12-29 15:15:00 -05:00
Chau Tran
214ef8ac4f chore(testing): adjust tests that are affected by removing swc 2021-12-23 19:56:58 -05:00
David Slabý
657d93ae7f
fix(web): shouldSkip get of undefined fixed, chunk push into Set fixed (#8140)
Co-authored-by: david.slaby <david.slaby@chyronhego.com>
2021-12-23 19:07:08 +00:00
Chau Tran
1139c616e1 feat(js): add nrwl/js:node executor to serve node apps 2021-12-22 10:33:02 -05:00
Jack Hsu
6d6f29439d
feat(testing): add --compiler=tsc|swc|babel option for jest project generator (#8177) 2021-12-15 14:27:53 +00:00
Jack Hsu
f8c394af46
feat(web): add swc compiler option for webpack executor (#8114) 2021-12-10 16:09:20 -05:00
Kirils L
015f1b78f4
feat(web): support swc compiler (#7997) 2021-12-09 21:16:35 +00:00
Kirils L
c6dd6b1865
fix(web): migrations run only for one project (#7996) 2021-12-03 20:17:11 +00:00
Benjamin Cabanes
66e4e85067
feat(core): new nx starter (#7912) 2021-12-03 11:05:09 -05:00
Jack Hsu
157c6e0fb0
feat(web): rename @nrwl/web:build to @nrwl/web:webpack (#7952) 2021-11-30 14:22:34 -05:00
Kirils L
bfd1a4715a
feat(web): rename package executor to rollup (#7904) 2021-11-30 09:32:12 -05:00
Kirils L
3d7b909af7
fix(nextjs): codesplit buildable next libs (#7717) 2021-11-22 09:40:14 -05:00
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
Nicholas Cunningham
6c7891cf34
fix(web): add default value for project.json schema style (#7693) 2021-11-10 16:56:25 -06: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
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
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