56 Commits

Author SHA1 Message Date
Colum Ferry
80f3d03d1d
feat(core): move string utils to devkit (#15479) 2023-03-10 13:15:47 -05:00
Colum Ferry
c3a58e9c1d
feat(core): move forEachExecutorOptions to devkit (#15547) 2023-03-10 17:04:10 +00:00
Craigory Coppola
a60bfc224e
fix(linter): init should succeed if project has null targets (#15255) 2023-02-27 16:06:17 -05:00
Caleb Ukle
8a97b43eb1
feat(testing): jest 29 support (#14701) 2023-02-23 14:30:47 -06:00
Jason Jean
fa6e8ea987
fix(js): refactor ensurePackage (#15074) 2023-02-22 18:47:40 -05:00
Emily Xiong
a97212b601
feat(core): move tsconfig.base.json to @nrwl/js:init (#14467) 2023-02-16 11:17:30 -05:00
Miroslav Jonaš
9b51f6b0aa
fix(linter): add node_modules to linter ignore patterns (#14980) 2023-02-15 17:06:18 -05:00
Jack Hsu
d7536aa7e3 feat(core): clean up workspace configuration code 2023-01-23 19:35:15 -05:00
Daniel Schuba
41a9bc18fd
feat(misc): move ci options to configuration (#14215)
CLOSED https://github.com/nrwl/nx/issues/12045
Fixes https://github.com/nrwl/nx/issues/12045
2023-01-23 08:42:21 -06:00
William Neely
c82f7c3848
docs(linter): remove double with (#14047) 2023-01-09 15:30:52 -05:00
Victor Savkin
422c8c735a cleanup(core): clearly split nx.json config and projects config 2023-01-05 15:35:36 -05:00
Victor Savkin
34d861d234 fix(testing): preserve the old coverage layout 2022-12-11 14:47:16 -05:00
Victor Savkin
40b39b2e64 fix(core): remove leading ./ when normalizing root project outputs 2022-12-10 15:53:25 -05:00
Jason Jean
61d7d74378 fix(misc): fix tsconfig file includes 2022-12-05 10:39:03 -05:00
Jack Hsu
cded83b2c5
feat(react): remove unnecessary dependencies from @nrwl/react (#13525) 2022-12-01 17:06:32 -05:00
Miroslav Jonaš
05d0bf1e1e
fix(linter): standalone projects should be detectable with eslint (#13435) 2022-11-28 10:39:00 -05:00
Miroslav Jonaš
0bd7685dbf
feat(linter): add .eslintrc to json-like migratable configs (#13396) 2022-11-25 11:57:29 +00:00
Miroslav Jonaš
3fe5df7207
feat(linter): support new config format for eslint discovery (#13395) 2022-11-25 09:54:40 +00:00
Miroslav Jonaš
110b5f2867
feat(core): enable linter on root projects (#13347) 2022-11-24 22:51:24 +01:00
Victor Savkin
16fd4374d6 feat(misc): derive workspace layout dynamically 2022-11-23 15:45:13 -05:00
Miroslav Jonaš
7f7538bb04
docs(linter): add example for workspace-rule generator (#12938) 2022-11-02 16:35:52 +01:00
Mr Mo
d4fd7c0fa1
fix(linter): check for all .eslintrc.* files when generating a package (#12515) 2022-10-12 11:20:51 +02:00
Jason Jean
834e2db7cb
feat(core): prefix outputs and warn on non-prefixed outputs (#12470) 2022-10-11 21:54:25 +00:00
Colum Ferry
09c6ccb266
feat(linter): remove tslint support (#12279) 2022-09-28 11:08:01 -04:00
Craigory Coppola
9b63ce167a
feat(core): don't generate workspace.json for v2 workspaces (#12127) 2022-09-27 23:16:22 +00:00
Jason Jean
292f0c14b1
feat(core): generate inputs configuration for new workspaces (#11856) 2022-09-07 22:32:59 -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
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
Laforge Thomas
c117ad51ec
fix(linter): update typescript eslint dependency (#11112)
Co-authored-by: Miroslav Jonas <missing.manual@gmail.com>
2022-07-20 21:57:51 +00:00
Craigory Coppola
c9897c61e6
fix(core): swc should be an optional peer dependency (#10461) 2022-05-26 12:09:27 -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
Jason Jean
4dbd6559cf
fix(linter): fix default lint file (#10250) 2022-05-11 16:45:21 +00:00
Alois
e5bde2fe46
fix(linter): Generator creating .eslintrc.json at the root path even when .eslintrc.js already exist (#10080)
* feat(devkit): feat(devkit): don't replace begining undescore when creating file

Underscore is a character usually used for sorting purposes and is absolutely legit. There is no
reason to replace it.

ISSUES CLOSED: #8875

* fix(linter): generator creating .eslintrc.json at the root path even when .eslintrc.js
2022-05-11 11:07:10 -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
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
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
Benjamin Cabanes
6dae32cc3a
docs(nxdev): support packages schemas metadata & discoverability (#9383) 2022-03-24 12:00:06 -04: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
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
Jack Hsu
6d6f29439d
feat(testing): add --compiler=tsc|swc|babel option for jest project generator (#8177) 2021-12-15 14:27:53 +00: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
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
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
Jason Jean
a7f89508e5
feat(linter): cache --outputFile (#6852) 2021-08-26 11:25:51 -04:00
Jason Jean
85f92e740e
feat(misc): simplify npm scripts generated (#6764) 2021-08-20 12:07:26 -04:00
Phillip Barta
84f873dcdb
cleanup(misc): cleanup typescript imports 2021-06-16 14:07:01 -04:00
James Henry
a3c08a9153
feat(linter): do not set eslint parserOptions.project by default (#5798) 2021-05-28 13:35:34 +00: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
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