When converting an Angular CLI project to an NX Workspace, the newProjectRoot key needs to be removed
from the angular.json to ensure generators function properly.
Closes#8851
* fix(core): need to read in any base nx.json when building a workspace
* chore(core): remove changes to ngcli-adapter and cleanup nx extension
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
* 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.
* 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
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.
* 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>
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>
* 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.
* feat(core): sort projects in nx.json, workspace.json, and tsconfig.base.json
* fix(core): catch errors when trying to format
* chore(core): use existing sort util - rename new sort util to match (will soon be merged)
* fix(core): only sort workspace.projects if they have projects
* fix(core): remove sort from old format-files
* fix(core): noop catches rather and outputting an error message
* chore(core): revert format-files utils
* cleanup(core): normalized usage of fs-extra and updated fs-extra
* cleanup(misc): use fs over fs-extra when possible
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>