338 Commits

Author SHA1 Message Date
Jason Jean
26177d15af
fix(testing): fix ts-node migration version (#10578) 2022-06-03 21:55:07 +00:00
Leosvel Pérez Espinosa
eea2470619
feat(angular): support angular v14.0.0 (#10559) 2022-06-03 10:23:09 -04:00
Leosvel Pérez Espinosa
914f0ce707
feat(misc): update typescript to 4.7 (#10560) 2022-06-02 13:29:11 -04:00
Jason Jean
925a27bf64
fix(devkit): add options allow trailing commas for parsing json (#10538) 2022-06-01 13:13:24 -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
Leosvel Pérez Espinosa
62afcb79b0
feat(angular): support angular v14.0.0-rc.2 (#8883) 2022-05-30 16:09:00 -04:00
Caleb Ukle
36a71447c7
fix(testing): add tsquery as a dep for jest (#10454) 2022-05-24 16:57:42 +00:00
Jason Jean
04985be149
chore(repo): switch publishing to use lerna (#10293) 2022-05-20 00:35:47 +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
Denis Frenademetz
5dc5429632
fix(testing): 14.0.0 jest migration errors when additional configurations are specified 2022-05-06 08:34:04 -05:00
Jason Jean
e4cccfc14d
chore(repo): update nx to 14.1.1 (#10132) 2022-05-04 15:27:43 +00:00
Jason Jean
5e23c07077
fix(core): automatically add root to the project.json projects (#9977)
* fix(core): automatically add root to the project.json projects

* chore(core): move project-configuration generator utils to nx package

* fix(core): add migrations to remove root
2022-04-28 13:24:35 -04:00
Craigory Coppola
99fcb7873e
feat(nx-plugin): add --includeHasher option to generate hasher boilerplate (#9891)
Co-authored-by: James Henry <james@henry.sc>
2022-04-27 12:44:48 -04:00
Enoyao
35d6f4da47
chore(core): use destructuring assignment (#9447)
* chore(core): use destructuring assignment

* chore(core): use destructuring assignment

* chore(core): use destructuring assignment

* chore(core): use destructuring assignment

* chore(core): use destructuring assignment
2022-04-26 17:24:54 -04:00
Jason Jean
4f99b77e42
chore(repo): update nx to 14.0.2 (#9974) 2022-04-23 18:06:01 +00:00
Caleb Ukle
1297f0616a
fix(testing): fix migration path error on windows (#9969) 2022-04-23 04:07:45 +00:00
Caleb Ukle
88971468db
fix(testing): pass --js flag to jest generators (#9965) 2022-04-22 22:43:59 -04:00
Caleb Ukle
fca85ca482
fix(testing): add missing --js support for jest generators (#9959)
* fix(testing): add ts-node as devDep

* fix(testing): add missing --js option for jest generators
2022-04-22 14:49:40 -04:00
Caleb Ukle
b93091b558
fix(testing): include jest.config.ts in tsconfig.spec.json (#9938) 2022-04-21 22:47:53 +00:00
Caleb Ukle
e6988753b8
feat(testing): update to latest jest version (#9792)
bump to v27.5.1 of jest and 0.2.20 of @swc/jest
2022-04-21 18:26:30 +00:00
Caleb Ukle
39331d1e17
feat(testing): move jest config to .ts files (#9854)
* feat(testing): move jest config to .ts

move jest config and preset to ts files

ISSUES CLOSED: #8344

* fix(testing): update tests for jest.config.ts changes

update tests broken by renaming jest fils to ts files
2022-04-21 17:58:40 +00:00
Caleb Ukle
c265c4686b
feat(testing): support extra jest cli args (#9904)
pass extra cli args to jest to allow 3rd party plugins to work correct like jest-runner-groups

ISSUES CLOSED: #9873
2022-04-20 18:28:55 +00:00
Jason Jean
cb7fb22bca
feat(core): remove @types/node from default workspace (#9853)
Signed-off-by: Jason Jean <jasonjean1993@gmail.com>
2022-04-20 12:43:23 -04:00
James Henry
46e7b4d49c
chore(core): improve help output for generators and executors (#9800) 2022-04-12 14:05:55 -04:00
Giora Guttsait
75b0744955
fix(core): init generators should not crash when trying to remove dependencies when package.json does not have dependencies (#9765)
Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
2022-04-12 09:10:13 -04:00
Enoyao
10ae4c1154
chore(core): use optional chaining (#9445)
* chore(core): use optional chaining

* chore(core): chore(core): chore(core): use optional chaining

* chore(core): use optional chaining

* feat(core): chore(core): chore(core): use optional chaining

* chore(core): chore(core): use optional chaining

* chore(core): chore(core): chore(core): use optional chaining

* chore(core): chore(core): use optional chaining

* chore(core): chore(core): use optional chaining
2022-04-01 18:40:47 -04:00
Victor Savkin
428106f6be
cleanup(core): create more meaningful file structure in nx package (#9621) 2022-03-31 09:07:22 -04:00
Jason Jean
1bc2298b19
fix(testing): remove default testTimeout value which overrides the jest config (#9616) 2022-03-30 15:47:02 +00:00
Benjamin Cabanes
5d28162269
docs(core): add description to jest package (#9531) 2022-03-25 16:42:47 -04:00
Benjamin Cabanes
6dae32cc3a
docs(nxdev): support packages schemas metadata & discoverability (#9383) 2022-03-24 12:00:06 -04:00
Victor Savkin
d4b5c30eba
cleanup(core): remove the indirection left after inlining ta… (#9469) 2022-03-23 22:18:17 -04:00
Benjamin Cabanes
1723e8e6b3
docs(nxdev): remove unused versions & flavors feature (#9462) 2022-03-22 17:44:35 +00:00
K. Golbang
cd8c9b0313
feat(testing): support for memory leaks detection for jest added [logHeapUsage, detectLeaks] (#9339) 2022-03-18 16:10:28 -04:00
Victor Savkin
6f038e7a4a feat(core): reorganize packges to consolidate all cli-related code in nx 2022-03-14 16:42:51 -04:00
Victor Savkin
4e9375f5f4 chore(repo): update the version of nx 2022-03-11 10:40:40 -05:00
Miroslav Jonaš
ca38be735d
chore(core): add type for hasher filter to avoid typos (#9287) 2022-03-11 14:54:21 +01:00
Victor Savkin
a32d46c5a3 feat(core): provide an experimental hashing mode for jest and cyrpess 2022-03-10 21:16:58 -05:00
Jason Jean
94687e993c
chore(repo): ensure license file exists for all published packages (#9274) 2022-03-10 18:33:06 -05:00
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
Victor Savkin
298ceba5b3
chore(repo): readme fixes 2022-01-24 09:39:31 -05:00
Victor Savkin
9e75918154
feat(core): speed up file map creation (#8597) 2022-01-19 15:30:21 -05:00
kpaxton
93095f561a
fix(testing): fix jest migrate 13.4.4 script handling missing transform property (#8595)
Fix issue for migrating jest plugin to 13.4.4 when the projects
 may have a custom preset that
excludes the transform property
 from the jest.config.js.
 Just adds an if statement around the
loop for the transform property

ISSUES CLOSED: #8566
2022-01-19 10:05:11 -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
Caleb Ukle
baf44ad662
fix(testing): Create root babel config if one isn't present (#7816)
* fix(testing): create root babel config for babel-jest option

when creating a jest project with babel-jest a root babel.config.json file will be create if one

doesn't exist and babel deps install for allowing jest tests to run successfully

ISSUES CLOSED: #6782

* feat(testing): add migration for missing root babel config
2022-01-07 17:05:32 -05:00
Phillip Barta
8abcaab7c3
fix(misc): dont publish jest.config.js files (#8341) 2022-01-07 14:10:24 -05:00
Chau Tran
214ef8ac4f chore(testing): adjust tests that are affected by removing swc 2021-12-23 19:56:58 -05:00
Chau Tran
f97961d865 fix(testing): remove 'swc' from compiler option for jest generators
@swc/jest is not currently working as it's supposed to. at least, with single .swcrc file.
2021-12-23 19:56:58 -05:00
Chau Tran
d6d56c7c4e chore(js): adjust unit test 2021-12-23 19:56:58 -05:00