321 Commits

Author SHA1 Message Date
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
Minijus L
da658e10a7
fix(testing): update Jest to 27.2.x (#7101) 2021-09-30 16:46:45 -04:00
Victor Savkin
d79bba3630 chore(repo): update to nx 12.10 2021-09-20 16:39:13 -04:00
Andrew Luca
fe7c25d00f
chore(misc): add repository directory for all packages.json (#6973) 2021-09-15 11:53:08 -04:00
Craigory Coppola
25519a91ad
fix(testing): fix(testing): support for typescript jest configs (#6920)
ISSUES CLOSED: #5394
2021-09-03 14:40:56 -04:00
Juri
4305c5ef63 fix(testing): jest migration for Angular in 12.4 2021-08-22 12:50:47 +02: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
Jason Jean
6fbf7ffa16
feat(misc): remove ts-node, tslib, and dotenv from empty workspace package.json (#6763) 2021-08-18 17:36:11 -04:00
Gustavo Bini
572e24e466
feat(react): add --changedSince flag to jest runner (#6729) 2021-08-16 16:24:36 -04:00
Leosvel Pérez Espinosa
f3cd6028f7
fix(testing): handle migrating base jest config without projects (#6601) 2021-08-04 17:30:27 +01:00
Jack Hsu
cdb954083e
fix(web): remove unnecessary packages from being installed with @nrwl/web (#6554) 2021-07-30 15:51:43 -04:00
Jack Hsu
bd7b2aadf8
fix(testing): remove installation of babel packages for jest projects (#6546) 2021-07-30 09:36:21 -04:00
Phillip Barta
1b5498f367
feat(core): updated dotenv and switched to import 'dotenv/config' (#5615) 2021-07-29 17:49:23 -04:00
Leosvel Pérez Espinosa
9044a8f869
cleanup(misc): rename collection.json to generators.json (#6442) 2021-07-21 11:42:43 +01:00
Zachary DeRose
f0dbfb0e0c
fix(testing): fixing formatting on root jest.config migration (#6418)
* fix(testing): fixing formatting on root jest.config migration

* fix(test): rm console.log
2021-07-19 18:54:20 +00:00
Jason Jean
9c3d798ecc
fix(testing): fix getting jest config from tree when require is used (#6322) 2021-07-12 15:06:24 +00:00
Zachary DeRose
41234db93b
fix(testing): fixing migration and interop with move generator (#6323)
* fix(testing): fixing move tests and functionality

* fix(testing): fixing migration to no-op if getJestProjects() is already being used

* fix(misc): rming console.log statements
2021-07-09 23:22:55 +00:00
Zachary DeRose
2524fdbc3d
feat(testing): Using getJestProjects() out of the box (#5900)
* feat(testing): updating nx to use getJestProjects() itself

* feat(testing): using getJestProjects() for new workspaces

* feat(testing): accomodating for getJestConfig() when adding new project

* feat(testing): migration for updating the base jest.config.js

* testing...

* fix(testing): fixing formatting in tests and bumping to next version

* fix(testing): fixing broken tests

* fix(testing): fixing test for jest init

* fix(testing): removing unnecessary test in jest project

* fix(testing): updating remove generator to work with jest utility fn

* fix(testing): fixing line break on package.json

* fix(testing): fixing import statement

* fix(testing): using AST to update the jest config contents

* fix(testing): fixing snapshot tests

* fix(testing): fixing describe to 12.6

* fix(testing): adding back in import statement to jest.config.js

* fix(testing): updating generated docs
2021-07-09 16:32:01 -04:00
Miroslav Jonaš
b9d76693b9
chore(repo): update remaining jest dependencies to v27 (#6296) 2021-07-09 19:06:15 +02:00
Craigory V Coppola
442e4fc6a1
chore(repo): convert to project json format (#6286) 2021-07-08 11:36:35 -04:00
Jonathan Cammisuli
d491b3eb66
feat(testing): add batch support for jest (#6234)
* feat(testing): add batch support for jest

* chore(testing): add missing deps

* fix(testing): properly structure the data without reduce

* fix(testing): use results.starttime instead of performance.now

* chore(testing): fix typo

* feat(testing): use overrides to pass to the jest process

* feat(testing): get all configs before building results

* feat(testing): use index to get config
2021-07-06 10:29:55 -04:00
Kyle Bastien
9be7a101d9
chore(core): add missing dependencies to devkit and jest package.json (#6233) 2021-07-05 16:49:38 -04:00
Miroslav Jonaš
8ab463e386
cleanup(core): replace deprecated usage of appRootPath (#6241)
* cleanup(core): replace deprecated usage of appRootPath

* cleanup(core): revert migration changes
2021-07-05 15:51:19 -04:00
Zachary DeRose
4406141637
docs(misc): fixing broken links in jest executor doc page (#6175) 2021-06-30 10:07:44 -07:00
AgentEnder
3ed002f1b1 cleanup(testing): jest 27 migration misses old style astTransformers
ISSUES CLOSED: #6110
2021-06-25 17:40:12 -04:00
AgentEnder
b873688d41 cleanup(testing): additional null-check in jest migration
Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

ISSUES CLOSED: #6090
2021-06-25 17:40:12 -04:00
Jason Jean
4f7191e154 chore(repo): update nx to 12.5.0-beta.5 2021-06-25 17:08:37 -04:00
Phillip Barta
fe97444d78
feat(core): migrate prettier to v2.3.1 (#5623) 2021-06-17 16:44:30 +02:00
Jason Jean
1a1039f6c6
fix(testing): fix ts-jest transformer migration (#6024) 2021-06-16 01:03:36 +00:00
Craigory V Coppola
43b3eaf0bf
chore(testing): added null check to jest migration (#6021) 2021-06-15 22:47:23 +00:00
Craigory V Coppola
f9751786c6
feat(testing): support for Jest 27 (#5873)
- Sets default testEnvironment to web
- Updates node generators to specify testEnvironment: node
- Provides migrations to update existing jest.config.js files
- Bump angular-preset-jest to latest

ISSUES CLOSED: #5771
2021-06-11 13:25:57 -05:00
Phillip Barta
a2c2d94050
feat(core): first step to common JSON behavior and common fileutils (#5859) 2021-06-09 12:45:16 +02:00
vsavkin
f82344d63a chore(repo): refine the tag line 2021-05-18 20:55:40 -04:00
vsavkin
af23cc5d7d feat(misc): change the nx tag line 2021-05-18 16:07:22 -04:00
Phillip Barta
52e3083a19
feat(core): added encoding param in Tree.read() (#5668)
feat(core): added encoding param in Tree.read()
2021-05-17 21:03:04 -04:00
Leosvel Pérez Espinosa
678818a58b
feat(angular): upgrade Angular to v12.0.0-rc.3 (#5630)
* feat(angular): upgrade Angular to v12.0.0-rc.3

* feat(angular): target Nx v12.4.0-beta.0 for Angular v12.0.0-rc.0 upgrade

* fix(angular): use defaultConfiguration if no other configuration is passed

* cleanup(angular): sync migration folder name to target version

* fix(repo): creating custom schema flattener for docs

* chore(repo): amend yarn.lock

* feat(angular): update angular storybook to use webpack 5

* fix(angular): add legacy peer deps for angular+jest

* fix(angular): move migrations to 12.3.0-rc.0

Co-authored-by: Zack DeRose <zack.derose@gmail.com>
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-05-12 12:20:12 -04:00
Jason Jean
ef442dfeaf
fix(testing): convert jest migrations to nx devkit (#5586) 2021-05-07 10:44:15 -04:00
Juri Strumpflohner
56fc0adc5d
fix(testing): adjust test-setup in Jest 6.5.5 migration (#5568) 2021-05-06 17:43:26 -04:00
Christopher Dieringer
92a92c4117
feat(testing): support test timeout argv flag (#5520)
Co-authored-by: c0d01a5 <christopher.dieringer@walmartlabs.com>
2021-04-30 19:10:13 -04:00
Juri Strumpflohner
f7bdd89e3e
fix(testing): Jest migration if globals or tsconfig is not present (#5506) 2021-04-30 09:14:16 -04:00
Zachary DeRose
65b2edf69d
feat(testing): adding getJestProjects() utility for root jest.config.js file (#5425) 2021-04-28 15:45:33 -04:00
vsavkin
85ceb3c790 fix(core): propagate sigterm and other signals correctly 2021-04-26 20:50:30 -04:00
Tasos Bekos
156e3c2c40 chore(repo): use jest-circus runner 2021-04-26 15:16:09 -04:00
Minijus L
357ecd09a4
fix(testing): update ts-jest to version 26.5.5 (#5405)
Update `jest.config.js` ts-jest section with lower-cased 'tsconfig' property as 'tsConfig' is to be deprecated in version 27.
2021-04-26 08:56:52 -04:00
Minijus L
95d1b864e2
feat(angular): add migration for jest-preset-angular 8.4.0 (#5377) 2021-04-23 13:06:08 -04:00
Ravi Rajpurohit
bc9eaedb41
feat(repo): replace tslint with eslint in recommended extensions (#5280)
* feat(repo): feat(repo): replace tslint with eslint in recommended extensions

* feat(linter): recommand eslint extension when creating a project with eslint
2021-04-22 10:34:39 -04:00
minijus
4df9b121d6 chore(angular): update jest-preset-angular to 8.4.0
Change import path and snapshotSerializers according to jest-preset-angular version 9 deprecations.
2021-04-16 09:13:09 -04:00
Phillip Barta
edf0734657 chore(repo): updated dependency 'strip-json-comments' 2021-04-16 08:44:21 -04:00
vsavkin
38c111ba06 chore(repo): update to nx 12 2021-04-07 12:31:23 -04:00
vsavkin
b5efa6bfee feat(core): hash only relevant parts of global config files 2021-04-06 20:20:47 -04:00