@rxap/plugin-angular 20.0.1-dev.9 → 20.0.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 +58 -0
- package/package.json +12 -11
- package/src/application.d.ts +6 -0
- package/src/application.js +77 -0
- package/src/application.js.map +1 -0
- package/src/executors/check-ng-package/executor.d.ts +5 -0
- package/src/executors/check-ng-package/executor.js +30 -0
- package/src/executors/check-ng-package/executor.js.map +1 -0
- package/src/executors/check-ng-package/schema.d.ts +3 -1
- package/src/executors/config/executor.d.ts +10 -0
- package/src/executors/config/executor.js +65 -0
- package/src/executors/config/executor.js.map +1 -0
- package/src/executors/config/schema.d.ts +3 -1
- package/src/executors/i18n/executor.d.ts +9 -0
- package/src/executors/i18n/executor.js +158 -0
- package/src/executors/i18n/executor.js.map +1 -0
- package/src/executors/i18n/schema.d.ts +2 -2
- package/src/executors/tailwind/executor.d.ts +5 -0
- package/src/executors/tailwind/executor.js +36 -0
- package/src/executors/tailwind/executor.js.map +1 -0
- package/src/executors/tailwind/schema.d.ts +3 -3
- package/src/generators/convert-to-buildable-library/generator.d.ts +4 -0
- package/src/generators/convert-to-buildable-library/generator.js +88 -0
- package/src/generators/convert-to-buildable-library/generator.js.map +1 -0
- package/src/generators/fix-schematic/generator.d.ts +4 -0
- package/src/generators/fix-schematic/generator.js +72 -0
- package/src/generators/fix-schematic/generator.js.map +1 -0
- package/src/generators/fix-schematic/index.d.ts +2 -0
- package/src/generators/fix-schematic/index.js +7 -0
- package/src/generators/fix-schematic/index.js.map +1 -0
- package/src/generators/fix-schematic/schema.d.ts +1 -0
- package/src/generators/init/coerce-nx-json.d.ts +3 -0
- package/src/generators/init/coerce-nx-json.js +69 -0
- package/src/generators/init/coerce-nx-json.js.map +1 -0
- package/src/generators/init/generator.d.ts +4 -0
- package/src/generators/init/generator.js +19 -0
- package/src/generators/init/generator.js.map +1 -0
- package/src/generators/init/index.d.ts +2 -0
- package/src/generators/init/index.js +7 -0
- package/src/generators/init/index.js.map +1 -0
- package/src/generators/init/init-workspace.d.ts +3 -0
- package/src/generators/init/init-workspace.js +73 -0
- package/src/generators/init/init-workspace.js.map +1 -0
- package/src/generators/init/schema.d.ts +6 -2
- package/src/generators/init-application/assert-main-statements.d.ts +4 -0
- package/src/generators/init-application/assert-main-statements.js +76 -0
- package/src/generators/init-application/assert-main-statements.js.map +1 -0
- package/src/generators/init-application/cleanup.d.ts +3 -0
- package/src/generators/init-application/cleanup.js +108 -0
- package/src/generators/init-application/cleanup.js.map +1 -0
- package/src/generators/init-application/coerce-app-config.d.ts +3 -0
- package/src/generators/init-application/coerce-app-config.js +143 -0
- package/src/generators/init-application/coerce-app-config.js.map +1 -0
- package/src/generators/init-application/coerce-environment-files.d.ts +5 -0
- package/src/generators/init-application/coerce-environment-files.js +75 -0
- package/src/generators/init-application/coerce-environment-files.js.map +1 -0
- package/src/generators/init-application/coerce-localazy-config-file.d.ts +2 -0
- package/src/generators/init-application/coerce-localazy-config-file.js +25 -0
- package/src/generators/init-application/coerce-localazy-config-file.js.map +1 -0
- package/src/generators/init-application/coerce-project.d.ts +4 -0
- package/src/generators/init-application/coerce-project.js +56 -0
- package/src/generators/init-application/coerce-project.js.map +1 -0
- package/src/generators/init-application/generate-authentication.d.ts +3 -0
- package/src/generators/init-application/generate-authentication.js +97 -0
- package/src/generators/init-application/generate-authentication.js.map +1 -0
- package/src/generators/init-application/generate-monolithic.d.ts +3 -0
- package/src/generators/init-application/generate-monolithic.js +45 -0
- package/src/generators/init-application/generate-monolithic.js.map +1 -0
- package/src/generators/init-application/generator.d.ts +4 -0
- package/src/generators/init-application/generator.js +258 -0
- package/src/generators/init-application/generator.js.map +1 -0
- package/src/generators/init-application/index.d.ts +2 -0
- package/src/generators/init-application/index.js +7 -0
- package/src/generators/init-application/index.js.map +1 -0
- package/src/generators/init-application/link-mfe-remote-with-host.d.ts +3 -0
- package/src/generators/init-application/link-mfe-remote-with-host.js +54 -0
- package/src/generators/init-application/link-mfe-remote-with-host.js.map +1 -0
- package/src/generators/init-application/project-i18n-configuration.d.ts +7 -0
- package/src/generators/init-application/project-i18n-configuration.js +3 -0
- package/src/generators/init-application/project-i18n-configuration.js.map +1 -0
- package/src/generators/init-application/schema.d.ts +38 -17
- package/src/generators/init-application/update-git-ignore.d.ts +3 -0
- package/src/generators/init-application/update-git-ignore.js +16 -0
- package/src/generators/init-application/update-git-ignore.js.map +1 -0
- package/src/generators/init-application/update-main-file.d.ts +3 -0
- package/src/generators/init-application/update-main-file.js +106 -0
- package/src/generators/init-application/update-main-file.js.map +1 -0
- package/src/generators/init-application/update-project-targets.d.ts +6 -0
- package/src/generators/init-application/update-project-targets.js +204 -0
- package/src/generators/init-application/update-project-targets.js.map +1 -0
- package/src/generators/init-application/update-tags.d.ts +3 -0
- package/src/generators/init-application/update-tags.js +25 -0
- package/src/generators/init-application/update-tags.js.map +1 -0
- package/src/generators/init-application/update-target-defaults.d.ts +3 -0
- package/src/generators/init-application/update-target-defaults.js +30 -0
- package/src/generators/init-application/update-target-defaults.js.map +1 -0
- package/src/generators/init-application/update-ts-config.d.ts +2 -0
- package/src/generators/init-application/update-ts-config.js +30 -0
- package/src/generators/init-application/update-ts-config.js.map +1 -0
- package/src/generators/init-component/generator.d.ts +5 -0
- package/src/generators/init-component/generator.js +107 -0
- package/src/generators/init-component/generator.js.map +1 -0
- package/src/generators/init-component/index.d.ts +2 -0
- package/src/generators/init-component/index.js +7 -0
- package/src/generators/init-component/index.js.map +1 -0
- package/src/generators/init-component/schema.d.ts +53 -9
- package/src/generators/init-feature/generator.d.ts +4 -0
- package/src/generators/init-feature/generator.js +53 -0
- package/src/generators/init-feature/generator.js.map +1 -0
- package/src/generators/init-feature/index.d.ts +2 -0
- package/src/generators/init-feature/index.js +7 -0
- package/src/generators/init-feature/index.js.map +1 -0
- package/src/generators/init-feature/schema.d.ts +19 -7
- package/src/generators/init-feature-library/generator.d.ts +4 -0
- package/src/generators/init-feature-library/generator.js +51 -0
- package/src/generators/init-feature-library/generator.js.map +1 -0
- package/src/generators/init-feature-library/index.d.ts +2 -0
- package/src/generators/init-feature-library/index.js +7 -0
- package/src/generators/init-feature-library/index.js.map +1 -0
- package/src/generators/init-feature-library/init-project.d.ts +3 -0
- package/src/generators/init-feature-library/init-project.js +41 -0
- package/src/generators/init-feature-library/init-project.js.map +1 -0
- package/src/generators/init-feature-library/init-workspace.d.ts +3 -0
- package/src/generators/init-feature-library/init-workspace.js +12 -0
- package/src/generators/init-feature-library/init-workspace.js.map +1 -0
- package/src/generators/init-feature-library/schema.d.ts +9 -3
- package/src/generators/init-library/check-if-secondary-entrypoint-include-in-the-ts-config.d.ts +2 -0
- package/src/generators/init-library/check-if-secondary-entrypoint-include-in-the-ts-config.js +39 -0
- package/src/generators/init-library/check-if-secondary-entrypoint-include-in-the-ts-config.js.map +1 -0
- package/src/generators/init-library/cleanup.d.ts +2 -0
- package/src/generators/init-library/cleanup.js +13 -0
- package/src/generators/init-library/cleanup.js.map +1 -0
- package/src/generators/init-library/coerce-projects.d.ts +3 -0
- package/src/generators/init-library/coerce-projects.js +92 -0
- package/src/generators/init-library/coerce-projects.js.map +1 -0
- package/src/generators/init-library/coerce-tailwind-theme-scss.d.ts +2 -0
- package/src/generators/init-library/coerce-tailwind-theme-scss.js +19 -0
- package/src/generators/init-library/coerce-tailwind-theme-scss.js.map +1 -0
- package/src/generators/init-library/extend-angular-specific-eslint.d.ts +2 -0
- package/src/generators/init-library/extend-angular-specific-eslint.js +25 -0
- package/src/generators/init-library/extend-angular-specific-eslint.js.map +1 -0
- package/src/generators/init-library/generator.d.ts +4 -0
- package/src/generators/init-library/generator.js +56 -0
- package/src/generators/init-library/generator.js.map +1 -0
- package/src/generators/init-library/has-index-scss.d.ts +2 -0
- package/src/generators/init-library/has-index-scss.js +9 -0
- package/src/generators/init-library/has-index-scss.js.map +1 -0
- package/src/generators/init-library/has-tailwind-config.d.ts +2 -0
- package/src/generators/init-library/has-tailwind-config.js +8 -0
- package/src/generators/init-library/has-tailwind-config.js.map +1 -0
- package/src/generators/init-library/index.d.ts +2 -0
- package/src/generators/init-library/index.js +7 -0
- package/src/generators/init-library/index.js.map +1 -0
- package/src/generators/init-library/init-project.d.ts +3 -0
- package/src/generators/init-library/init-project.js +37 -0
- package/src/generators/init-library/init-project.js.map +1 -0
- package/src/generators/init-library/init-workspace.d.ts +3 -0
- package/src/generators/init-library/init-workspace.js +21 -0
- package/src/generators/init-library/init-workspace.js.map +1 -0
- package/src/generators/init-library/is-ng-packagr-project.d.ts +2 -0
- package/src/generators/init-library/is-ng-packagr-project.js +8 -0
- package/src/generators/init-library/is-ng-packagr-project.js.map +1 -0
- package/src/generators/init-library/ng-package-json.d.ts +8 -0
- package/src/generators/init-library/ng-package-json.js +16 -0
- package/src/generators/init-library/ng-package-json.js.map +1 -0
- package/src/generators/init-library/schema.d.ts +118 -10
- package/src/generators/init-library/set-general-target-defaults.d.ts +2 -0
- package/src/generators/init-library/set-general-target-defaults.js +27 -0
- package/src/generators/init-library/set-general-target-defaults.js.map +1 -0
- package/src/generators/init-library/update-package-json.d.ts +2 -0
- package/src/generators/init-library/update-package-json.js +17 -0
- package/src/generators/init-library/update-package-json.js.map +1 -0
- package/src/generators/init-library/update-project-ng-package-configuration.d.ts +2 -0
- package/src/generators/init-library/update-project-ng-package-configuration.js +37 -0
- package/src/generators/init-library/update-project-ng-package-configuration.js.map +1 -0
- package/src/generators/init-library/update-ts-config.d.ts +2 -0
- package/src/generators/init-library/update-ts-config.js +22 -0
- package/src/generators/init-library/update-ts-config.js.map +1 -0
- package/src/generators/schematic/generator.d.ts +6 -0
- package/src/generators/schematic/generator.js +127 -0
- package/src/generators/schematic/generator.js.map +1 -0
- package/src/generators/schematic/index.d.ts +2 -0
- package/src/generators/schematic/index.js +7 -0
- package/src/generators/schematic/index.js.map +1 -0
- package/src/generators/schematic/schema.d.ts +4 -0
- package/src/i18n.d.ts +6 -0
- package/src/i18n.js +83 -0
- package/src/i18n.js.map +1 -0
- package/src/index.d.ts +3 -0
- package/src/index.js +10 -0
- package/src/index.js.map +1 -0
- package/src/lib/angular-version.d.ts +1 -0
- package/src/lib/angular-version.js +5 -0
- package/src/lib/angular-version.js.map +1 -0
- package/src/lib/coerce-cypress-component-testing.d.ts +2 -0
- package/src/lib/coerce-cypress-component-testing.js +78 -0
- package/src/lib/coerce-cypress-component-testing.js.map +1 -0
- package/src/lib/coerce-test-setup.d.ts +2 -0
- package/src/lib/coerce-test-setup.js +47 -0
- package/src/lib/coerce-test-setup.js.map +1 -0
- package/src/library.d.ts +6 -0
- package/src/library.js +100 -0
- package/src/library.js.map +1 -0
- package/src/migrations/update-19-0-0/add-m2-prefix-to-material-scss-functions.d.ts +2 -0
- package/src/migrations/update-19-0-0/add-m2-prefix-to-material-scss-functions.js +29 -0
- package/src/migrations/update-19-0-0/add-m2-prefix-to-material-scss-functions.js.map +1 -0
- package/src/migrations/update-19-0-0/migration.d.ts +9 -0
- package/src/migrations/update-19-0-0/migration.js +220 -0
- package/src/migrations/update-19-0-0/migration.js.map +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,64 @@
|
|
|
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
|
+
## [20.0.1](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@20.0.1-dev.22...@rxap/plugin-angular@20.0.1) (2025-02-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rxap/plugin-angular
|
|
9
|
+
|
|
10
|
+
## [20.0.1-dev.22](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@20.0.1-dev.21...@rxap/plugin-angular@20.0.1-dev.22) (2025-02-13)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @rxap/plugin-angular
|
|
13
|
+
|
|
14
|
+
## [20.0.1-dev.21](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@20.0.1-dev.20...@rxap/plugin-angular@20.0.1-dev.21) (2025-02-11)
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
- safe access project sourceRoot property ([16ca874](https://gitlab.com/rxap/packages/commit/16ca8747120876ad90e38c0cc012c175741fda0b))
|
|
19
|
+
|
|
20
|
+
## [20.0.1-dev.20](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@20.0.1-dev.19...@rxap/plugin-angular@20.0.1-dev.20) (2025-02-11)
|
|
21
|
+
|
|
22
|
+
**Note:** Version bump only for package @rxap/plugin-angular
|
|
23
|
+
|
|
24
|
+
## [20.0.1-dev.19](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@20.0.1-dev.18...@rxap/plugin-angular@20.0.1-dev.19) (2025-02-10)
|
|
25
|
+
|
|
26
|
+
**Note:** Version bump only for package @rxap/plugin-angular
|
|
27
|
+
|
|
28
|
+
## [20.0.1-dev.18](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@20.0.1-dev.17...@rxap/plugin-angular@20.0.1-dev.18) (2025-02-07)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @rxap/plugin-angular
|
|
31
|
+
|
|
32
|
+
## [20.0.1-dev.17](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@20.0.1-dev.16...@rxap/plugin-angular@20.0.1-dev.17) (2025-01-30)
|
|
33
|
+
|
|
34
|
+
**Note:** Version bump only for package @rxap/plugin-angular
|
|
35
|
+
|
|
36
|
+
## [20.0.1-dev.16](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@20.0.1-dev.15...@rxap/plugin-angular@20.0.1-dev.16) (2025-01-29)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @rxap/plugin-angular
|
|
39
|
+
|
|
40
|
+
## [20.0.1-dev.15](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@20.0.1-dev.14...@rxap/plugin-angular@20.0.1-dev.15) (2025-01-29)
|
|
41
|
+
|
|
42
|
+
**Note:** Version bump only for package @rxap/plugin-angular
|
|
43
|
+
|
|
44
|
+
## [20.0.1-dev.14](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@20.0.1-dev.13...@rxap/plugin-angular@20.0.1-dev.14) (2025-01-29)
|
|
45
|
+
|
|
46
|
+
**Note:** Version bump only for package @rxap/plugin-angular
|
|
47
|
+
|
|
48
|
+
## [20.0.1-dev.13](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@20.0.1-dev.12...@rxap/plugin-angular@20.0.1-dev.13) (2025-01-29)
|
|
49
|
+
|
|
50
|
+
**Note:** Version bump only for package @rxap/plugin-angular
|
|
51
|
+
|
|
52
|
+
## [20.0.1-dev.12](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@20.0.1-dev.11...@rxap/plugin-angular@20.0.1-dev.12) (2025-01-29)
|
|
53
|
+
|
|
54
|
+
**Note:** Version bump only for package @rxap/plugin-angular
|
|
55
|
+
|
|
56
|
+
## [20.0.1-dev.11](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@20.0.1-dev.10...@rxap/plugin-angular@20.0.1-dev.11) (2025-01-29)
|
|
57
|
+
|
|
58
|
+
**Note:** Version bump only for package @rxap/plugin-angular
|
|
59
|
+
|
|
60
|
+
## [20.0.1-dev.10](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@20.0.1-dev.9...@rxap/plugin-angular@20.0.1-dev.10) (2025-01-29)
|
|
61
|
+
|
|
62
|
+
**Note:** Version bump only for package @rxap/plugin-angular
|
|
63
|
+
|
|
6
64
|
## [20.0.1-dev.9](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@20.0.1-dev.8...@rxap/plugin-angular@20.0.1-dev.9) (2025-01-29)
|
|
7
65
|
|
|
8
66
|
**Note:** Version bump only for package @rxap/plugin-angular
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "20.0.1
|
|
2
|
+
"version": "20.0.1",
|
|
3
3
|
"name": "@rxap/plugin-angular",
|
|
4
|
+
"description": "This package provides generators and executors for Angular projects within an Nx workspace. It helps initialize and configure Angular applications and libraries with Rxap-specific defaults and utilities. It also includes executors for tasks like checking ng-package configurations, managing application configurations, and generating i18n files.\n",
|
|
4
5
|
"license": "GPL-3.0-or-later",
|
|
5
6
|
"dependencies": {
|
|
6
|
-
"@nx/angular": "20.4.
|
|
7
|
-
"@nx/devkit": "20.4.
|
|
8
|
-
"@rxap/plugin-application": "^20.0.1
|
|
9
|
-
"@rxap/plugin-library": "^20.1.0
|
|
10
|
-
"@rxap/plugin-utilities": "^20.0.1
|
|
11
|
-
"@rxap/ts-morph": "^1.5.3
|
|
12
|
-
"@rxap/utilities": "^16.4.2
|
|
13
|
-
"@rxap/workspace-ts-morph": "^19.1.9
|
|
14
|
-
"@rxap/workspace-utilities": "^19.6.1
|
|
7
|
+
"@nx/angular": "20.4.2",
|
|
8
|
+
"@nx/devkit": "20.4.2",
|
|
9
|
+
"@rxap/plugin-application": "^20.0.1",
|
|
10
|
+
"@rxap/plugin-library": "^20.1.0",
|
|
11
|
+
"@rxap/plugin-utilities": "^20.0.1",
|
|
12
|
+
"@rxap/ts-morph": "^1.5.3",
|
|
13
|
+
"@rxap/utilities": "^16.4.2",
|
|
14
|
+
"@rxap/workspace-ts-morph": "^19.1.9",
|
|
15
|
+
"@rxap/workspace-utilities": "^19.6.1",
|
|
15
16
|
"colors": "1.4.0",
|
|
16
17
|
"handlebars": "4.7.8",
|
|
17
18
|
"semver": "7.5.3",
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
},
|
|
56
57
|
"schematics": "./generators.json",
|
|
57
58
|
"type": "commonjs",
|
|
58
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "753c877fe1a5c2fcfa737310f6e99fd1371f9b4d",
|
|
59
60
|
"exports": {
|
|
60
61
|
"./package.json": "./package.json",
|
|
61
62
|
".": {
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createNodesV2 = void 0;
|
|
4
|
+
exports.normalizeOptions = normalizeOptions;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const workspace_utilities_1 = require("@rxap/workspace-utilities");
|
|
7
|
+
const globs_1 = require("nx/src/utils/globs");
|
|
8
|
+
const path_1 = require("path");
|
|
9
|
+
require("colors");
|
|
10
|
+
function normalizeOptions(options) {
|
|
11
|
+
return options !== null && options !== void 0 ? options : {};
|
|
12
|
+
}
|
|
13
|
+
exports.createNodesV2 = [
|
|
14
|
+
(0, globs_1.combineGlobPatterns)([
|
|
15
|
+
'**/tsconfig.app.json',
|
|
16
|
+
'**/src/main.ts',
|
|
17
|
+
'**/src/app/app.module.ts',
|
|
18
|
+
'**/src/app/app.component.ts',
|
|
19
|
+
'**/src/index.html',
|
|
20
|
+
]),
|
|
21
|
+
(configFilePaths, options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
22
|
+
const normalizedOptions = normalizeOptions(options);
|
|
23
|
+
const includedConfigFilePaths = yield Promise.all(configFilePaths.map((configFilePath) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
24
|
+
if (yield shouldHaveProjectConfiguration(configFilePath, normalizedOptions, context)) {
|
|
25
|
+
return configFilePath;
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}))).then((configFilePathOrUndefinedList) => configFilePathOrUndefinedList.filter((value) => value !== undefined));
|
|
29
|
+
const results = yield Promise.all(includedConfigFilePaths.map((configFilePath) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
30
|
+
const [projectPath, projectConfiguration] = yield createProjectConfiguration(configFilePath, normalizedOptions, context);
|
|
31
|
+
return [configFilePath, projectPath, projectConfiguration];
|
|
32
|
+
})));
|
|
33
|
+
return results.map(([configFilePath, projectPath, projectConfiguration]) => [
|
|
34
|
+
configFilePath,
|
|
35
|
+
{
|
|
36
|
+
projects: {
|
|
37
|
+
[projectPath]: projectConfiguration,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
]);
|
|
41
|
+
}),
|
|
42
|
+
];
|
|
43
|
+
function shouldHaveProjectConfiguration(configFilePath, options, context) {
|
|
44
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
const projectPath = (0, path_1.dirname)(configFilePath);
|
|
46
|
+
const tree = new workspace_utilities_1.FsTree(context.workspaceRoot);
|
|
47
|
+
if (!(0, workspace_utilities_1.FindProjectByPath)(tree, projectPath)) {
|
|
48
|
+
// console.log(`The folder of the file '${ configFilePath }' is not the root of a project. Skipping`.yellow);
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return true;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function createProjectConfiguration(configFilePath, options, context) {
|
|
55
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
const projectPath = (0, path_1.dirname)(configFilePath);
|
|
57
|
+
const targets = {};
|
|
58
|
+
const tree = new workspace_utilities_1.FsTree(context.workspaceRoot);
|
|
59
|
+
const projectConfiguration = (0, workspace_utilities_1.FindProjectByPath)(tree, projectPath);
|
|
60
|
+
if (!projectConfiguration) {
|
|
61
|
+
throw new Error(`Could not find project in '${projectPath}'`);
|
|
62
|
+
}
|
|
63
|
+
targets['config'] = createConfigTarget();
|
|
64
|
+
return [
|
|
65
|
+
projectPath, {
|
|
66
|
+
targets,
|
|
67
|
+
},
|
|
68
|
+
];
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function createConfigTarget() {
|
|
72
|
+
return {
|
|
73
|
+
executor: '@rxap/plugin-angular:config',
|
|
74
|
+
dependsOn: ['build'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=application.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../../../../packages/plugin/angular/src/application.ts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CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = runExecutor;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const plugin_utilities_1 = require("@rxap/plugin-utilities");
|
|
6
|
+
function runExecutor(options, context) {
|
|
7
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
console.log('Executor ran for CheckNgPackage', options);
|
|
9
|
+
const ngPackage = JSON.parse((0, plugin_utilities_1.readFileFromProjectRoot)(context, 'ng-package.json', true));
|
|
10
|
+
const { dependencies } = JSON.parse((0, plugin_utilities_1.readFileFromProjectRoot)(context, 'package.json', true));
|
|
11
|
+
if (ngPackage.allowedNonPeerDependencies) {
|
|
12
|
+
const wrongPackages = [];
|
|
13
|
+
for (const packageName of ngPackage.allowedNonPeerDependencies) {
|
|
14
|
+
if (!dependencies[packageName]) {
|
|
15
|
+
wrongPackages.push(packageName);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
if (wrongPackages.length) {
|
|
19
|
+
console.log(`\x1b[31mSome packages in the allowed non peer dependencies list are not in the package.json dependencies list:\x1b[0m\n - ${wrongPackages.join('\n - ')}`);
|
|
20
|
+
return {
|
|
21
|
+
success: false,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
success: true,
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=executor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/executors/check-ng-package/executor.ts"],"names":[],"mappings":";;AAIA,8BA4BC;;AA/BD,6DAAiE;AAGjE,SAA8B,WAAW,CACvC,OAAqC,EACrC,OAAwB;;QAExB,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;QAExD,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,0CAAuB,EAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,CAAC,CAAC,CAAC;QACxF,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,0CAAuB,EAAC,OAAO,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC,CAAC;QAE5F,IAAI,SAAS,CAAC,0BAA0B,EAAE,CAAC;YACzC,MAAM,aAAa,GAAa,EAAE,CAAC;YACnC,KAAK,MAAM,WAAW,IAAI,SAAS,CAAC,0BAA0B,EAAE,CAAC;gBAC/D,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,CAAC;oBAC/B,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;gBAClC,CAAC;YACH,CAAC;YACD,IAAI,aAAa,CAAC,MAAM,EAAE,CAAC;gBACzB,OAAO,CAAC,GAAG,CAAC,6HAA8H,aAAa,CAAC,IAAI,CAC1J,OAAO,CAAE,EAAE,CAAC,CAAC;gBACf,OAAO;oBACL,OAAO,EAAE,KAAK;iBACf,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ExecutorContext } from '@nx/devkit';
|
|
2
|
+
import { ConfigExecutorSchema } from './schema';
|
|
3
|
+
import 'colors';
|
|
4
|
+
export default function runExecutor(options: ConfigExecutorSchema, context: ExecutorContext): Promise<{
|
|
5
|
+
success: boolean;
|
|
6
|
+
error: any;
|
|
7
|
+
} | {
|
|
8
|
+
success: boolean;
|
|
9
|
+
error?: undefined;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = runExecutor;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const plugin_utilities_1 = require("@rxap/plugin-utilities");
|
|
6
|
+
const utilities_1 = require("@rxap/utilities");
|
|
7
|
+
const fs_1 = require("fs");
|
|
8
|
+
const path_1 = require("path");
|
|
9
|
+
require("colors");
|
|
10
|
+
function getContent(key) {
|
|
11
|
+
const value = process.env[key];
|
|
12
|
+
if (value) {
|
|
13
|
+
let content;
|
|
14
|
+
if (value.match(/^(\/[^/\s]*)+\/?$/)) {
|
|
15
|
+
content = (0, fs_1.readFileSync)(value).toString('utf-8');
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
content = value;
|
|
19
|
+
}
|
|
20
|
+
try {
|
|
21
|
+
return JSON.parse(content);
|
|
22
|
+
}
|
|
23
|
+
catch (e) {
|
|
24
|
+
throw new Error(`Can not parse config from '${key}': ${content}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function runExecutor(options, context) {
|
|
29
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
console.log('Executor ran for Config', options);
|
|
31
|
+
const outputPath = (0, plugin_utilities_1.GuessOutputPathFromContext)(context);
|
|
32
|
+
let config = {};
|
|
33
|
+
const configPath = (0, path_1.join)(outputPath, 'config.json');
|
|
34
|
+
if ((0, fs_1.existsSync)(configPath)) {
|
|
35
|
+
config = JSON.parse((0, fs_1.readFileSync)(configPath, 'utf-8'));
|
|
36
|
+
}
|
|
37
|
+
for (const key of Object.keys(process.env).filter(key => !!key && key.startsWith('RXAP_CONFIG')).sort((a, b) => a.length - b.length)) {
|
|
38
|
+
try {
|
|
39
|
+
const content = getContent(key);
|
|
40
|
+
const match = key.match(/^RXAP_CONFIG_(.*)/);
|
|
41
|
+
if (match) {
|
|
42
|
+
const key = match[1].toLowerCase().replace(/_/g, '.');
|
|
43
|
+
console.log(`Set config '${key}'`.grey);
|
|
44
|
+
(0, utilities_1.SetToObject)(config, key, content);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
console.log('Merge config'.grey);
|
|
48
|
+
(0, utilities_1.deepMerge)(config, content);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
catch (e) {
|
|
52
|
+
console.error(e.message);
|
|
53
|
+
return {
|
|
54
|
+
success: false,
|
|
55
|
+
error: e.message,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
(0, fs_1.writeFileSync)(configPath, JSON.stringify(config, null, 2));
|
|
60
|
+
return {
|
|
61
|
+
success: true,
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=executor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/executors/config/executor.ts"],"names":[],"mappings":";;AAiCA,8BAwCC;;AAxED,6DAAoE;AACpE,+CAGyB;AACzB,2BAIY;AACZ,+BAA4B;AAE5B,kBAAgB;AAEhB,SAAS,UAAU,CAAC,GAAW;IAC7B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC/B,IAAI,KAAK,EAAE,CAAC;QACV,IAAI,OAAe,CAAC;QACpB,IAAI,KAAK,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,CAAC;YACrC,OAAO,GAAG,IAAA,iBAAY,EAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAClD,CAAC;aAAM,CAAC;YACN,OAAO,GAAG,KAAK,CAAC;QAClB,CAAC;QACD,IAAI,CAAC;YACH,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC7B,CAAC;QAAC,OAAO,CAAM,EAAE,CAAC;YAChB,MAAM,IAAI,KAAK,CAAC,8BAA+B,GAAI,MAAO,OAAQ,EAAE,CAAC,CAAC;QACxE,CAAC;IACH,CAAC;AACH,CAAC;AAGD,SAA8B,WAAW,CACvC,OA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AI,CAAC,CAAC;oBACjC,IAAA,qBAAS,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAC7B,CAAC;YACH,CAAC;YAAC,OAAO,CAAM,EAAE,CAAC;gBAChB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;gBACzB,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,KAAK,EAAE,CAAC,CAAC,OAAO;iBACjB,CAAC;YACJ,CAAC;QACH,CAAC;QAED,IAAA,kBAAa,EAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAE3D,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExecutorContext } from '@nx/devkit';
|
|
2
|
+
import { I18nExecutorSchema } from './schema';
|
|
3
|
+
export default function runExecutor(options: I18nExecutorSchema, context: ExecutorContext): Promise<{
|
|
4
|
+
success: boolean;
|
|
5
|
+
error: any;
|
|
6
|
+
} | {
|
|
7
|
+
success: boolean;
|
|
8
|
+
error?: undefined;
|
|
9
|
+
}>;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = runExecutor;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const plugin_utilities_1 = require("@rxap/plugin-utilities");
|
|
6
|
+
const fs_1 = require("fs");
|
|
7
|
+
const fs_extra_1 = require("fs-extra");
|
|
8
|
+
const glob_1 = require("glob");
|
|
9
|
+
const handlebars_1 = require("handlebars");
|
|
10
|
+
const path_1 = require("path");
|
|
11
|
+
function getIndexHtmlTemplateFilePath(indexHtmlTemplate, context) {
|
|
12
|
+
if ((0, fs_1.existsSync)((0, path_1.join)(context.root, indexHtmlTemplate))) {
|
|
13
|
+
return (0, path_1.join)(context.root, indexHtmlTemplate);
|
|
14
|
+
}
|
|
15
|
+
if ((0, fs_1.existsSync)((0, path_1.join)(context.root, 'shared', indexHtmlTemplate))) {
|
|
16
|
+
return (0, path_1.join)(context.root, 'shared', indexHtmlTemplate);
|
|
17
|
+
}
|
|
18
|
+
if ((0, fs_1.existsSync)((0, path_1.join)(context.root, 'shared', 'angular', indexHtmlTemplate))) {
|
|
19
|
+
return (0, path_1.join)(context.root, 'shared', 'angular', indexHtmlTemplate);
|
|
20
|
+
}
|
|
21
|
+
const projectSourceRoot = (0, plugin_utilities_1.GetProjectSourceRoot)(context);
|
|
22
|
+
if ((0, fs_1.existsSync)((0, path_1.join)(projectSourceRoot, indexHtmlTemplate))) {
|
|
23
|
+
return (0, path_1.join)(projectSourceRoot, indexHtmlTemplate);
|
|
24
|
+
}
|
|
25
|
+
throw new Error(`Could not find the i18n index html template with path '${indexHtmlTemplate}'`);
|
|
26
|
+
}
|
|
27
|
+
function createIndexHtml(options, context, outputPath) {
|
|
28
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
var _a;
|
|
30
|
+
const indexHtmlTemplateFilePath = (_a = options.indexHtmlTemplate) !== null && _a !== void 0 ? _a : 'i18n.index.html.hbs';
|
|
31
|
+
if (!indexHtmlTemplateFilePath) {
|
|
32
|
+
throw new Error('The i18n index html template path is not defined');
|
|
33
|
+
}
|
|
34
|
+
const indexHtmlTemplateAbsoluteFilePath = getIndexHtmlTemplateFilePath(indexHtmlTemplateFilePath, context);
|
|
35
|
+
const indexHtmlTemplateFile = (0, fs_1.readFileSync)(indexHtmlTemplateAbsoluteFilePath).toString('utf-8');
|
|
36
|
+
const indexHtmlTemplate = (0, handlebars_1.compile)(indexHtmlTemplateFile);
|
|
37
|
+
const indexHtml = indexHtmlTemplate(options);
|
|
38
|
+
const indexHtmlFilePath = (0, path_1.join)(context.root, outputPath, 'index.html');
|
|
39
|
+
if ((0, fs_1.existsSync)(indexHtmlFilePath)) {
|
|
40
|
+
console.warn(`The index.html file already exists in the location: '${indexHtmlFilePath}'`);
|
|
41
|
+
}
|
|
42
|
+
(0, fs_1.writeFileSync)(indexHtmlFilePath, indexHtml);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function copyFiles(outputPath, pathList) {
|
|
46
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
yield Promise.all(pathList.map((assetPath) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
if (typeof assetPath === 'string') {
|
|
49
|
+
if (!outputPath) {
|
|
50
|
+
throw new Error('The i18n output path is not defined');
|
|
51
|
+
}
|
|
52
|
+
const assetOutputPath = (0, path_1.join)(outputPath, (0, path_1.basename)(assetPath));
|
|
53
|
+
try {
|
|
54
|
+
yield (0, fs_extra_1.copy)(assetPath, assetOutputPath);
|
|
55
|
+
}
|
|
56
|
+
catch (e) {
|
|
57
|
+
throw new Error(`Could not copy assets '${assetPath}' to '${outputPath}': ${e.message}`);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
if (!outputPath) {
|
|
62
|
+
throw new Error('The i18n output path is not defined');
|
|
63
|
+
}
|
|
64
|
+
const assetOutputPath = (0, path_1.join)(outputPath, assetPath.output);
|
|
65
|
+
try {
|
|
66
|
+
const files = yield (0, glob_1.glob)(assetPath.input + assetPath.glob);
|
|
67
|
+
yield Promise.all(files.map(file => (0, fs_extra_1.copy)(file, (0, path_1.join)(assetOutputPath, (0, path_1.relative)(assetPath.input, file)))));
|
|
68
|
+
}
|
|
69
|
+
catch (e) {
|
|
70
|
+
throw new Error(`Could not copy assets '${JSON.stringify(assetPath)}' to '${outputPath}': ${e.message}`);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
})));
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function copyAssets(outputPath, options, context) {
|
|
77
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
if (Array.isArray(options.assets) && options.assets.length) {
|
|
79
|
+
yield copyFiles(outputPath, options.assets);
|
|
80
|
+
}
|
|
81
|
+
else if (typeof options.assets === 'boolean' && options.assets) {
|
|
82
|
+
if (!context.target) {
|
|
83
|
+
throw new Error('The current builder target is not defined in the context');
|
|
84
|
+
}
|
|
85
|
+
if (!context.projectName) {
|
|
86
|
+
throw new Error('The current project name is not defined in the context');
|
|
87
|
+
}
|
|
88
|
+
const buildOptions = (0, plugin_utilities_1.GetProjectTargetOptions)(context, context.projectName, 'build');
|
|
89
|
+
if (Array.isArray(buildOptions.assets) && buildOptions.assets.length) {
|
|
90
|
+
yield copyFiles(outputPath, buildOptions.assets);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
console.info('Skip assets copy. The build target of this project has no assets specified.');
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
console.info('Skip assets copy. No assets specified.');
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function coerceDefaultLanguage(options) {
|
|
102
|
+
var _a, _b;
|
|
103
|
+
(_a = options.defaultLanguage) !== null && _a !== void 0 ? _a : (options.defaultLanguage = (_b = options.availableLanguages) === null || _b === void 0 ? void 0 : _b[0]);
|
|
104
|
+
}
|
|
105
|
+
function coerceAvailableLanguages(options, context) {
|
|
106
|
+
var _a, _b;
|
|
107
|
+
if (!options.availableLanguages) {
|
|
108
|
+
const buildTarget = (_a = options.buildTarget) !== null && _a !== void 0 ? _a : context.projectName + ':build';
|
|
109
|
+
const targetName = buildTarget.split(':')[1];
|
|
110
|
+
const buildOptions = (0, plugin_utilities_1.GetProjectTargetOptions)(context, context.projectName, targetName, (_b = context.configurationName) !== null && _b !== void 0 ? _b : 'production');
|
|
111
|
+
const localize = buildOptions.localize;
|
|
112
|
+
if (localize && Array.isArray(localize) && localize.length) {
|
|
113
|
+
options.availableLanguages = localize;
|
|
114
|
+
}
|
|
115
|
+
else if (options.defaultLanguage) {
|
|
116
|
+
options.availableLanguages = [options.defaultLanguage];
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function runExecutor(options, context) {
|
|
121
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
var _a;
|
|
123
|
+
console.log('Executor ran for I18n', options);
|
|
124
|
+
coerceAvailableLanguages(options, context);
|
|
125
|
+
if (!((_a = options.availableLanguages) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
126
|
+
throw new Error('The available languages are not defined');
|
|
127
|
+
}
|
|
128
|
+
coerceDefaultLanguage(options);
|
|
129
|
+
if (!options.defaultLanguage) {
|
|
130
|
+
throw new Error('The default language is not defined');
|
|
131
|
+
}
|
|
132
|
+
const outputPath = (0, plugin_utilities_1.GuessOutputPathFromTargetString)(context, options.buildTarget);
|
|
133
|
+
try {
|
|
134
|
+
yield createIndexHtml(options, context, outputPath);
|
|
135
|
+
}
|
|
136
|
+
catch (e) {
|
|
137
|
+
console.error(`Create index html failed: ${e.message}`);
|
|
138
|
+
return {
|
|
139
|
+
success: false,
|
|
140
|
+
error: e.message,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
try {
|
|
144
|
+
yield copyAssets(outputPath, options, context);
|
|
145
|
+
}
|
|
146
|
+
catch (e) {
|
|
147
|
+
console.error(`Copy assets failed: ${e.message}`);
|
|
148
|
+
return {
|
|
149
|
+
success: false,
|
|
150
|
+
error: e.message,
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
success: true,
|
|
155
|
+
};
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
//# sourceMappingURL=executor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/executors/i18n/executor.ts"],"names":[],"mappings":";;AA0JA,8BA2CC;;AApMD,6DAIgC;AAChC,2BAIY;AACZ,uCAAgC;AAChC,+BAA4B;AAC5B,2CAAqC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U,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QACjD,CAAC;QAAC,OAAO,CAAM,EAAE,CAAC;YAChB,OAAO,CAAC,KAAK,CAAC,uBAAwB,CAAC,CAAC,OAAQ,EAAE,CAAC,CAAC;YACpD,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,CAAC,CAAC,OAAO;aACjB,CAAC;QACJ,CAAC;QAED,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface I18nExecutorSchema {
|
|
2
|
+
availableLanguages?: Array<string>;
|
|
2
3
|
defaultLanguage?: string;
|
|
3
|
-
availableLanguages?: string[];
|
|
4
4
|
indexHtmlTemplate?: string;
|
|
5
|
-
assets?: Array<string | { glob: string, input: string, output: string }> | boolean;
|
|
6
5
|
buildTarget?: string;
|
|
6
|
+
assets?: Array<string> | boolean;
|
|
7
7
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = runExecutor;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const plugin_utilities_1 = require("@rxap/plugin-utilities");
|
|
6
|
+
const path_1 = require("path");
|
|
7
|
+
// @ts-expect-error - Tailwindcss does not have types
|
|
8
|
+
const build_1 = require("tailwindcss/lib/cli/build");
|
|
9
|
+
function runExecutor(options, context) {
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
|
+
console.log('Executor ran for Tailwind', options);
|
|
12
|
+
const projectRoot = (0, plugin_utilities_1.GetProjectRoot)(context);
|
|
13
|
+
const args = {};
|
|
14
|
+
if (options.input) {
|
|
15
|
+
args['--input'] = (0, path_1.join)(projectRoot, options.input);
|
|
16
|
+
}
|
|
17
|
+
if (options.output) {
|
|
18
|
+
args['--output'] = (0, path_1.join)(projectRoot, options.output);
|
|
19
|
+
}
|
|
20
|
+
if (options.config) {
|
|
21
|
+
args['--config'] = (0, path_1.join)(projectRoot, options.config);
|
|
22
|
+
}
|
|
23
|
+
if (options.minify) {
|
|
24
|
+
args['--minify'] = true;
|
|
25
|
+
}
|
|
26
|
+
console.log('Running Tailwind with args', JSON.stringify(args, undefined, 2));
|
|
27
|
+
yield (0, build_1.build)(args);
|
|
28
|
+
return { success: true };
|
|
29
|
+
// return run({
|
|
30
|
+
// cwd: projectRoot,
|
|
31
|
+
// command,
|
|
32
|
+
// __unparsed__: [],
|
|
33
|
+
// }, context);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=executor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/executors/tailwind/executor.ts"],"names":[],"mappings":";;AAOA,8BAkCC;;AAxCD,6DAAwD;AACxD,+BAA4B;AAC5B,qDAAqD;AACrD,qDAAkD;AAGlD,SAA8B,WAAW,CAAC,OAA+B,EAAE,OAAwB;;QACjG,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;QAElD,MAAM,WAAW,GAAG,IAAA,iCAAc,EAAC,OAAO,CAAC,CAAC;QAE5C,MAAM,IAAI,GAA8C,EAAE,CAAC;QAE3D,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;YAClB,IAAI,CAAC,SAAS,CAAC,GAAG,IAAA,WAAI,EAAC,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YACnB,IAAI,CAAC,UAAU,CAAC,GAAG,IAAA,WAAI,EAAC,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;QACvD,CAAC;QAED,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YACnB,IAAI,CAAC,UAAU,CAAC,GAAG,IAAA,WAAI,EAAC,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;QACvD,CAAC;QAED,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YACnB,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;QAC1B,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;QAE9E,MAAM,IAAA,aAAK,EAAC,IAAI,CAAC,CAAC;QAElB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QAEzB,eAAe;QACf,sBAAsB;QACtB,aAAa;QACb,sBAAsB;QACtB,eAAe;IACjB,CAAC;CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Tree } from '@nx/devkit';
|
|
2
|
+
import { ConvertToBuildableLibraryGeneratorSchema } from './schema';
|
|
3
|
+
export declare function convertToBuildableLibraryGenerator(tree: Tree, options: ConvertToBuildableLibraryGeneratorSchema): Promise<void>;
|
|
4
|
+
export default convertToBuildableLibraryGenerator;
|