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
c21835d40a
fix(devkit): move files to a directory using normalized paths to handle windows correctly ( #7264 )
2021-10-06 17:42:36 +01: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
AgentEnder
8f9da7c762
fix(core): read v2 workspace format in converted nx generators
...
closes #6452
2021-09-15 11:54:03 -04:00
Jason Jean
12ed2d3437
fix(devkit): normalizing paths when moving files ( #6877 )
2021-08-27 18:08:44 -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
5037f2ca6e
feat(core): add devkit tree method to change the permissions of a file ( #6598 )
2021-08-04 16:49:41 +01: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
Jason Jean
89a4ac29b2
cleanup(devkit): rename all variable names of host to tree ( #6541 )
2021-07-29 15:46:41 -04: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
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
Benjamin Cabanes
09fa02112b
docs(core): correctly format function comments for doc generation ( #6055 )
2021-06-17 18:32:06 +00:00
Phillip Barta
fe97444d78
feat(core): migrate prettier to v2.3.1 ( #5623 )
2021-06-17 16:44:30 +02:00
Phillip Barta
a2c2d94050
feat(core): first step to common JSON behavior and common fileutils ( #5859 )
2021-06-09 12:45:16 +02:00
Colum Ferry
fd27615514
chore(angular): ast utils for angular with nx devkit ( #5927 )
2021-06-09 10:35:09 +01:00
Phillip Barta
6c6e8b36b7
feat(devkit): refactoring for stricter types and better performance
2021-05-27 13:37:29 -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
Juri
0f08149021
fix(devkit): devkitTreeFromAngularDevkitTree exists function should also work on dirs
...
ISSUES CLOSED : #5318
2021-04-14 08:35:22 -04:00
Jason Jean
b5594b7674
fix(devkit): fix reading partial workspace layout ( #5204 )
2021-04-01 17:51:51 -04:00
Tobias M
42b3a145ec
fix(devkit): safely reference engineHost paths ( #5121 )
...
When engineHost paths are undefined then drop back to the tree root path
Closes #5120
2021-03-31 18:38:38 -04:00
Vivek More 🧐
212fb00548
cleanup(misc): use more es6 features
...
- Single char alternation (e.g. a|b|c|d) in a RegExp can be simplified to use a character class ([abcd]) instead.
This usually also provides slightly better matching performance.
- Character escapes that are replaceable with the unescaped character without a change in meaning. Inside the square brackets of a character class, many escapes are unnecessary that would be necessary outside of a character class. For example the regex [\.] is identical to [.]
- If several qualified expressions occur after the qualifier having been checked for nullable, they can be replaced with optional chaining
2021-03-24 20:11:32 -04:00
Jason Jean
6d7b9d5902
Revert "fix(devkit): omit identical file updates from actions preventing unnecessary installs ( #5055 )"
...
This reverts commit 754ccf2983ff3c02728f5253d4e1c075b6db7ae7.
2021-03-23 15:07:38 -04:00
Vivek
d1b09eaabd
cleanup(misc): make code more consistent and fix typos
2021-03-23 13:03:17 -04:00
James Henry
00dec221e2
feat(linter): convert-tslint-to-eslint generators ( #4943 )
...
* feat(linter): convert-tslint-to-eslint generators
* fix(core): remove generators in collection for ng and nest
* fix(core): update tao to support mixed generators and schematics
* fix(core): update tao to support mixed generators and schematics
* fix(core): address some PR feedback
* fix(core): fix snapshots after syncing up with master
* feat(core): store user preference for removeTSLintIfNoMoreTSLintTargets
* fix(linter): unit tests
* feat(core): apply root tslint.json conversion to root .eslintrc.json
2021-03-19 13:41:13 -04:00
Jason Jean
754ccf2983
fix(devkit): omit identical file updates from actions preventing unnecessary installs ( #5055 )
2021-03-18 12:44:27 -04:00
Jason Jean
f206925abf
fix(devkit): properly emit failures when converting nx executor ( #4866 )
2021-02-23 11:38:27 -05:00
Jason Jean
33acb41afb
cleanup(react): cleanup generators for react and next ( #4769 )
2021-02-12 15:29:31 -05:00
Jason Jean
a500088d36
fix(core): do not modify existing files during workspace creation
2021-02-02 14:01:06 -05:00
Jason Jean
6bd0c2deac
feat(react): migrate @nrwl/web:build to devkit ( #4646 )
2021-02-01 17:06:41 +00:00
Jason Jean
1eda4dca18
fix(repo): fix tests ( #4617 )
2021-01-27 12:12:22 -05:00
Jason Jean
0933bcafd8
feat(core): clean up remaining usages of angular devkit ( #4610 )
2021-01-25 17:21:42 -05:00
Victor Savkin
a25e081a84
feat(core): remove angular devkit deps
2021-01-25 12:52:30 -05:00
Jason Jean
aeec4bd4d9
feat(core): migrate move to devkit ( #4558 )
2021-01-19 16:45:44 -05:00
Victor Savkin
c40ce8a539
feat(testing): update cypress use nx devkit
2021-01-18 21:46:17 -05:00
Victor Savkin
1961bc97fb
feat(core): support executors returning async iterators
2021-01-17 09:34:13 -05:00
Jason Jean
7482944eea
feat(testing): move jest builder to devkit
2021-01-14 08:54:38 -05:00
Jason Jean
716bb44254
feat(core): migrate library to devkit ( #4512 )
...
* migrate lint
* feat(core): migrate library to devkit
2021-01-13 16:57:19 -05:00
Jason Jean
687786fcba
feat(core): migrate run-commands to devkit
2021-01-13 08:52:34 -05:00
Jason Jean
4bc9bbda22
feat(testing): move jest to nrwl devkit ( #4454 )
2021-01-08 15:07:27 -05:00
Victor Savkin
0c0a29da71
feat(core): better compat layer for angular devkit
2021-01-04 21:37:55 -05:00
Jason Jean
6992311ff6
fix(core): fix offset from root for windows
2020-12-07 20:03:50 -05:00
victor savkin
a24fb961d8
feat(core): format workspace.json based on version field
2020-12-03 20:20:04 -05:00
victor savkin
234ca36385
cleanup(misc): clean up devkit
2020-11-26 10:19:13 -05:00
Jonathan Cammisuli
15213119b7
feat(nx-plugin): use @nrwl/devkit
2020-11-25 14:34:03 -05:00