@nrwl/workspace 14.8.8 → 14.9.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/LICENSE +22 -22
- package/README.md +5 -26
- package/executors.json +4 -2
- package/generators.json +7 -52
- package/index.d.ts +4 -10
- package/index.js +4 -42
- package/index.js.map +1 -1
- package/migrations.json +20 -1
- package/package.json +33 -44
- package/presets/core.json +4 -9
- package/presets/npm.json +4 -12
- package/src/executors/counter/schema.json +1 -0
- package/src/executors/run-commands/schema.json +9 -1
- package/src/executors/run-script/schema.json +1 -0
- package/src/generators/ci-workflow/ci-workflow.d.ts +1 -1
- package/src/generators/ci-workflow/ci-workflow.js +13 -0
- package/src/generators/ci-workflow/ci-workflow.js.map +1 -1
- package/src/generators/ci-workflow/files/azure/azure-pipelines.yml__tmpl__ +0 -2
- package/src/generators/ci-workflow/files/bitbucket-pipelines/bitbucket-pipelines.yml__tmpl__ +36 -0
- package/src/generators/ci-workflow/files/circleci/.circleci/config.yml__tmpl__ +1 -4
- package/src/generators/ci-workflow/files/github/.github/workflows/__workflowFileName__.yml__tmpl__ +3 -3
- package/src/generators/ci-workflow/files/gitlab/.gitlab-ci.yml__tmpl__ +47 -0
- package/src/generators/ci-workflow/schema.json +5 -3
- package/src/generators/convert-to-nx-project/convert-to-nx-project.d.ts +1 -2
- package/src/generators/convert-to-nx-project/convert-to-nx-project.js +62 -38
- package/src/generators/convert-to-nx-project/convert-to-nx-project.js.map +1 -1
- package/src/generators/convert-to-nx-project/schema.d.ts +2 -0
- package/src/generators/convert-to-nx-project/schema.json +11 -6
- package/src/generators/library/files/lib/__dot__babelrc__tmpl__ +1 -1
- package/src/generators/library/files/lib/tsconfig.lib.json +2 -2
- package/src/generators/library/library.d.ts +2 -1
- package/src/generators/library/library.js +44 -33
- package/src/generators/library/library.js.map +1 -1
- package/src/generators/library/schema.d.ts +1 -1
- package/src/generators/library/schema.json +9 -4
- package/src/generators/move/lib/create-project-configuration-in-new-destination.d.ts +3 -0
- package/src/generators/move/lib/{move-project-configuration.js → create-project-configuration-in-new-destination.js} +6 -9
- package/src/generators/move/lib/create-project-configuration-in-new-destination.js.map +1 -0
- package/src/generators/move/lib/{move-project.d.ts → move-project-files.d.ts} +1 -1
- package/src/generators/move/lib/{move-project.js → move-project-files.js} +4 -4
- package/src/generators/move/lib/move-project-files.js.map +1 -0
- package/src/generators/move/lib/update-cypress-config.js +8 -2
- package/src/generators/move/lib/update-cypress-config.js.map +1 -1
- package/src/generators/move/lib/update-default-project.js +4 -5
- package/src/generators/move/lib/update-default-project.js.map +1 -1
- package/src/generators/move/lib/update-implicit-dependencies.d.ts +0 -2
- package/src/generators/move/lib/update-implicit-dependencies.js +0 -2
- package/src/generators/move/lib/update-implicit-dependencies.js.map +1 -1
- package/src/generators/move/lib/update-imports.js +28 -18
- package/src/generators/move/lib/update-imports.js.map +1 -1
- package/src/generators/move/move.js +5 -4
- package/src/generators/move/move.js.map +1 -1
- package/src/generators/move/schema.json +2 -1
- package/src/generators/{workspace/files → new/files-integrated-repo}/__dot__gitignore +2 -2
- package/src/generators/{workspace/files → new/files-integrated-repo}/__dot__vscode/extensions.json__tmpl__ +1 -1
- package/src/generators/new/files-integrated-repo/package.json__tmpl__ +14 -0
- package/src/generators/new/files-package-based-repo/__dot__gitignore +39 -0
- package/src/generators/new/files-package-based-repo/__dot__vscode/extensions.json__tmpl__ +8 -0
- package/src/generators/new/files-package-based-repo/package.json__tmpl__ +13 -0
- package/src/generators/new/files-readme/README.md.template +21 -0
- package/src/generators/new/files-root-app/__dot__gitignore +39 -0
- package/src/generators/new/files-root-app/__dot__vscode/extensions.json__tmpl__ +6 -0
- package/src/generators/new/files-root-app/package.json__tmpl__ +14 -0
- package/src/generators/new/generate-preset.d.ts +4 -0
- package/src/generators/new/generate-preset.js +131 -0
- package/src/generators/new/generate-preset.js.map +1 -0
- package/src/generators/new/generate-workspace-files.d.ts +3 -0
- package/src/generators/{workspace/workspace.js → new/generate-workspace-files.js} +81 -72
- package/src/generators/new/generate-workspace-files.js.map +1 -0
- package/src/generators/new/new.d.ts +11 -6
- package/src/generators/new/new.js +41 -212
- package/src/generators/new/new.js.map +1 -1
- package/src/generators/new/schema.json +16 -7
- package/src/generators/npm-package/npm-package.js +3 -6
- package/src/generators/npm-package/npm-package.js.map +1 -1
- package/src/generators/preset/preset.d.ts +1 -2
- package/src/generators/preset/preset.js +57 -255
- package/src/generators/preset/preset.js.map +1 -1
- package/src/generators/preset/schema.d.ts +5 -1
- package/src/generators/preset/schema.json +34 -7
- package/src/generators/remove/lib/check-project-is-safe-to-remove.d.ts +3 -0
- package/src/generators/remove/lib/check-project-is-safe-to-remove.js +26 -0
- package/src/generators/remove/lib/check-project-is-safe-to-remove.js.map +1 -0
- package/src/generators/remove/lib/check-targets.d.ts +1 -1
- package/src/generators/remove/lib/check-targets.js +33 -29
- package/src/generators/remove/lib/check-targets.js.map +1 -1
- package/src/generators/remove/lib/remove-project-references-in-config.d.ts +3 -0
- package/src/generators/remove/lib/remove-project-references-in-config.js +22 -0
- package/src/generators/remove/lib/remove-project-references-in-config.js.map +1 -0
- package/src/generators/remove/lib/update-jest-config.js +10 -5
- package/src/generators/remove/lib/update-jest-config.js.map +1 -1
- package/src/generators/remove/lib/update-tsconfig.d.ts +2 -2
- package/src/generators/remove/lib/update-tsconfig.js +23 -15
- package/src/generators/remove/lib/update-tsconfig.js.map +1 -1
- package/src/generators/remove/remove.js +6 -4
- package/src/generators/remove/remove.js.map +1 -1
- package/src/generators/remove/schema.json +2 -1
- package/src/generators/run-commands/run-commands.js +3 -1
- package/src/generators/run-commands/run-commands.js.map +1 -1
- package/src/generators/run-commands/schema.json +2 -1
- package/src/generators/utils/insert-import.js +10 -5
- package/src/generators/utils/insert-import.js.map +1 -1
- package/src/generators/utils/insert-statement.js +8 -3
- package/src/generators/utils/insert-statement.js.map +1 -1
- package/src/generators/utils/presets.d.ts +6 -5
- package/src/generators/utils/presets.js +5 -4
- package/src/generators/utils/presets.js.map +1 -1
- package/src/generators/workspace-generator/schema.json +3 -2
- package/src/migrations/update-12-5-0/add-target-dependencies.js +2 -2
- package/src/migrations/update-12-5-0/add-target-dependencies.js.map +1 -1
- package/src/migrations/update-13-0-0/config-locations/config-locations.d.ts +1 -1
- package/src/migrations/update-13-0-0/config-locations/config-locations.js +19 -9
- package/src/migrations/update-13-0-0/config-locations/config-locations.js.map +1 -1
- package/src/migrations/update-13-0-0/set-default-base-if-not-set.js +2 -2
- package/src/migrations/update-13-0-0/set-default-base-if-not-set.js.map +1 -1
- package/src/migrations/update-13-10-0/update-tasks-runner.js +4 -3
- package/src/migrations/update-13-10-0/update-tasks-runner.js.map +1 -1
- package/src/migrations/update-13-2-0/set-parallel-default.js +2 -2
- package/src/migrations/update-13-2-0/set-parallel-default.js.map +1 -1
- package/src/migrations/update-13-6-0/remove-old-task-runner-options.js +3 -3
- package/src/migrations/update-13-6-0/remove-old-task-runner-options.js.map +1 -1
- package/src/migrations/update-14-0-0/change-npm-script-executor.js +1 -1
- package/src/migrations/update-14-0-0/change-npm-script-executor.js.map +1 -1
- package/src/migrations/update-14-0-0/change-nx-json-presets.js +3 -3
- package/src/migrations/update-14-0-0/change-nx-json-presets.js.map +1 -1
- package/src/migrations/update-14-2-0/enable-source-analysis.js +14 -13
- package/src/migrations/update-14-2-0/enable-source-analysis.js.map +1 -1
- package/src/migrations/update-14-8-0/change-run-commands-executor.js +1 -1
- package/src/migrations/update-14-8-0/change-run-commands-executor.js.map +1 -1
- package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.d.ts +3 -0
- package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.js +15 -0
- package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.js.map +1 -0
- package/src/utilities/assets.d.ts +2 -2
- package/src/utilities/buildable-libs-utils.d.ts +18 -7
- package/src/utilities/buildable-libs-utils.js +28 -13
- package/src/utilities/buildable-libs-utils.js.map +1 -1
- package/src/utilities/plugins/plugin-capabilities.d.ts +1 -3
- package/src/utilities/plugins/plugin-capabilities.js +2 -75
- package/src/utilities/plugins/plugin-capabilities.js.map +1 -1
- package/src/utilities/run-tasks-in-serial.d.ts +6 -0
- package/src/utilities/run-tasks-in-serial.js +6 -0
- package/src/utilities/run-tasks-in-serial.js.map +1 -1
- package/src/utilities/set-default-collection.js +5 -5
- package/src/utilities/set-default-collection.js.map +1 -1
- package/src/utilities/ts-config.d.ts +5 -0
- package/src/utilities/ts-config.js +40 -0
- package/src/utilities/ts-config.js.map +1 -0
- package/src/utilities/typescript/compilation.d.ts +1 -1
- package/src/utilities/typescript/compilation.js +22 -12
- package/src/utilities/typescript/compilation.js.map +1 -1
- package/src/utilities/typescript/find-nodes.d.ts +5 -2
- package/src/utilities/typescript/find-nodes.js +7 -25
- package/src/utilities/typescript/find-nodes.js.map +1 -1
- package/src/utilities/typescript/get-source-nodes.d.ts +4 -1
- package/src/utilities/typescript/get-source-nodes.js +3 -0
- package/src/utilities/typescript/get-source-nodes.js.map +1 -1
- package/src/utilities/typescript.d.ts +8 -4
- package/src/utilities/typescript.js +21 -38
- package/src/utilities/typescript.js.map +1 -1
- package/src/utilities/version-utils.d.ts +3 -0
- package/src/utilities/version-utils.js +7 -12
- package/src/utilities/version-utils.js.map +1 -1
- package/src/utils/ast-utils.d.ts +0 -123
- package/src/utils/ast-utils.js +5 -546
- package/src/utils/ast-utils.js.map +1 -1
- package/src/utils/cli-config-utils.d.ts +4 -3
- package/src/utils/cli-config-utils.js +4 -45
- package/src/utils/cli-config-utils.js.map +1 -1
- package/src/utils/lint.d.ts +0 -32
- package/src/utils/lint.js +0 -262
- package/src/utils/lint.js.map +1 -1
- package/src/utils/project-type.d.ts +1 -3
- package/src/utils/project-type.js +1 -8
- package/src/utils/project-type.js.map +1 -1
- package/src/utils/rules/add-install-task.d.ts +1 -1
- package/src/utils/rules/add-install-task.js +2 -2
- package/src/utils/rules/add-install-task.js.map +1 -1
- package/src/utils/rules/deleteFile.d.ts +1 -1
- package/src/utils/rules/format-files.js +0 -19
- package/src/utils/rules/format-files.js.map +1 -1
- package/src/utils/rules/workspace.d.ts +1 -1
- package/src/utils/strings.d.ts +12 -0
- package/src/utils/strings.js +12 -0
- package/src/utils/strings.js.map +1 -1
- package/src/utils/testing-utils.d.ts +1 -1
- package/src/utils/testing-utils.js +6 -6
- package/src/utils/testing-utils.js.map +1 -1
- package/src/utils/testing.d.ts +1 -1
- package/src/utils/versions.d.ts +3 -4
- package/src/utils/versions.js +6 -5
- package/src/utils/versions.js.map +1 -1
- package/src/utils/workspace.d.ts +1 -1
- package/src/generators/convert-to-nx-project/utils/get-project-configuration-path.d.ts +0 -2
- package/src/generators/convert-to-nx-project/utils/get-project-configuration-path.js +0 -9
- package/src/generators/convert-to-nx-project/utils/get-project-configuration-path.js.map +0 -1
- package/src/generators/move/lib/move-project-configuration.d.ts +0 -3
- package/src/generators/move/lib/move-project-configuration.js.map +0 -1
- package/src/generators/move/lib/move-project.js.map +0 -1
- package/src/generators/preset/files/pnpm-workspace/pnpm-workspace.yaml +0 -2
- package/src/generators/remove/lib/remove-project-config.d.ts +0 -8
- package/src/generators/remove/lib/remove-project-config.js +0 -32
- package/src/generators/remove/lib/remove-project-config.js.map +0 -1
- package/src/generators/utils/decorate-angular-cli.js__tmpl__ +0 -69
- package/src/generators/workspace/files/README.md__tmpl__ +0 -186
- package/src/generators/workspace/files/__dot__prettierignore +0 -4
- package/src/generators/workspace/files/package.json__tmpl__ +0 -18
- package/src/generators/workspace/schema.d.ts +0 -15
- package/src/generators/workspace/schema.json +0 -77
- package/src/generators/workspace/workspace.d.ts +0 -7
- package/src/generators/workspace/workspace.js.map +0 -1
- package/src/tslint/nxEnforceModuleBoundariesRule.d.ts +0 -14
- package/src/tslint/nxEnforceModuleBoundariesRule.js +0 -177
- package/src/tslint/nxEnforceModuleBoundariesRule.js.map +0 -1
- package/src/utilities/ast-utils.d.ts +0 -22
- package/src/utilities/ast-utils.js +0 -182
- package/src/utilities/ast-utils.js.map +0 -1
- package/src/utilities/create-package-json.d.ts +0 -10
- package/src/utilities/create-package-json.js +0 -87
- package/src/utilities/create-package-json.js.map +0 -1
- package/src/utilities/executor-options-utils.d.ts +0 -13
- package/src/utilities/executor-options-utils.js +0 -36
- package/src/utilities/executor-options-utils.js.map +0 -1
- package/src/utilities/generate-globs.d.ts +0 -6
- package/src/utilities/generate-globs.js +0 -75
- package/src/utilities/generate-globs.js.map +0 -1
- package/src/utilities/prettier.d.ts +0 -6
- package/src/utilities/prettier.js +0 -38
- package/src/utilities/prettier.js.map +0 -1
- package/src/utils/app-root.d.ts +0 -1
- package/src/utils/app-root.js +0 -8
- package/src/utils/app-root.js.map +0 -1
- package/src/utils/graph-utils.d.ts +0 -5
- package/src/utils/graph-utils.js +0 -116
- package/src/utils/graph-utils.js.map +0 -1
- package/src/utils/rules/check-project-exists.d.ts +0 -10
- package/src/utils/rules/check-project-exists.js +0 -24
- package/src/utils/rules/check-project-exists.js.map +0 -1
- package/src/utils/rules/move-npm-packages.d.ts +0 -11
- package/src/utils/rules/move-npm-packages.js +0 -76
- package/src/utils/rules/move-npm-packages.js.map +0 -1
- package/src/utils/rules/rename-npm-packages.d.ts +0 -10
- package/src/utils/rules/rename-npm-packages.js +0 -81
- package/src/utils/rules/rename-npm-packages.js.map +0 -1
- package/src/utils/rules/rename-package-imports.d.ts +0 -10
- package/src/utils/rules/rename-package-imports.js +0 -58
- package/src/utils/rules/rename-package-imports.js.map +0 -1
- package/src/utils/rules/to-js.d.ts +0 -8
- package/src/utils/rules/to-js.js +0 -77
- package/src/utils/rules/to-js.js.map +0 -1
- package/src/utils/rules/update-karma-conf.d.ts +0 -8
- package/src/utils/rules/update-karma-conf.js +0 -36
- package/src/utils/rules/update-karma-conf.js.map +0 -1
- package/src/utils/runtime-lint-utils.d.ts +0 -80
- package/src/utils/runtime-lint-utils.js +0 -307
- package/src/utils/runtime-lint-utils.js.map +0 -1
- package/src/utils/update-packages-in-package-json.d.ts +0 -3
- package/src/utils/update-packages-in-package-json.js +0 -56
- package/src/utils/update-packages-in-package-json.js.map +0 -1
- package/src/utils/update-task.d.ts +0 -2
- package/src/utils/update-task.js +0 -83
- package/src/utils/update-task.js.map +0 -1
- /package/src/generators/{workspace/files → library/files/root}/tsconfig.base.json +0 -0
- /package/src/generators/{workspace/files → new/files-integrated-repo}/__dot__editorconfig +0 -0
- /package/src/generators/{workspace/files → new/files-integrated-repo}/tools/generators/.gitkeep +0 -0
- /package/src/generators/{workspace/files → new/files-integrated-repo}/tools/tsconfig.tools.json +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/workspace
|
package/LICENSE
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
(The MIT License)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2017-
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
-
a copy of this software and associated documentation files (the
|
|
7
|
-
'Software'), to deal in the Software without restriction, including
|
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
-
the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
|
14
|
-
included in all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017-2023 Narwhal Technologies Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -41,40 +41,19 @@ npm init nx-workspace
|
|
|
41
41
|
yarn create nx-workspace
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
? What to create in the new workspace (Use arrow keys)
|
|
48
|
-
❯ apps [an empty workspace with no plugins with a layout that works best for building apps]
|
|
49
|
-
core [an empty workspace with no plugins set up to publish npm packages (similar to yarn workspaces)]
|
|
50
|
-
ts [an empty workspace with the JS/TS plugin preinstalled]
|
|
51
|
-
react [a workspace with a single React application]
|
|
52
|
-
angular [a workspace with a single Angular application]
|
|
53
|
-
next.js [a workspace with a single Next.js application]
|
|
54
|
-
nest [a workspace with a single Nest application]
|
|
55
|
-
express [a workspace with a single Express application]
|
|
56
|
-
web components [a workspace with a single app built using web components]
|
|
57
|
-
react-native [a workspace with a single React Native application]
|
|
58
|
-
react-express [a workspace with a full stack application (React + Express)]
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Select the preset that works best for you
|
|
62
|
-
|
|
63
|
-
### Adding Nx to an Existing Monorepo
|
|
44
|
+
### Adding Nx to an Existing Repository
|
|
64
45
|
|
|
65
46
|
Run:
|
|
66
47
|
|
|
67
48
|
```bash
|
|
68
|
-
npx
|
|
49
|
+
npx nx@latest init
|
|
69
50
|
```
|
|
70
51
|
|
|
71
52
|
## Documentation & Resources
|
|
72
53
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
- [Nx
|
|
76
|
-
- [Tutorial: Adding Nx to an Existing Monorepo](/recipe/adding-to-monorepo)
|
|
77
|
-
- [Official Nx YouTube Channel](https://www.youtube.com/c/Nrwl_io)
|
|
54
|
+
- [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
|
|
55
|
+
- [Intro to Nx](https://nx.dev/getting-started/intro)
|
|
56
|
+
- [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
|
|
78
57
|
- [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
|
|
79
58
|
|
|
80
59
|
<p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
|
package/executors.json
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"run-commands": {
|
|
16
16
|
"implementation": "./src/executors/run-commands/run-commands.impl",
|
|
17
17
|
"schema": "./src/executors/run-commands/schema.json",
|
|
18
|
-
"description": "Run any custom commands with Nx."
|
|
18
|
+
"description": "Run any custom commands with Nx.",
|
|
19
|
+
"x-deprecated": "Use nx:run-commands instead. This will be removed in v16."
|
|
19
20
|
},
|
|
20
21
|
"counter": {
|
|
21
22
|
"implementation": "./src/executors/counter/counter.impl",
|
|
@@ -27,7 +28,8 @@
|
|
|
27
28
|
"run-script": {
|
|
28
29
|
"implementation": "./src/executors/run-script/run-script.impl",
|
|
29
30
|
"schema": "./src/executors/run-script/schema.json",
|
|
30
|
-
"description": "Run an NPM script using Nx."
|
|
31
|
+
"description": "Run an NPM script using Nx.",
|
|
32
|
+
"x-deprecated": "Use nx:run-script instead. This will be removed in v16."
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
}
|
package/generators.json
CHANGED
|
@@ -2,69 +2,38 @@
|
|
|
2
2
|
"name": "nx/workspace",
|
|
3
3
|
"version": "0.1",
|
|
4
4
|
"schematics": {
|
|
5
|
-
"workspace": {
|
|
6
|
-
"factory": "./src/generators/workspace/workspace#workspaceSchematic",
|
|
7
|
-
"schema": "./src/generators/workspace/schema.json",
|
|
8
|
-
"description": "Create an empty workspace.",
|
|
9
|
-
"hidden": true
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
"preset": {
|
|
13
|
-
"factory": "./src/generators/preset/preset#presetSchematic",
|
|
14
|
-
"schema": "./src/generators/preset/schema.json",
|
|
15
|
-
"description": "Create an application in an empty workspace.",
|
|
16
|
-
"hidden": true
|
|
17
|
-
},
|
|
18
|
-
|
|
19
5
|
"move": {
|
|
20
6
|
"factory": "./src/generators/move/move#moveSchematic",
|
|
21
7
|
"schema": "./src/generators/move/schema.json",
|
|
22
8
|
"aliases": ["mv"],
|
|
23
9
|
"description": "Move an application or library to another folder."
|
|
24
10
|
},
|
|
25
|
-
|
|
26
11
|
"remove": {
|
|
27
12
|
"factory": "./src/generators/remove/remove#removeSchematic",
|
|
28
13
|
"schema": "./src/generators/remove/schema.json",
|
|
29
14
|
"aliases": ["rm"],
|
|
30
15
|
"description": "Remove an application or library."
|
|
31
16
|
},
|
|
32
|
-
|
|
33
|
-
"new": {
|
|
34
|
-
"factory": "./src/generators/new/new#newSchematic",
|
|
35
|
-
"schema": "./src/generators/new/schema.json",
|
|
36
|
-
"description": "Create a workspace.",
|
|
37
|
-
"hidden": true
|
|
38
|
-
},
|
|
39
|
-
|
|
40
17
|
"library": {
|
|
41
18
|
"factory": "./src/generators/library/library#librarySchematic",
|
|
42
19
|
"schema": "./src/generators/library/schema.json",
|
|
43
20
|
"aliases": ["lib"],
|
|
44
21
|
"x-type": "library",
|
|
45
|
-
"description": "Create a library."
|
|
22
|
+
"description": "Create a library.",
|
|
23
|
+
"x-deprecated": "Use @nrwl/js:lib instead. This will be removed in Nx v16"
|
|
46
24
|
},
|
|
47
|
-
|
|
48
25
|
"workspace-generator": {
|
|
49
26
|
"factory": "./src/generators/workspace-generator/workspace-generator",
|
|
50
27
|
"schema": "./src/generators/workspace-generator/schema.json",
|
|
51
28
|
"aliases": ["workspace-schematic"],
|
|
52
29
|
"description": "Generates a workspace generator."
|
|
53
30
|
},
|
|
54
|
-
|
|
55
31
|
"run-commands": {
|
|
56
32
|
"factory": "./src/generators/run-commands/run-commands#runCommandsSchematic",
|
|
57
33
|
"schema": "./src/generators/run-commands/schema.json",
|
|
58
34
|
"aliases": ["run-command", "target"],
|
|
59
35
|
"description": "Generates a target to run any command in the terminal."
|
|
60
36
|
},
|
|
61
|
-
|
|
62
|
-
"convert-to-nx-project": {
|
|
63
|
-
"factory": "./src/generators/convert-to-nx-project/convert-to-nx-project#convertToNxProjectSchematic",
|
|
64
|
-
"schema": "./src/generators/convert-to-nx-project/schema.json",
|
|
65
|
-
"description": "Moves a project's configuration outside of `workspace.json`."
|
|
66
|
-
},
|
|
67
|
-
|
|
68
37
|
"npm-package": {
|
|
69
38
|
"factory": "./src/generators/npm-package/npm-package#npmPackageSchematic",
|
|
70
39
|
"schema": "./src/generators/npm-package/schema.json",
|
|
@@ -73,76 +42,62 @@
|
|
|
73
42
|
}
|
|
74
43
|
},
|
|
75
44
|
"generators": {
|
|
76
|
-
"workspace": {
|
|
77
|
-
"factory": "./src/generators/workspace/workspace#workspaceGenerator",
|
|
78
|
-
"schema": "./src/generators/workspace/schema.json",
|
|
79
|
-
"description": "Create an empty workspace.",
|
|
80
|
-
"hidden": true
|
|
81
|
-
},
|
|
82
|
-
|
|
83
45
|
"preset": {
|
|
84
46
|
"factory": "./src/generators/preset/preset#presetGenerator",
|
|
85
47
|
"schema": "./src/generators/preset/schema.json",
|
|
86
48
|
"description": "Create application in an empty workspace.",
|
|
87
49
|
"hidden": true
|
|
88
50
|
},
|
|
89
|
-
|
|
90
51
|
"move": {
|
|
91
52
|
"factory": "./src/generators/move/move#moveGenerator",
|
|
92
53
|
"schema": "./src/generators/move/schema.json",
|
|
93
54
|
"aliases": ["mv"],
|
|
94
55
|
"description": "Move an application or library to another folder."
|
|
95
56
|
},
|
|
96
|
-
|
|
97
57
|
"remove": {
|
|
98
58
|
"factory": "./src/generators/remove/remove#removeGenerator",
|
|
99
59
|
"schema": "./src/generators/remove/schema.json",
|
|
100
60
|
"aliases": ["rm"],
|
|
101
61
|
"description": "Remove an application or library."
|
|
102
62
|
},
|
|
103
|
-
|
|
104
63
|
"new": {
|
|
105
64
|
"factory": "./src/generators/new/new#newGenerator",
|
|
106
65
|
"schema": "./src/generators/new/schema.json",
|
|
107
66
|
"description": "Create a workspace.",
|
|
108
67
|
"hidden": true
|
|
109
68
|
},
|
|
110
|
-
|
|
111
69
|
"library": {
|
|
112
70
|
"factory": "./src/generators/library/library#libraryGenerator",
|
|
113
71
|
"schema": "./src/generators/library/schema.json",
|
|
114
72
|
"aliases": ["lib"],
|
|
115
73
|
"x-type": "library",
|
|
116
|
-
"description": "Create a library."
|
|
74
|
+
"description": "Create a library.",
|
|
75
|
+
"x-deprecated": "Use @nrwl/js:lib instead. This will be removed in Nx v16."
|
|
117
76
|
},
|
|
118
|
-
|
|
119
77
|
"workspace-generator": {
|
|
120
78
|
"factory": "./src/generators/workspace-generator/workspace-generator",
|
|
121
79
|
"schema": "./src/generators/workspace-generator/schema.json",
|
|
122
80
|
"aliases": ["workspace-schematic"],
|
|
123
81
|
"description": "Generates a workspace generator."
|
|
124
82
|
},
|
|
125
|
-
|
|
126
83
|
"run-commands": {
|
|
127
84
|
"factory": "./src/generators/run-commands/run-commands#runCommandsGenerator",
|
|
128
85
|
"schema": "./src/generators/run-commands/schema.json",
|
|
129
86
|
"aliases": ["run-command", "target"],
|
|
130
87
|
"description": "Generates a target to run any command in the terminal."
|
|
131
88
|
},
|
|
132
|
-
|
|
133
|
-
"convert-to-nx-project": {
|
|
89
|
+
"fix-configuration": {
|
|
134
90
|
"factory": "./src/generators/convert-to-nx-project/convert-to-nx-project#convertToNxProjectGenerator",
|
|
135
91
|
"schema": "./src/generators/convert-to-nx-project/schema.json",
|
|
136
|
-
"
|
|
92
|
+
"aliases": ["convert-to-nx-project"],
|
|
93
|
+
"description": "Fixes projects configuration"
|
|
137
94
|
},
|
|
138
|
-
|
|
139
95
|
"npm-package": {
|
|
140
96
|
"factory": "./src/generators/npm-package/npm-package#npmPackageGenerator",
|
|
141
97
|
"schema": "./src/generators/npm-package/schema.json",
|
|
142
98
|
"description": "Create a minimal NPM package.",
|
|
143
99
|
"x-type": "library"
|
|
144
100
|
},
|
|
145
|
-
|
|
146
101
|
"ci-workflow": {
|
|
147
102
|
"factory": "./src/generators/ci-workflow/ci-workflow#ciWorkflowGenerator",
|
|
148
103
|
"schema": "./src/generators/ci-workflow/schema.json",
|
package/index.d.ts
CHANGED
|
@@ -1,27 +1,21 @@
|
|
|
1
|
-
export { readTsConfig } from './src/utilities/
|
|
1
|
+
export { readTsConfig } from './src/utilities/ts-config';
|
|
2
2
|
export { ProjectType, projectRootDir } from './src/utils/project-type';
|
|
3
3
|
export { renameSync, updateJsonFile, copyFile, createDirectory, } from './src/utilities/fileutils';
|
|
4
4
|
export { names } from '@nrwl/devkit';
|
|
5
|
-
export { ExistingPrettierConfig, resolveUserExistingPrettierConfig, } from './src/utilities/prettier';
|
|
6
5
|
export { output } from './src/utilities/output';
|
|
7
6
|
export { readWorkspaceConfig, readPackageJson, } from 'nx/src/project-graph/file-utils';
|
|
8
7
|
export { ProjectGraphCache } from 'nx/src/project-graph/nx-deps-cache';
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
8
|
+
export { findNodes, } from './src/utils/ast-utils';
|
|
9
|
+
export { getWorkspacePath, editTarget, parseTarget, serializeTarget, } from './src/utils/cli-config-utils';
|
|
11
10
|
export { getWorkspace, updateWorkspace, updateBuilderConfig, } from './src/utils/workspace';
|
|
12
|
-
export {
|
|
13
|
-
export { addLintFiles, generateProjectLint, Linter } from './src/utils/lint';
|
|
11
|
+
export { Linter } from './src/utils/lint';
|
|
14
12
|
export { addInstallTask } from './src/utils/rules/add-install-task';
|
|
15
13
|
export { formatFiles } from './src/utils/rules/format-files';
|
|
16
14
|
export { deleteFile } from './src/utils/rules/deleteFile';
|
|
17
15
|
export * from './src/utils/rules/ng-add';
|
|
18
|
-
export { updateKarmaConf } from './src/utils/rules/update-karma-conf';
|
|
19
16
|
export { visitNotIgnoredFiles } from './src/utils/rules/visit-not-ignored-files';
|
|
20
|
-
export { renamePackageImports } from './src/utils/rules/rename-package-imports';
|
|
21
|
-
export { renameNpmPackages } from './src/utils/rules/rename-npm-packages';
|
|
22
17
|
import * as strings from './src/utils/strings';
|
|
23
18
|
export { checkAndCleanWithSemver } from './src/utils/version-utils';
|
|
24
|
-
export { updatePackagesInPackageJson } from './src/utils/update-packages-in-package-json';
|
|
25
19
|
export { libraryGenerator } from './src/generators/library/library';
|
|
26
20
|
export { moveGenerator } from './src/generators/move/move';
|
|
27
21
|
export { removeGenerator } from './src/generators/remove/remove';
|
package/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.stringUtils = exports.convertToNxProjectSchematic = exports.convertToNxProjectGenerator = exports.runCommandsGenerator = exports.removeGenerator = exports.moveGenerator = exports.libraryGenerator = exports.updatePackagesInPackageJson = exports.checkAndCleanWithSemver = exports.renameNpmPackages = exports.renamePackageImports = exports.visitNotIgnoredFiles = void 0;
|
|
3
|
+
exports.stringUtils = exports.convertToNxProjectSchematic = exports.convertToNxProjectGenerator = exports.runCommandsGenerator = exports.removeGenerator = exports.moveGenerator = exports.libraryGenerator = exports.checkAndCleanWithSemver = exports.visitNotIgnoredFiles = exports.deleteFile = exports.formatFiles = exports.addInstallTask = exports.updateBuilderConfig = exports.updateWorkspace = exports.getWorkspace = exports.serializeTarget = exports.parseTarget = exports.editTarget = exports.getWorkspacePath = exports.findNodes = exports.readPackageJson = exports.readWorkspaceConfig = exports.output = exports.names = exports.createDirectory = exports.copyFile = exports.updateJsonFile = exports.renameSync = exports.projectRootDir = exports.ProjectType = exports.readTsConfig = void 0;
|
|
5
4
|
const tslib_1 = require("tslib");
|
|
6
|
-
var
|
|
7
|
-
Object.defineProperty(exports, "readTsConfig", { enumerable: true, get: function () { return
|
|
5
|
+
var ts_config_1 = require("./src/utilities/ts-config");
|
|
6
|
+
Object.defineProperty(exports, "readTsConfig", { enumerable: true, get: function () { return ts_config_1.readTsConfig; } });
|
|
8
7
|
var project_type_1 = require("./src/utils/project-type");
|
|
9
8
|
Object.defineProperty(exports, "ProjectType", { enumerable: true, get: function () { return project_type_1.ProjectType; } });
|
|
10
9
|
Object.defineProperty(exports, "projectRootDir", { enumerable: true, get: function () { return project_type_1.projectRootDir; } });
|
|
@@ -15,40 +14,15 @@ Object.defineProperty(exports, "copyFile", { enumerable: true, get: function ()
|
|
|
15
14
|
Object.defineProperty(exports, "createDirectory", { enumerable: true, get: function () { return fileutils_1.createDirectory; } });
|
|
16
15
|
var devkit_1 = require("@nrwl/devkit");
|
|
17
16
|
Object.defineProperty(exports, "names", { enumerable: true, get: function () { return devkit_1.names; } });
|
|
18
|
-
var prettier_1 = require("./src/utilities/prettier");
|
|
19
|
-
Object.defineProperty(exports, "resolveUserExistingPrettierConfig", { enumerable: true, get: function () { return prettier_1.resolveUserExistingPrettierConfig; } });
|
|
20
17
|
var output_1 = require("./src/utilities/output");
|
|
21
18
|
Object.defineProperty(exports, "output", { enumerable: true, get: function () { return output_1.output; } });
|
|
22
19
|
var file_utils_1 = require("nx/src/project-graph/file-utils");
|
|
23
20
|
Object.defineProperty(exports, "readWorkspaceConfig", { enumerable: true, get: function () { return file_utils_1.readWorkspaceConfig; } });
|
|
24
21
|
Object.defineProperty(exports, "readPackageJson", { enumerable: true, get: function () { return file_utils_1.readPackageJson; } });
|
|
25
22
|
var ast_utils_1 = require("./src/utils/ast-utils");
|
|
26
|
-
Object.defineProperty(exports, "readJsonInTree", { enumerable: true, get: function () { return ast_utils_1.readJsonInTree; } });
|
|
27
|
-
Object.defineProperty(exports, "updateJsonInTree", { enumerable: true, get: function () { return ast_utils_1.updateJsonInTree; } });
|
|
28
|
-
Object.defineProperty(exports, "updateWorkspaceInTree", { enumerable: true, get: function () { return ast_utils_1.updateWorkspaceInTree; } });
|
|
29
|
-
Object.defineProperty(exports, "insert", { enumerable: true, get: function () { return ast_utils_1.insert; } });
|
|
30
|
-
Object.defineProperty(exports, "replaceNodeValue", { enumerable: true, get: function () { return ast_utils_1.replaceNodeValue; } });
|
|
31
|
-
Object.defineProperty(exports, "addDepsToPackageJson", { enumerable: true, get: function () { return ast_utils_1.addDepsToPackageJson; } });
|
|
32
|
-
Object.defineProperty(exports, "addMethod", { enumerable: true, get: function () { return ast_utils_1.addMethod; } });
|
|
33
|
-
Object.defineProperty(exports, "addIncludeToTsConfig", { enumerable: true, get: function () { return ast_utils_1.addIncludeToTsConfig; } });
|
|
34
|
-
Object.defineProperty(exports, "addGlobal", { enumerable: true, get: function () { return ast_utils_1.addGlobal; } });
|
|
35
|
-
Object.defineProperty(exports, "getProjectConfig", { enumerable: true, get: function () { return ast_utils_1.getProjectConfig; } });
|
|
36
|
-
Object.defineProperty(exports, "addParameterToConstructor", { enumerable: true, get: function () { return ast_utils_1.addParameterToConstructor; } });
|
|
37
|
-
Object.defineProperty(exports, "createOrUpdate", { enumerable: true, get: function () { return ast_utils_1.createOrUpdate; } });
|
|
38
23
|
Object.defineProperty(exports, "findNodes", { enumerable: true, get: function () { return ast_utils_1.findNodes; } });
|
|
39
|
-
Object.defineProperty(exports, "updatePackageJsonDependencies", { enumerable: true, get: function () { return ast_utils_1.updatePackageJsonDependencies; } });
|
|
40
|
-
Object.defineProperty(exports, "readWorkspace", { enumerable: true, get: function () { return ast_utils_1.readWorkspace; } });
|
|
41
|
-
Object.defineProperty(exports, "renameSyncInTree", { enumerable: true, get: function () { return ast_utils_1.renameSyncInTree; } });
|
|
42
|
-
Object.defineProperty(exports, "renameDirSyncInTree", { enumerable: true, get: function () { return ast_utils_1.renameDirSyncInTree; } });
|
|
43
|
-
Object.defineProperty(exports, "updateNxJsonInTree", { enumerable: true, get: function () { return ast_utils_1.updateNxJsonInTree; } });
|
|
44
|
-
Object.defineProperty(exports, "readNxJsonInTree", { enumerable: true, get: function () { return ast_utils_1.readNxJsonInTree; } });
|
|
45
|
-
Object.defineProperty(exports, "InsertChange", { enumerable: true, get: function () { return ast_utils_1.InsertChange; } });
|
|
46
|
-
Object.defineProperty(exports, "ReplaceChange", { enumerable: true, get: function () { return ast_utils_1.ReplaceChange; } });
|
|
47
|
-
Object.defineProperty(exports, "RemoveChange", { enumerable: true, get: function () { return ast_utils_1.RemoveChange; } });
|
|
48
24
|
var cli_config_utils_1 = require("./src/utils/cli-config-utils");
|
|
49
|
-
Object.defineProperty(exports, "getNpmScope", { enumerable: true, get: function () { return cli_config_utils_1.getNpmScope; } });
|
|
50
25
|
Object.defineProperty(exports, "getWorkspacePath", { enumerable: true, get: function () { return cli_config_utils_1.getWorkspacePath; } });
|
|
51
|
-
Object.defineProperty(exports, "replaceAppNameWithPath", { enumerable: true, get: function () { return cli_config_utils_1.replaceAppNameWithPath; } });
|
|
52
26
|
Object.defineProperty(exports, "editTarget", { enumerable: true, get: function () { return cli_config_utils_1.editTarget; } });
|
|
53
27
|
Object.defineProperty(exports, "parseTarget", { enumerable: true, get: function () { return cli_config_utils_1.parseTarget; } });
|
|
54
28
|
Object.defineProperty(exports, "serializeTarget", { enumerable: true, get: function () { return cli_config_utils_1.serializeTarget; } });
|
|
@@ -56,11 +30,6 @@ var workspace_1 = require("./src/utils/workspace");
|
|
|
56
30
|
Object.defineProperty(exports, "getWorkspace", { enumerable: true, get: function () { return workspace_1.getWorkspace; } });
|
|
57
31
|
Object.defineProperty(exports, "updateWorkspace", { enumerable: true, get: function () { return workspace_1.updateWorkspace; } });
|
|
58
32
|
Object.defineProperty(exports, "updateBuilderConfig", { enumerable: true, get: function () { return workspace_1.updateBuilderConfig; } });
|
|
59
|
-
var update_task_1 = require("./src/utils/update-task");
|
|
60
|
-
Object.defineProperty(exports, "addUpdateTask", { enumerable: true, get: function () { return update_task_1.addUpdateTask; } });
|
|
61
|
-
var lint_1 = require("./src/utils/lint");
|
|
62
|
-
Object.defineProperty(exports, "addLintFiles", { enumerable: true, get: function () { return lint_1.addLintFiles; } });
|
|
63
|
-
Object.defineProperty(exports, "generateProjectLint", { enumerable: true, get: function () { return lint_1.generateProjectLint; } });
|
|
64
33
|
var add_install_task_1 = require("./src/utils/rules/add-install-task");
|
|
65
34
|
Object.defineProperty(exports, "addInstallTask", { enumerable: true, get: function () { return add_install_task_1.addInstallTask; } });
|
|
66
35
|
var format_files_1 = require("./src/utils/rules/format-files");
|
|
@@ -68,19 +37,12 @@ Object.defineProperty(exports, "formatFiles", { enumerable: true, get: function
|
|
|
68
37
|
var deleteFile_1 = require("./src/utils/rules/deleteFile");
|
|
69
38
|
Object.defineProperty(exports, "deleteFile", { enumerable: true, get: function () { return deleteFile_1.deleteFile; } });
|
|
70
39
|
tslib_1.__exportStar(require("./src/utils/rules/ng-add"), exports);
|
|
71
|
-
var update_karma_conf_1 = require("./src/utils/rules/update-karma-conf");
|
|
72
|
-
Object.defineProperty(exports, "updateKarmaConf", { enumerable: true, get: function () { return update_karma_conf_1.updateKarmaConf; } });
|
|
73
40
|
var visit_not_ignored_files_1 = require("./src/utils/rules/visit-not-ignored-files");
|
|
74
41
|
Object.defineProperty(exports, "visitNotIgnoredFiles", { enumerable: true, get: function () { return visit_not_ignored_files_1.visitNotIgnoredFiles; } });
|
|
75
|
-
var rename_package_imports_1 = require("./src/utils/rules/rename-package-imports");
|
|
76
|
-
Object.defineProperty(exports, "renamePackageImports", { enumerable: true, get: function () { return rename_package_imports_1.renamePackageImports; } });
|
|
77
|
-
var rename_npm_packages_1 = require("./src/utils/rules/rename-npm-packages");
|
|
78
|
-
Object.defineProperty(exports, "renameNpmPackages", { enumerable: true, get: function () { return rename_npm_packages_1.renameNpmPackages; } });
|
|
79
42
|
const strings = require("./src/utils/strings");
|
|
43
|
+
// TODO(v17): Remove this export.
|
|
80
44
|
var version_utils_1 = require("./src/utils/version-utils");
|
|
81
45
|
Object.defineProperty(exports, "checkAndCleanWithSemver", { enumerable: true, get: function () { return version_utils_1.checkAndCleanWithSemver; } });
|
|
82
|
-
var update_packages_in_package_json_1 = require("./src/utils/update-packages-in-package-json");
|
|
83
|
-
Object.defineProperty(exports, "updatePackagesInPackageJson", { enumerable: true, get: function () { return update_packages_in_package_json_1.updatePackagesInPackageJson; } });
|
|
84
46
|
var library_1 = require("./src/generators/library/library");
|
|
85
47
|
Object.defineProperty(exports, "libraryGenerator", { enumerable: true, get: function () { return library_1.libraryGenerator; } });
|
|
86
48
|
var move_1 = require("./src/generators/move/move");
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/workspace/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/workspace/index.ts"],"names":[],"mappings":";;;;AAAA,uDAAyD;AAAhD,yGAAA,YAAY,OAAA;AACrB,yDAAuE;AAA9D,2GAAA,WAAW,OAAA;AAAE,8GAAA,cAAc,OAAA;AACpC,uDAKmC;AAJjC,uGAAA,UAAU,OAAA;AACV,2GAAA,cAAc,OAAA;AACd,qGAAA,QAAQ,OAAA;AACR,4GAAA,eAAe,OAAA;AAGjB,uCAAqC;AAA5B,+FAAA,KAAK,OAAA;AAEd,iDAAgD;AAAvC,gGAAA,MAAM,OAAA;AAEf,8DAGyC;AAFvC,iHAAA,mBAAmB,OAAA;AACnB,6GAAA,eAAe,OAAA;AAGjB,mDAE+B;AAD7B,sGAAA,SAAS,OAAA;AAGX,iEAKsC;AAJpC,oHAAA,gBAAgB,OAAA;AAChB,8GAAA,UAAU,OAAA;AACV,+GAAA,WAAW,OAAA;AACX,mHAAA,eAAe,OAAA;AAGjB,mDAI+B;AAH7B,yGAAA,YAAY,OAAA;AACZ,4GAAA,eAAe,OAAA;AACf,gHAAA,mBAAmB,OAAA;AAIrB,uEAAoE;AAA3D,kHAAA,cAAc,OAAA;AACvB,+DAA6D;AAApD,2GAAA,WAAW,OAAA;AACpB,2DAA0D;AAAjD,wGAAA,UAAU,OAAA;AACnB,mEAAyC;AAEzC,qFAAiF;AAAxE,+HAAA,oBAAoB,OAAA;AAC7B,+CAA+C;AAE/C,iCAAiC;AACjC,2DAAoE;AAA3D,wHAAA,uBAAuB,OAAA;AAEhC,4DAAoE;AAA3D,2GAAA,gBAAgB,OAAA;AACzB,mDAA2D;AAAlD,qGAAA,aAAa,OAAA;AACtB,yDAAiE;AAAxD,yGAAA,eAAe,OAAA;AACxB,2EAAkF;AAAzE,oHAAA,oBAAoB,OAAA;AAC7B,sGAGsE;AAFpE,oIAAA,2BAA2B,OAAA;AAC3B,oIAAA,2BAA2B,OAAA;AAGhB,QAAA,WAAW,GAAG,OAAO,CAAC"}
|
package/migrations.json
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"13-10-0-update-tasks-runner": {
|
|
52
52
|
"version": "13.10.0-beta.0",
|
|
53
|
-
"description": "Update the tasks runner property to import it from the nx package instead of @nrwl/
|
|
53
|
+
"description": "Update the tasks runner property to import it from the nx package instead of @nrwl/workspace",
|
|
54
54
|
"cli": "nx",
|
|
55
55
|
"implementation": "./src/migrations/update-13-10-0/update-tasks-runner"
|
|
56
56
|
},
|
|
@@ -77,6 +77,12 @@
|
|
|
77
77
|
"description": "Migrates from @nrwl/workspace:run-commands to nx:run-commands",
|
|
78
78
|
"cli": "nx",
|
|
79
79
|
"implementation": "./src/migrations/update-14-8-0/change-run-commands-executor"
|
|
80
|
+
},
|
|
81
|
+
"15-7-0-split-configuration-into-project-json-files": {
|
|
82
|
+
"version": "15.7.0-beta.0",
|
|
83
|
+
"description": "Split global configuration files (e.g., workspace.json) into individual project.json files.",
|
|
84
|
+
"cli": "nx",
|
|
85
|
+
"implementation": "./src/migrations/update-15-7-0/split-configuration-into-project-json-files"
|
|
80
86
|
}
|
|
81
87
|
},
|
|
82
88
|
"packageJsonUpdates": {
|
|
@@ -129,12 +135,25 @@
|
|
|
129
135
|
},
|
|
130
136
|
"14.8.0": {
|
|
131
137
|
"version": "14.8.0-beta.0",
|
|
138
|
+
"x-prompt": "Do you want to update to TypeScript v4.8?",
|
|
132
139
|
"packages": {
|
|
133
140
|
"typescript": {
|
|
134
141
|
"version": "~4.8.2",
|
|
135
142
|
"alwaysAddToPackageJson": false
|
|
136
143
|
}
|
|
137
144
|
}
|
|
145
|
+
},
|
|
146
|
+
"15.8.0": {
|
|
147
|
+
"version": "15.8.0-beta.2",
|
|
148
|
+
"x-prompt": "Do you want to update to TypeScript v4.9?",
|
|
149
|
+
"requires": {
|
|
150
|
+
"typescript": ">=4.8.2 <4.9.0"
|
|
151
|
+
},
|
|
152
|
+
"packages": {
|
|
153
|
+
"typescript": {
|
|
154
|
+
"version": "~4.9.5"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
138
157
|
}
|
|
139
158
|
}
|
|
140
159
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/workspace",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.9.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.",
|
|
6
6
|
"repository": {
|
|
@@ -33,71 +33,60 @@
|
|
|
33
33
|
"requirements": {},
|
|
34
34
|
"migrations": "./migrations.json",
|
|
35
35
|
"packageGroup": {
|
|
36
|
-
"@nrwl/
|
|
37
|
-
"@nrwl/
|
|
38
|
-
"@nrwl/
|
|
39
|
-
"@nrwl/
|
|
40
|
-
"@nrwl/
|
|
41
|
-
"@nrwl/
|
|
42
|
-
"@nrwl/
|
|
43
|
-
"@nrwl/
|
|
44
|
-
"@nrwl/
|
|
45
|
-
"@nrwl/
|
|
46
|
-
"@nrwl/
|
|
47
|
-
"@nrwl/
|
|
48
|
-
"@nrwl/nest": "14.
|
|
49
|
-
"@nrwl/next": "14.
|
|
50
|
-
"@nrwl/node": "14.
|
|
36
|
+
"@nrwl/js": "14.9.0-beta.1",
|
|
37
|
+
"@nrwl/jest": "14.9.0-beta.1",
|
|
38
|
+
"@nrwl/linter": "14.9.0-beta.1",
|
|
39
|
+
"@nrwl/angular": "14.9.0-beta.1",
|
|
40
|
+
"@nrwl/cli": "14.9.0-beta.1",
|
|
41
|
+
"@nrwl/cypress": "14.9.0-beta.1",
|
|
42
|
+
"@nrwl/detox": "14.9.0-beta.1",
|
|
43
|
+
"@nrwl/devkit": "14.9.0-beta.1",
|
|
44
|
+
"@nrwl/esbuild": "14.9.0-beta.1",
|
|
45
|
+
"@nrwl/eslint-plugin-nx": "14.9.0-beta.1",
|
|
46
|
+
"@nrwl/expo": "14.9.0-beta.1",
|
|
47
|
+
"@nrwl/express": "14.9.0-beta.1",
|
|
48
|
+
"@nrwl/nest": "14.9.0-beta.1",
|
|
49
|
+
"@nrwl/next": "14.9.0-beta.1",
|
|
50
|
+
"@nrwl/node": "14.9.0-beta.1",
|
|
51
51
|
"@nrwl/nx-cloud": "latest",
|
|
52
|
-
"@nrwl/nx-plugin": "14.
|
|
53
|
-
"@nrwl/react": "14.
|
|
54
|
-
"@nrwl/react
|
|
55
|
-
"@nrwl/rollup": "14.
|
|
56
|
-
"@nrwl/storybook": "14.
|
|
57
|
-
"@nrwl/tao": "14.
|
|
58
|
-
"@nrwl/
|
|
59
|
-
"@nrwl/
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
"peerDependencies": {
|
|
64
|
-
"prettier": "^2.6.2"
|
|
65
|
-
},
|
|
66
|
-
"peerDependenciesMeta": {
|
|
67
|
-
"prettier": {
|
|
68
|
-
"optional": true
|
|
52
|
+
"@nrwl/nx-plugin": "14.9.0-beta.1",
|
|
53
|
+
"@nrwl/react-native": "14.9.0-beta.1",
|
|
54
|
+
"@nrwl/react": "14.9.0-beta.1",
|
|
55
|
+
"@nrwl/rollup": "14.9.0-beta.1",
|
|
56
|
+
"@nrwl/storybook": "14.9.0-beta.1",
|
|
57
|
+
"@nrwl/tao": "14.9.0-beta.1",
|
|
58
|
+
"@nrwl/vite": "14.9.0-beta.1",
|
|
59
|
+
"@nrwl/web": "14.9.0-beta.1",
|
|
60
|
+
"@nrwl/webpack": "14.9.0-beta.1",
|
|
61
|
+
"nx": "14.9.0-beta.1"
|
|
69
62
|
}
|
|
70
63
|
},
|
|
71
64
|
"dependencies": {
|
|
72
|
-
"@nrwl/devkit": "14.
|
|
73
|
-
"@nrwl/
|
|
74
|
-
"@nrwl/linter": "14.8.8",
|
|
65
|
+
"@nrwl/devkit": "14.9.0-beta.1",
|
|
66
|
+
"@nrwl/linter": "14.9.0-beta.1",
|
|
75
67
|
"@parcel/watcher": "2.0.4",
|
|
76
|
-
"chalk": "4.1.0",
|
|
68
|
+
"chalk": "^4.1.0",
|
|
77
69
|
"chokidar": "^3.5.1",
|
|
78
70
|
"cli-cursor": "3.1.0",
|
|
79
71
|
"cli-spinners": "2.6.1",
|
|
80
72
|
"dotenv": "~10.0.0",
|
|
81
|
-
"enquirer": "~2.3.6",
|
|
82
73
|
"figures": "3.2.0",
|
|
83
74
|
"flat": "^5.0.2",
|
|
84
|
-
"fs-extra": "^10.1.0",
|
|
85
75
|
"glob": "7.1.4",
|
|
86
76
|
"ignore": "^5.0.4",
|
|
87
77
|
"minimatch": "3.0.5",
|
|
88
78
|
"npm-run-path": "^4.0.1",
|
|
89
|
-
"nx": "14.
|
|
79
|
+
"nx": "14.9.0-beta.1",
|
|
90
80
|
"open": "^8.4.0",
|
|
91
81
|
"rxjs": "^6.5.4",
|
|
92
|
-
"semver": "7.3.4",
|
|
93
82
|
"tmp": "~0.2.1",
|
|
94
83
|
"tslib": "^2.3.0",
|
|
95
|
-
"yargs": "^17.
|
|
96
|
-
"yargs-parser": "21.
|
|
84
|
+
"yargs": "^17.6.2",
|
|
85
|
+
"yargs-parser": "21.1.1"
|
|
97
86
|
},
|
|
98
87
|
"publishConfig": {
|
|
99
88
|
"access": "public"
|
|
100
89
|
},
|
|
101
90
|
"types": "./index.d.ts",
|
|
102
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "b2a467bcb2bdc124ed52f3755780bca429a43855"
|
|
103
92
|
}
|
package/presets/core.json
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
},
|
|
7
|
-
".eslintrc.json": "*"
|
|
8
|
-
},
|
|
9
|
-
"targetDependencies": {
|
|
10
|
-
"build": ["^build"]
|
|
2
|
+
"targetDefaults": {
|
|
3
|
+
"build": {
|
|
4
|
+
"dependsOn": ["^build"]
|
|
5
|
+
}
|
|
11
6
|
},
|
|
12
7
|
"workspaceLayout": {
|
|
13
8
|
"appsDir": "packages",
|
package/presets/npm.json
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
},
|
|
7
|
-
".eslintrc.json": "*"
|
|
8
|
-
},
|
|
9
|
-
"targetDependencies": {
|
|
10
|
-
"build": ["^build"]
|
|
11
|
-
},
|
|
12
|
-
"workspaceLayout": {
|
|
13
|
-
"libsDir": "packages"
|
|
2
|
+
"targetDefaults": {
|
|
3
|
+
"build": {
|
|
4
|
+
"dependsOn": ["^build"]
|
|
5
|
+
}
|
|
14
6
|
}
|
|
15
7
|
}
|