266 Commits

Author SHA1 Message Date
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
Colum Ferry
a8ede441eb
feat(angular): support angular v13.3.0 (#9311) 2022-03-18 14:59:04 +00:00
Miroslav Jonaš
996e2decc7
fix(linter): ensure eslint fixes are stored before results are filtered (#9348) 2022-03-16 09:59:08 +00:00
Victor Savkin
4e9375f5f4 chore(repo): update the version of nx 2022-03-11 10:40:40 -05: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
acc29e9593
fix(misc): support workspaces using a root tsconfig.json instead of tsconfig.base.json (#9195)
* fix(misc): support workspaces using a root tsconfig.json instead of tsconfig.base.json

* cleanup(angular): address pr feedback
2022-03-09 11:30:26 -05:00
Miroslav Jonaš
445cd59c70
fix(linter): use projectGraph in hasher for calculating dependencies (#9118) 2022-03-08 11:25:16 +01:00
Miroslav Jonaš
3c45a1c81d
fix(linter): make sure hasher has all the tags (#9110) 2022-02-25 16:58:43 +00:00
Jack Hsu
95f5a085fa
feat(node): consolidate js and node plugins (#9086)
* chore(node): update docs after consolidating js and node plugins

* feat(node): consolidate js and node plugins
2022-02-23 16:59:03 -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
Colum Ferry
f4fa81338d
feat(angular): support version 13.2.0 (#8457)
Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
2022-01-28 09:01:51 +00:00
Miroslav Jonaš
d0a2a4db3f
fix(linter): handle missing project tslint during conversion (#8708) 2022-01-26 13:39:09 +00:00
Miroslav Jonaš
df4ba33a6d
fix(linter): skip tslint file checks if ignore flag set (#8692) 2022-01-25 21:47:31 +01:00
Victor Savkin
298ceba5b3
chore(repo): readme fixes 2022-01-24 09:39:31 -05:00
Jason Jean
e105514a21
fix(linter): make eslint peer dependency optional (#8622) 2022-01-20 15:05:47 -05:00
Victor Savkin
9e75918154
feat(core): speed up file map creation (#8597) 2022-01-19 15:30:21 -05:00
Jason Jean
bf22b2be7a
fix(linter): move eslint to peer dependencies (#8552) 2022-01-17 10:42:02 -05:00
Phillip Barta
4464da09f5
chore(repo): removed unused packages (#8536) 2022-01-14 13:36:55 -05:00
Phillip Barta
16e4964cb6
cleanup(linter): remove unnecessary createDirectory util function and use mkdirSyncs recursive option (#8359) 2022-01-11 15:33:25 -05:00
Phillip Barta
8abcaab7c3
fix(misc): dont publish jest.config.js files (#8341) 2022-01-07 14:10:24 -05:00
Phillip Barta
e57cef0901
cleanup(repo): use devkit instead of devkit reexports from workspace (#7773) 2021-12-21 21:06:31 +00:00
Victor Savkin
88751a3685 chore(repo): clean up the language to match the new tag line 2021-12-17 16:08:38 -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
Colum Ferry
08172bc3c8
feat(angular): upgrade to angular 13.1 (#8182) 2021-12-15 13:04:09 +00:00
Miroslav Jonaš
c5b66abb9d
fix(linter): improve error message when attempting to use deprecated tslint (#8090) 2021-12-10 12:27:00 +01:00
Juri Strumpflohner
85cde604ad
fix(linter): add missing @phenomnomnominal/tsquery dependency to package.json (#8015) 2021-12-06 19:21:17 +04:00
James Henry
3dece0dac1
feat(linter): automated migration for ESLint 8 changes (#7818)
* feat(linter): automated migration for ESLint 8 changes

* fix(linter): make category selector more specific
2021-11-29 13:47:38 -05:00
James Henry
98ffe8574b feat(linter): support eslint v8 (#7800)
* feat(core): support eslint v8

* fix(core): align version of eslint across all packages
2021-11-19 14:55:33 -05:00
James Henry
8fa36ff3e8
feat(linter): support eslint v8 (#7800)
* feat(core): support eslint v8

* fix(core): align version of eslint across all packages
2021-11-19 17:22:21 +00:00
Jason Jean
448923a1b1
chore(repo): update nx to 13.2.0-rc.4 (#7796) 2021-11-18 16:56:36 -05:00
AgentEnder
f6a562d1ec chore(repo): migrate to v13.1.4 2021-11-11 15:12:06 -05: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
Caleb Ukle
0ca5a88bf1
fix(testing) generated jest ts configs mismatch (#7556)
* fix(testing): add .test. files to spec tsconfig template

add support for .test.ts and with supportTsx .test.{js|tsx|jsx} files
in the tsconfig.spec.json template.

Note each package that excludes testing files will need to be updated to
exclude the new files (coming in future commits)

* fix(angular): add .test.ts support in tsconfigs

add .test.ts in angular jest template
update angular generators to exclude test files

* fix(gatsby): add .test. file prefixes to tsconfig ignore

ignore the new .test.{js|ts|jsx|tsx} files added to jest configs

* fix(react): add .test. file prefix to app/lib tsconfigs

add .test.{ts|js|tsx|jsx} files to be excluded by app/lib tsconfig

* fix(node): add .test. file prefix to app/lib tsconfig

add .test.{ts|js|tsx|jsx} files to be excluded by app/lib tsconfig

ISSUES CLOSED: #7263

* fix(nest): update tests for new .test.ts files in tsconfig

update tests to account for changes in node generators which add .test.ts to the exclude of
tsconfigs

* fix(express): update tests to account for new tsconfig changes

updated snapshots
added new patterns for tsconfig

* fix(linter): update snapshots for new tsconfig changes

snapshot updated to include new .test.ts file changes for tsconfig

* fix(node): update testing to account for spec tsconfig changes

add .test.ts files in e2e tests

* fix(testing): add migration for tsconfig changes

initial migration and test for tsconfig changes

* chore(testing): add to migrations collection

add the update-ts-config-for-test-filenames to migrations

* fix(testing): fix filesystem issue with jest tests

mock readConfig to always return an basic config to prevent issues of not finding a config in non
linux environments, aka missing /root

* cleanup(testing): update error message

update message logged when tsconfig isn't found to mention what was trying to be accompished so it
can be manually updated if desired.
2021-11-05 14:25:25 -05: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
Miroslav Jonaš
d9fd42eec8
chore(linter): update eslint to latest v7 version (#7400) 2021-10-18 15:20:51 +02: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
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
Leosvel Pérez Espinosa
301e11660a
fix(core): ensure workspace version format is respected when making changes to it (#7043) 2021-10-12 15:05:16 -04:00
Craigory Coppola
8435bdfb6f
feat(core): shift from 'master' to 'main' as default branch and base (#7111)
* chore(core): fix some broken tests

* docs(core): update docs to represent master -> main

* chore(core): review changes

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>

* chore(core): add migration script for backwards-compat w/ main default.

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-10-08 16:48:02 -04:00
Miroslav Jonaš
2bc103d599
fix(linter): linter should distinguish between ignored and projects with invalid configuration (#7096)
* fix(linter): linter should not break if project is ignored

* fix(linter): improve error message on ignored project and add tests

* fix(linter): fallback to eslint error handling to track ignored files

* fix(linter): pass original eslint error message through

* fix(linter): revert to the modified original solution
2021-10-01 21:40:31 +00:00
Miroslav Jonaš
7c4643a914
chore(linter): upgrade typescript-eslint to latest version (#7060) 2021-09-21 14:07:09 +02: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
James Henry
bafabb3a11
feat(linter): add support for workspace rules (#6859)
* feat(linter): add support for workspace rules

* chore(linter): move deps to correct package

* feat(linter): workspace-lint-rules as project with test target

* chore(linter): tiny clean up

* fix(linter): update generators.json after refactor

* chore(linter): implement e2e test and PR feedback

* docs(linter): update generator docs

* docs(linter): update generator docs

* docs(linter): update generator docs
2021-09-01 12:49:11 -04:00
Kyle Cannon
40532a2155
fix(linter): disabled eslint rules dont count as type checked rules (#6897) 2021-08-31 16:51:48 -04:00
Leosvel Pérez Espinosa
301e70aa7a
fix(linter): fix how eslint hasher gets projects from task dependencies (#6875) 2021-08-27 17:54:38 +01:00
Jason Jean
a7f89508e5
feat(linter): cache --outputFile (#6852) 2021-08-26 11:25:51 -04:00