337 Commits

Author SHA1 Message Date
Victor Savkin
88751a3685 chore(repo): clean up the language to match the new tag line 2021-12-17 16:08:38 -05:00
Craigory Coppola
ea26751523
fix(core): remove generator should work w/o workspace.json (#8077) 2021-12-09 16:59:51 +00:00
Craigory Coppola
ec24422927
fix(core): package.json should not override project.json during generation of new js apps (#8076) 2021-12-09 11:59:05 -05:00
Craigory Coppola
c04686ab10
feat(core): optional workspace.json file (#7584) 2021-11-30 15:02:06 -06: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
Jason Jean
448923a1b1
chore(repo): update nx to 13.2.0-rc.4 (#7796) 2021-11-18 16:56:36 -05:00
Leosvel Pérez Espinosa
446ef6e552
fix(devkit): handle other variants of root paths in visitNotIgnoredFiles (#7767) 2021-11-17 14:02:54 +00: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
Craigory Coppola
892dfa0bcc
chore(core): fix migration for new config locations (#7390) 2021-10-15 23:45:46 +00: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
Miroslav Jonaš
b23f2d8b80
feat(core): extract project graph external nodes (#7340) 2021-10-15 10:08:12 -04: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
Victor Savkin
18c8e371ad feat(core): compute all workspace files incrementally 2021-10-12 12:10:13 -04:00
Victor Savkin
a81fbbac1b feat(core): clean up daemon server 2021-10-11 12:56:43 -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
Benjamin Cabanes
5ae45b63dd
docs(core): add categories typed comment for nxdevk (#7286) 2021-10-08 12:09:53 -04:00
Leosvel Pérez Espinosa
c21835d40a
fix(devkit): move files to a directory using normalized paths to handle windows correctly (#7264) 2021-10-06 17:42:36 +01:00
Juri Strumpflohner
83a6ffb47a
fix(nxdev): verify whether srcFolder passed to generateFiles exists (#7219) 2021-10-04 11:30:02 -04:00
AgentEnder
3a9910e311 fix(devkit): normalizePath should not be dependant on host OS
Currently, we split on path.sep in normalizePath. This results in differing results based on if the host file system is unix or windows. I
would expect that normalizePath(...) should return the same result wether or not it was executed in windows.
2021-09-28 11:37:03 -04:00
Victor Savkin
d79bba3630 chore(repo): update to nx 12.10 2021-09-20 16:39:13 -04:00
AgentEnder
8f9da7c762 fix(core): read v2 workspace format in converted nx generators
closes #6452
2021-09-15 11:54:03 -04:00
Andrew Luca
fe7c25d00f
chore(misc): add repository directory for all packages.json (#6973) 2021-09-15 11:53:08 -04:00
Russell Ormes
26f82b9059
fix(devkit): add '.tgz' to binaryExts array (#6930)
devkit's generateFiles function excludes parsing binary files with the templating engine.
This
patch adds .tgz files to the list of binary files to ignore.
2021-09-03 11:04:35 -05:00
Jason Jean
12ed2d3437
fix(devkit): normalizing paths when moving files (#6877) 2021-08-27 18:08:44 -04:00
Nrwl CI Machine
8cc41de22a fix(core): updateWorkspaceConfiguration does not respect extends 2021-08-23 10:51:19 -04:00
Jason Jean
4d6b5ff7af
fix(core): fix reading project config when nx.json doesn't have projects (#6802) 2021-08-20 20:19:02 -06: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
Nrwl CI Machine
5f02a10ac9 feat(core): add an ability to extend nx.json config 2021-08-17 14:44:41 -04:00
Nrwl CI Machine
bc4ec52f53 cleanup(misc): avoid importing rxjs in the core path 2021-08-06 16:29:16 -04:00
Leosvel Pérez Espinosa
3fb591fbd9
fix(misc): read settings in .editorconfig when formatting files in generators (#6616) 2021-08-05 16:02:45 +01:00
Leosvel Pérez Espinosa
5037f2ca6e
feat(core): add devkit tree method to change the permissions of a file (#6598) 2021-08-04 16:49:41 +01:00
Miroslav Jonaš
3aca62af68
cleanup(repo): remove unused ext from file data and fix ext regex matcher (#6550) 2021-08-04 09:45:07 -04:00
Edouard Bozon
5a9303784c
feat(devkit): make nx.json optional (#6398)
* feat(devkit): make nx.json optional (#5678)

Allow project configuration functions to work without nx.json configuration file, this is particulary handy for regular Angular CLI projects.

* docs(devkit): make `NxJsonConfiguration` partial

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-07-29 17:02:07 -04:00
erikagiroux
9f1e530cef
fix(devkit): add font file extensions to binaryExts in generate-files.ts (#6439)
Add font file extensions to the list of extensions that should not be rendered with ejs

ISSUES CLOSED: #5213

Co-authored-by: egiroux <erika.giroux@ubisoft.com>
2021-07-29 15:51:24 -04:00
Jason Jean
89a4ac29b2
cleanup(devkit): rename all variable names of host to tree (#6541) 2021-07-29 15:46:41 -04:00
Leosvel Pérez Espinosa
7d6837ce41
fix(misc): fix moving projects with standalone configuration (#6521) 2021-07-29 14:15:02 -04:00
vsavkin
0e52c43665 feat(core): store file deps and only reanalyze changed files 2021-07-16 20:21:45 -04:00
Jason Jean
769758d9cf
fix(devkit): do not update unknown properties to workspace configuration (#6388) 2021-07-15 23:53:05 +00:00
Craigory V Coppola
6ef8afbfd9
fix(core): wrapped angular schematics should be able to update newly created standalone projects (#6351)
* fix(core): wrapped angular schematics should be able to update newly created standalone projects

Wrapped angular schematics inside of generators should be able to update a newly created standalone
project configuration

ISSUES CLOSED: #6342

* fix(core): angular devkit schematics should normalize project paths before writing

Wrapped angular schematics inside of generators should be able to update a newly created
standalone
project configuration
ISSUES CLOSED: #6342

ISSUES CLOSED: #6353

* fix(core): wrapped angular-devkit schematics should pick up standaloneAsDefault

ISSUES CLOSED: #6354
2021-07-15 10:40:15 -04:00
Craigory V Coppola
84b40c8b85
fix(misc): @nrwl/workspace:rm generator should work with standalone configs (#6348)
* fix(devkit): removeProjectConfiguration should remove path for project.json from workspace.json

When using standalone config files, removing a project's config should also remove its entry in the
workspace file.

* fix(misc): @nrwl/workspace:rm should work with standalone config files

When using standalone config files, removing a project's config should also remove its entry in
the
workspace file.
2021-07-15 10:36:48 -04:00
Huynh Ninh Binh
ec1ab55f80
fix(devkit): module of classname should be capitalized when generated with special characters in a directory (#6283)
ISSUES CLOSED: #6281
2021-07-12 10:51:03 -04:00
Craigory V Coppola
23e21d0995
fix(core): project.json split should be remembered if all projects utilize it (#6180) 2021-07-08 23:35:57 +00:00
Craigory V Coppola
651ba3649c
fix(core): project.json files are not being used with wrapAngularDevkitSchematic (#6276)
ISSUES CLOSED: #6271 #6272
2021-07-08 17:18:18 -04:00
Craigory V Coppola
442e4fc6a1
chore(repo): convert to project json format (#6286) 2021-07-08 11:36:35 -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
Colum Ferry
dd51c18d12
feat(angular): init mfe generator (#6209)
Add generator to scaffold Module Federation configuration for a given Angular application
2021-07-02 13:45:36 +01:00
Jason Jean
8ac7519ada feat(core): introduce batch executors 2021-06-28 14:46:53 -04:00