685 Commits

Author SHA1 Message Date
Jack Hsu
ee8ba2de57
feat(misc): remove unused dependencies from packages (#11986) 2022-09-13 08:27:07 -04:00
Jack Hsu
5c00b75dca
chore(misc): update webpack migration to target 14.7.6 (#11987) 2022-09-12 23:49:32 -04:00
Jack Hsu
f49769a34a
feat(webpack): add webpack plugin (#11966) 2022-09-12 21:19:50 +01:00
Jason Jean
292f0c14b1
feat(core): generate inputs configuration for new workspaces (#11856) 2022-09-07 22:32:59 -04:00
Jonathan Cammisuli
e7ec91b9e0
feat(core): add file completion types for the nx language server (#11669) 2022-08-26 10:34:33 -04:00
Edd
36a72c7303
fix(react): fix(react): fix missing integrity tags in production builds (#10949)
Subresource Integrity attributes were not generated on production react builds
due to a missing
option pass through when writing the index file.
ISSUES CLOSED: #10926
2022-08-24 13:05:18 -04:00
Craigory Coppola
6948ffdcff fix(core): project graph should be read from executor context
These changes lower the risk of reading the cache during a write operation when multiple
processes are actively writing / reading the cache.
2022-08-19 12:50:07 -04:00
Miroslav Jonaš
187f5200c0
fix(linter): add jest to root .eslintrc if selected as unit test runner (#11555) 2022-08-18 14:51:09 +02:00
Victor Savkin
f8da1ad42b
chore(repo): update nx to 14.6.0-beta.3 2022-08-12 16:10:56 -04:00
Craigory Coppola
458fc36014
chore(misc): split create tree with empty workspace to remove parameter (#10188)
* feat(devkit): split create-empty-tree to different functions

* chore(repo): apply migration for createEmptyTree

* cleanup(misc): fix tests that migration misses
2022-08-11 19:24:04 -04:00
Jack Hsu
11219071f6
feat(web): update node types to 18.7.1 (#11546) 2022-08-11 14:23:35 +00:00
seanboose
4917239100
fix(web): run swc after other plugins in rollup (#11501) 2022-08-09 10:31:53 -04:00
Jack Hsu
5267f4555d
feat(misc): update shared ts-node and ts-loader packages (#11429) 2022-08-05 16:47:33 +00:00
Jack Hsu
dec910274b
fix(react): allow async functions to work with custom webpack config (#11467) 2022-08-05 16:13:31 +00:00
seanboose
b6bbd41b27
fix(web): fix json imports in rollup with swc (#11436)
moved the json plugin to be before the swc plugin in the rollup executor

ISSUES CLOSED: 11435
2022-08-04 10:43:06 -04:00
Szaby Grünwald
5614307ca2
fix(web): fix http-server proxyOptions arg converter (#11309)
Fix the string interpolation in the http-server command arg converter for proxyOptions.

ISSUES CLOSED: #11302

Co-authored-by: Szabolcs Grünwald <sgruenwald@eurofunk.com>
2022-07-28 12:12:03 -04:00
Jack Hsu
4bb8ab1b36
fix(react): buildable library sets NODE_ENV correctly (#11294) 2022-07-26 13:20:17 -04:00
Leosvel Pérez Espinosa
6f2d5243c5
cleanup(misc): replace usage of rxjs-for-await (#11182) 2022-07-22 15:28:45 -04:00
Jack Hsu
3a63eeab21
chore(core): remove checks for built dependencies in executors since dependsOn guarantees that they are built (#11227) 2022-07-20 15:56:57 +00:00
Jack Hsu
8173887fbb
feat(react): add tailwind setup generator (#11214)
LGTM!
2022-07-19 13:07:37 -06:00
Leosvel Pérez Espinosa
01f7376169
cleanup(misc): consolidate tslib version in generated projects (#11185) 2022-07-19 12:59:37 -04:00
Jack Hsu
d657f912d9
feat(web): upgrade webpack plugin versions (#11191) 2022-07-18 15:23:30 -04:00
Caleb Ukle
8154191eb1
feat(testing): Cypress 10 and component testing support (#9201)
* feat(testing): add generator to aid in the migration to cypress 10

cypress 10 introduces a new configuration format and new layout that requires update settings and
files for e2e projects

* feat(testing): cypress component tests for react/next

initial work for cypress component tests for react and next

* feat(testing): add support for v10 e2e cypress projects

create the correct files for cypress projects >v10 and reorganize tests based on version to allow
easier parsing of tests

* feat(testing): add utils for modifying cypress v10 config

provide ts transformers to take in an existing cypress config and update/add properties within the
given configuration

* fix(testing): fix tests affected by the cypress v10 changes

update tests to assert the correct files/folders/file contents due to the cypress changes in v10

* cleanup(testing): move cypress component testing plugins into the respective packages

move the plugins into out of cypress plugins into the specific vertical plugin to prevent issues
with circular refs

* cleanup(testing): bump cypress version

bump to latest cypress v10 release

* docs(testing): update docs for cypress 10

update cypress docs to include info about component testing and migration to cypress v10

* fix(repo): revert cypress version bump

keep v9 of cypress installed for nx repo until v10 release

* fix(testing): update cypress gen tsconfig and infer targets with converter

* fix(testing): make sure tests use the cypress v10 (for the intermediate)

* fix(testing): update target name after feedback

* fix(testing): support multiple target w/custom configs for cypress v10 migration

* fix(testing): refactor cy component tests into seperate verticals

* feat(testing): create storybook cypress preset

* fix(testing): clean up cy v10 migration

* fix(testing): don't branch for cypress executor testingType

* fix(testing): move cy comp test generator to next

* fix(testing): bump cypress deps

* fix(testing): clean up cy component testing generators

* fix(testing): update cy component testing docs

* fix(testign): dep check. runtime plugin pulls from @nrwl/react

* fix(testing): move e2e into verticals

* fix(testing): address PR feedback

* fix(testing): clean up unit tests

* feat(angular): support migrating angular cli workspaces using cypress v10

* chore(testing): update e2e tests

* fix(testing): address pr feedback

* chore(testing): remove cypress component testing for next.js

* fix(testing): address pr feedback

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
2022-07-08 14:34:00 -05:00
Miroslav Jonaš
b8efa778f6
fix(core): remove eslintrc.json from the package build artifact (#11043) 2022-07-07 18:34:34 +00:00
Victor Savkin
c52a8c2e9b feat(core): finalize the input api 2022-06-29 10:52:14 -04:00
Jack Hsu
bf11bbf709
feat(node): update @types/node to 18.0.0 (#10916) 2022-06-27 14:33:48 +00:00
Miroslav Jonaš
62bae5a120
feat(core): make npmScope optional (#10018) 2022-06-23 10:57:54 +02:00
Dylan Andersen
8cae2c9eca
docs(core): fix links to nx tutorials (#10763)
Co-authored-by: Dylan Andersen <dylan@joinhandshake.com@Dylans-MBP.attlocal.net>
2022-06-16 10:54:22 -04:00
Jack Hsu
d58eedccdb
feat(react): add generateExportsField option to @nrwl/web:rollup executor so it is an opt-in feature (#10742)
- Also adds skipTypeField option in case that is causing issues for users
- Fixes #10741
2022-06-15 14:44:56 +00:00
Nikola Radulaški
63ae3ae077
feat(web): add named extractCss option (#10710)
In Rollup rollup-plugin-postcss has option of 
named extracted css file which can be utilized 
by just passing a string to extractCss option.
This does not affect existing functionality.
2022-06-15 09:43:36 -04:00
Nikola Radulaški
f7a61dc2f2
fix(web): in webpack style-loader should be used when extract-css is false (#10192)
* fix(web): in webpack style-loader should be used when extract-css is false

* fix(web): remove unnecessary fallback

true value is already being read from schema
2022-06-15 09:00:57 -04:00
Jason Jean
5b17335f4d Revert "feat(core): support nested ignore files (#10455)"
This reverts commit 36d8ee26c430def7b68b123d1b87b792928411d2.
2022-06-13 13:16:05 -04:00
Huy TQ
3de1cb6089
fix(web): @nrwl/web:file-server throws 404 after refresh (#9839) 2022-06-10 18:55:57 +00:00
Gabriel Terwesten
36d8ee26c4
feat(core): support nested ignore files (#10455) 2022-06-10 14:05:41 -04:00
Kyzyl-ool Kezhik
c421324060
feat(web): added javascriptEnabled option for @nrwl/web:rollup (#8327) 2022-06-10 15:08:17 +00:00
Craigory Coppola
15c04b099e
chore(repo): enable eslint plugin checks (#10666) 2022-06-09 18:04:06 -04:00
Phillip Barta
b9e623d84d
cleanup(repo): refactored fileutils (#10503) 2022-06-08 10:38:34 -04:00
intellild
5809b8b7f9
feat(web): enable allowDeclareFields for @babel/preset-typescript (#9805)
* feat(web): enable allowDeclareFields for @babel/preset-typescript

* feat(web): enable allowDeclareFields for @babel/preset-typescript

Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
2022-06-07 21:47:57 +00:00
Craigory Coppola
4d7e5ba29a
chore(misc): remove defaultCollection from generators (#10601) 2022-06-06 20:03:46 +00:00
Craigory Coppola
7f7bc1a095
fix(core): require.resolve(m/package.json) is not guarunteed to work for modern module format (#10497)
* fix(core): require.resolve(m/package.json) is not guarunteed to work for modern module format

* chore(repo): update usage of new readModulePackageJson function
2022-06-03 20:54:15 +00:00
Leosvel Pérez Espinosa
914f0ce707
feat(misc): update typescript to 4.7 (#10560) 2022-06-02 13:29:11 -04:00
Victor Savkin
e491c6f738 feat(core): make nx.json optional 2022-05-31 15:35:28 -04:00
Victor Savkin
3d97203b1e
chore(repo): migrate to nx@14.2.0-beta.1 2022-05-30 20:10:02 -04:00
Nikola
daddcde73c
fix(web): fix dev-server deprecation warning (#10203)
This  PR will resolve deprecation warning:
(node:62713) [DEP_WEBPACK_DEV_SERVER_HTTPS] DeprecationWarning: 'https' option is deprecated. Please use the 'server' option.
2022-05-30 15:58:18 -04:00
Takashi Machinaga
85b185752c
fix(web): enable tree shaking (#8296) 2022-05-30 13:38:22 -04:00
Jason Jean
04985be149
chore(repo): switch publishing to use lerna (#10293) 2022-05-20 00:35:47 +00:00
Leosvel Pérez Espinosa
4c85e0791d
feat(angular): update postcss deps for new and existing workspaces (#10358) 2022-05-18 10:46:46 +01:00
Jack Hsu
70f1a6b781
feat(web): add support for Node ESM when used to package SSR-ready library (#10349) 2022-05-18 01:11:18 +00:00
Victor Savkin
6351413b98 fix(core): preserve dash casing when passing args to executors 2022-05-17 14:48:53 -04:00
Caleb Ukle
ecf88a6995
fix(testing): update v14 migration and migrate jest.config.ts to use export default (#10035)
* fix(testing): jest.preset.ts => jest.preset.js

* fix(testing): update to export default

* fix(testing): migration for moving to export default

* fix(testing): add eslint ignore comments for jest config properties

fixes: #10021

* fix(testing): update tsconfig.spec.json for next apps with project parserOptions

fixes: #9982

* fix(testing): prevent renaming root jest preset

fixes: #9973

* fix(testing): update snapshots for export default

* fix(testing): bump migration version to run

* fix(testing): make sure default jest tests pass for various projects

* fix(js): generate correct jest config for --compiler=swc --js
2022-05-11 18:04:29 +00:00