@rxap/plugin-angular 20.0.1-dev.7 → 20.0.1-dev.8
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 +4 -0
- package/package.json +4 -4
- package/src/application.d.ts +0 -6
- package/src/application.js +0 -77
- package/src/application.js.map +0 -1
- package/src/executors/check-ng-package/executor.d.ts +0 -5
- package/src/executors/check-ng-package/executor.js +0 -30
- package/src/executors/check-ng-package/executor.js.map +0 -1
- package/src/executors/config/executor.d.ts +0 -10
- package/src/executors/config/executor.js +0 -65
- package/src/executors/config/executor.js.map +0 -1
- package/src/executors/i18n/executor.d.ts +0 -9
- package/src/executors/i18n/executor.js +0 -158
- package/src/executors/i18n/executor.js.map +0 -1
- package/src/executors/tailwind/executor.d.ts +0 -5
- package/src/executors/tailwind/executor.js +0 -31
- package/src/executors/tailwind/executor.js.map +0 -1
- package/src/generators/convert-to-buildable-library/generator.d.ts +0 -4
- package/src/generators/convert-to-buildable-library/generator.js +0 -88
- package/src/generators/convert-to-buildable-library/generator.js.map +0 -1
- package/src/generators/fix-schematic/generator.d.ts +0 -4
- package/src/generators/fix-schematic/generator.js +0 -72
- package/src/generators/fix-schematic/generator.js.map +0 -1
- package/src/generators/fix-schematic/index.d.ts +0 -2
- package/src/generators/fix-schematic/index.js +0 -7
- package/src/generators/fix-schematic/index.js.map +0 -1
- package/src/generators/init/coerce-nx-json.d.ts +0 -3
- package/src/generators/init/coerce-nx-json.js +0 -69
- package/src/generators/init/coerce-nx-json.js.map +0 -1
- package/src/generators/init/generator.d.ts +0 -4
- package/src/generators/init/generator.js +0 -19
- package/src/generators/init/generator.js.map +0 -1
- package/src/generators/init/index.d.ts +0 -2
- package/src/generators/init/index.js +0 -7
- package/src/generators/init/index.js.map +0 -1
- package/src/generators/init/init-workspace.d.ts +0 -3
- package/src/generators/init/init-workspace.js +0 -73
- package/src/generators/init/init-workspace.js.map +0 -1
- package/src/generators/init-application/assert-main-statements.d.ts +0 -4
- package/src/generators/init-application/assert-main-statements.js +0 -76
- package/src/generators/init-application/assert-main-statements.js.map +0 -1
- package/src/generators/init-application/cleanup.d.ts +0 -3
- package/src/generators/init-application/cleanup.js +0 -108
- package/src/generators/init-application/cleanup.js.map +0 -1
- package/src/generators/init-application/coerce-app-config.d.ts +0 -3
- package/src/generators/init-application/coerce-app-config.js +0 -143
- package/src/generators/init-application/coerce-app-config.js.map +0 -1
- package/src/generators/init-application/coerce-environment-files.d.ts +0 -5
- package/src/generators/init-application/coerce-environment-files.js +0 -75
- package/src/generators/init-application/coerce-environment-files.js.map +0 -1
- package/src/generators/init-application/coerce-localazy-config-file.d.ts +0 -2
- package/src/generators/init-application/coerce-localazy-config-file.js +0 -25
- package/src/generators/init-application/coerce-localazy-config-file.js.map +0 -1
- package/src/generators/init-application/coerce-project.d.ts +0 -4
- package/src/generators/init-application/coerce-project.js +0 -56
- package/src/generators/init-application/coerce-project.js.map +0 -1
- package/src/generators/init-application/generate-authentication.d.ts +0 -3
- package/src/generators/init-application/generate-authentication.js +0 -97
- package/src/generators/init-application/generate-authentication.js.map +0 -1
- package/src/generators/init-application/generate-monolithic.d.ts +0 -3
- package/src/generators/init-application/generate-monolithic.js +0 -45
- package/src/generators/init-application/generate-monolithic.js.map +0 -1
- package/src/generators/init-application/generator.d.ts +0 -4
- package/src/generators/init-application/generator.js +0 -257
- package/src/generators/init-application/generator.js.map +0 -1
- package/src/generators/init-application/index.d.ts +0 -2
- package/src/generators/init-application/index.js +0 -7
- package/src/generators/init-application/index.js.map +0 -1
- package/src/generators/init-application/link-mfe-remote-with-host.d.ts +0 -3
- package/src/generators/init-application/link-mfe-remote-with-host.js +0 -54
- package/src/generators/init-application/link-mfe-remote-with-host.js.map +0 -1
- package/src/generators/init-application/project-i18n-configuration.d.ts +0 -7
- package/src/generators/init-application/project-i18n-configuration.js +0 -3
- package/src/generators/init-application/project-i18n-configuration.js.map +0 -1
- package/src/generators/init-application/update-git-ignore.d.ts +0 -3
- package/src/generators/init-application/update-git-ignore.js +0 -17
- package/src/generators/init-application/update-git-ignore.js.map +0 -1
- package/src/generators/init-application/update-main-file.d.ts +0 -3
- package/src/generators/init-application/update-main-file.js +0 -106
- package/src/generators/init-application/update-main-file.js.map +0 -1
- package/src/generators/init-application/update-project-targets.d.ts +0 -6
- package/src/generators/init-application/update-project-targets.js +0 -210
- package/src/generators/init-application/update-project-targets.js.map +0 -1
- package/src/generators/init-application/update-tags.d.ts +0 -3
- package/src/generators/init-application/update-tags.js +0 -25
- package/src/generators/init-application/update-tags.js.map +0 -1
- package/src/generators/init-application/update-target-defaults.d.ts +0 -3
- package/src/generators/init-application/update-target-defaults.js +0 -30
- package/src/generators/init-application/update-target-defaults.js.map +0 -1
- package/src/generators/init-application/update-ts-config.d.ts +0 -2
- package/src/generators/init-application/update-ts-config.js +0 -30
- package/src/generators/init-application/update-ts-config.js.map +0 -1
- package/src/generators/init-component/generator.d.ts +0 -5
- package/src/generators/init-component/generator.js +0 -106
- package/src/generators/init-component/generator.js.map +0 -1
- package/src/generators/init-component/index.d.ts +0 -2
- package/src/generators/init-component/index.js +0 -7
- package/src/generators/init-component/index.js.map +0 -1
- package/src/generators/init-feature/generator.d.ts +0 -4
- package/src/generators/init-feature/generator.js +0 -53
- package/src/generators/init-feature/generator.js.map +0 -1
- package/src/generators/init-feature/index.d.ts +0 -2
- package/src/generators/init-feature/index.js +0 -7
- package/src/generators/init-feature/index.js.map +0 -1
- package/src/generators/init-feature-library/generator.d.ts +0 -4
- package/src/generators/init-feature-library/generator.js +0 -51
- package/src/generators/init-feature-library/generator.js.map +0 -1
- package/src/generators/init-feature-library/index.d.ts +0 -2
- package/src/generators/init-feature-library/index.js +0 -7
- package/src/generators/init-feature-library/index.js.map +0 -1
- package/src/generators/init-feature-library/init-project.d.ts +0 -3
- package/src/generators/init-feature-library/init-project.js +0 -41
- package/src/generators/init-feature-library/init-project.js.map +0 -1
- package/src/generators/init-feature-library/init-workspace.d.ts +0 -3
- package/src/generators/init-feature-library/init-workspace.js +0 -12
- package/src/generators/init-feature-library/init-workspace.js.map +0 -1
- package/src/generators/init-library/check-if-secondary-entrypoint-include-in-the-ts-config.d.ts +0 -2
- package/src/generators/init-library/check-if-secondary-entrypoint-include-in-the-ts-config.js +0 -39
- package/src/generators/init-library/check-if-secondary-entrypoint-include-in-the-ts-config.js.map +0 -1
- package/src/generators/init-library/cleanup.d.ts +0 -2
- package/src/generators/init-library/cleanup.js +0 -16
- package/src/generators/init-library/cleanup.js.map +0 -1
- package/src/generators/init-library/coerce-projects.d.ts +0 -3
- package/src/generators/init-library/coerce-projects.js +0 -92
- package/src/generators/init-library/coerce-projects.js.map +0 -1
- package/src/generators/init-library/coerce-tailwind-theme-scss.d.ts +0 -2
- package/src/generators/init-library/coerce-tailwind-theme-scss.js +0 -22
- package/src/generators/init-library/coerce-tailwind-theme-scss.js.map +0 -1
- package/src/generators/init-library/extend-angular-specific-eslint.d.ts +0 -2
- package/src/generators/init-library/extend-angular-specific-eslint.js +0 -25
- package/src/generators/init-library/extend-angular-specific-eslint.js.map +0 -1
- package/src/generators/init-library/generator.d.ts +0 -4
- package/src/generators/init-library/generator.js +0 -56
- package/src/generators/init-library/generator.js.map +0 -1
- package/src/generators/init-library/has-index-scss.d.ts +0 -2
- package/src/generators/init-library/has-index-scss.js +0 -11
- package/src/generators/init-library/has-index-scss.js.map +0 -1
- package/src/generators/init-library/has-tailwind-config.d.ts +0 -2
- package/src/generators/init-library/has-tailwind-config.js +0 -8
- package/src/generators/init-library/has-tailwind-config.js.map +0 -1
- package/src/generators/init-library/index.d.ts +0 -2
- package/src/generators/init-library/index.js +0 -7
- package/src/generators/init-library/index.js.map +0 -1
- package/src/generators/init-library/init-project.d.ts +0 -3
- package/src/generators/init-library/init-project.js +0 -37
- package/src/generators/init-library/init-project.js.map +0 -1
- package/src/generators/init-library/init-workspace.d.ts +0 -3
- package/src/generators/init-library/init-workspace.js +0 -21
- package/src/generators/init-library/init-workspace.js.map +0 -1
- package/src/generators/init-library/is-ng-packagr-project.d.ts +0 -2
- package/src/generators/init-library/is-ng-packagr-project.js +0 -8
- package/src/generators/init-library/is-ng-packagr-project.js.map +0 -1
- package/src/generators/init-library/ng-package-json.d.ts +0 -8
- package/src/generators/init-library/ng-package-json.js +0 -16
- package/src/generators/init-library/ng-package-json.js.map +0 -1
- package/src/generators/init-library/set-general-target-defaults.d.ts +0 -2
- package/src/generators/init-library/set-general-target-defaults.js +0 -27
- package/src/generators/init-library/set-general-target-defaults.js.map +0 -1
- package/src/generators/init-library/update-package-json.d.ts +0 -2
- package/src/generators/init-library/update-package-json.js +0 -17
- package/src/generators/init-library/update-package-json.js.map +0 -1
- package/src/generators/init-library/update-project-ng-package-configuration.d.ts +0 -2
- package/src/generators/init-library/update-project-ng-package-configuration.js +0 -37
- package/src/generators/init-library/update-project-ng-package-configuration.js.map +0 -1
- package/src/generators/init-library/update-ts-config.d.ts +0 -2
- package/src/generators/init-library/update-ts-config.js +0 -22
- package/src/generators/init-library/update-ts-config.js.map +0 -1
- package/src/generators/schematic/generator.d.ts +0 -6
- package/src/generators/schematic/generator.js +0 -127
- package/src/generators/schematic/generator.js.map +0 -1
- package/src/generators/schematic/index.d.ts +0 -2
- package/src/generators/schematic/index.js +0 -7
- package/src/generators/schematic/index.js.map +0 -1
- package/src/i18n.d.ts +0 -6
- package/src/i18n.js +0 -83
- package/src/i18n.js.map +0 -1
- package/src/index.d.ts +0 -3
- package/src/index.js +0 -10
- package/src/index.js.map +0 -1
- package/src/lib/angular-version.d.ts +0 -1
- package/src/lib/angular-version.js +0 -5
- package/src/lib/angular-version.js.map +0 -1
- package/src/lib/coerce-cypress-component-testing.d.ts +0 -2
- package/src/lib/coerce-cypress-component-testing.js +0 -78
- package/src/lib/coerce-cypress-component-testing.js.map +0 -1
- package/src/lib/coerce-test-setup.d.ts +0 -2
- package/src/lib/coerce-test-setup.js +0 -47
- package/src/lib/coerce-test-setup.js.map +0 -1
- package/src/library.d.ts +0 -6
- package/src/library.js +0 -100
- package/src/library.js.map +0 -1
- package/src/migrations/update-19-0-0/add-m2-prefix-to-material-scss-functions.d.ts +0 -2
- package/src/migrations/update-19-0-0/add-m2-prefix-to-material-scss-functions.js +0 -29
- package/src/migrations/update-19-0-0/add-m2-prefix-to-material-scss-functions.js.map +0 -1
- package/src/migrations/update-19-0-0/migration.d.ts +0 -9
- package/src/migrations/update-19-0-0/migration.js +0 -220
- package/src/migrations/update-19-0-0/migration.js.map +0 -1
package/src/library.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
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 fs_1 = require("fs");
|
|
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
|
-
'**/ng-package.json',
|
|
15
|
-
(configFilePaths, options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
16
|
-
const normalizedOptions = normalizeOptions(options);
|
|
17
|
-
const includedConfigFilePaths = yield Promise.all(configFilePaths.map((configFilePath) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
-
if (yield shouldHaveProjectConfiguration(configFilePath, normalizedOptions, context)) {
|
|
19
|
-
return configFilePath;
|
|
20
|
-
}
|
|
21
|
-
return undefined;
|
|
22
|
-
}))).then((configFilePathOrUndefinedList) => configFilePathOrUndefinedList.filter((value) => value !== undefined));
|
|
23
|
-
const results = yield Promise.all(includedConfigFilePaths.map((configFilePath) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
24
|
-
const [projectPath, projectConfiguration] = yield createProjectConfiguration(configFilePath, normalizedOptions, context);
|
|
25
|
-
return [configFilePath, projectPath, projectConfiguration];
|
|
26
|
-
})));
|
|
27
|
-
return results.map(([configFilePath, projectPath, projectConfiguration]) => [
|
|
28
|
-
configFilePath,
|
|
29
|
-
{
|
|
30
|
-
projects: {
|
|
31
|
-
[projectPath]: projectConfiguration,
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
]);
|
|
35
|
-
}),
|
|
36
|
-
];
|
|
37
|
-
function shouldHaveProjectConfiguration(configFilePath, options, context) {
|
|
38
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
const projectPath = (0, path_1.dirname)(configFilePath);
|
|
40
|
-
const tree = new workspace_utilities_1.FsTree(context.workspaceRoot);
|
|
41
|
-
if (!(0, workspace_utilities_1.FindProjectByPath)(tree, projectPath)) {
|
|
42
|
-
// console.log(`The folder of the file '${ configFilePath }' is not the root of a project. Skipping`.yellow);
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
45
|
-
return true;
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function createProjectConfiguration(configFilePath, options, context) {
|
|
49
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
const projectPath = (0, path_1.dirname)(configFilePath);
|
|
51
|
-
const targets = {};
|
|
52
|
-
const tree = new workspace_utilities_1.FsTree(context.workspaceRoot);
|
|
53
|
-
const projectConfiguration = (0, workspace_utilities_1.FindProjectByPath)(tree, projectPath);
|
|
54
|
-
if (!projectConfiguration) {
|
|
55
|
-
throw new Error(`Could not find project in '${projectPath}'`);
|
|
56
|
-
}
|
|
57
|
-
targets['check-ng-package'] = createCheckNgPackageTarget();
|
|
58
|
-
if ((0, fs_1.existsSync)((0, path_1.join)(projectPath, 'tailwind.config.js'))) {
|
|
59
|
-
targets['build-tailwind'] = createBuildTailwindTarget((0, workspace_utilities_1.IsRxapRepository)(context.workspaceRoot));
|
|
60
|
-
}
|
|
61
|
-
return [
|
|
62
|
-
projectPath, {
|
|
63
|
-
targets,
|
|
64
|
-
},
|
|
65
|
-
];
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function createBuildTailwindTarget(isRxapRepository) {
|
|
69
|
-
const dependsOn = [];
|
|
70
|
-
if (isRxapRepository) {
|
|
71
|
-
dependsOn.push({
|
|
72
|
-
target: 'build',
|
|
73
|
-
projects: ['browser-tailwind'],
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
return {
|
|
77
|
-
executor: '@rxap/plugin-angular:tailwind',
|
|
78
|
-
configurations: {
|
|
79
|
-
production: {
|
|
80
|
-
minify: true,
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
dependsOn,
|
|
84
|
-
inputs: [
|
|
85
|
-
'{projectRoot}/**/*.html',
|
|
86
|
-
'{projectRoot}/**/*.scss',
|
|
87
|
-
'{projectRoot}/**/*.css',
|
|
88
|
-
],
|
|
89
|
-
outputs: ['{projectRoot}/theme.css'],
|
|
90
|
-
cache: true,
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
function createCheckNgPackageTarget() {
|
|
94
|
-
return {
|
|
95
|
-
executor: '@rxap/plugin-angular:check-ng-package',
|
|
96
|
-
inputs: ['{projectRoot}/ng-package.json', '{projectRoot}/package.json'],
|
|
97
|
-
cache: true,
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=library.js.map
|
package/src/library.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"library.js","sourceRoot":"","sources":["../../../../../packages/plugin/angular/src/library.ts"],"names":[],"mappings":";;;AAsBA,4CAIC;;AApBD,mEAImC;AACnC,2BAAgC;AAEhC,+BAGc;AACd,kBAAgB;AAKhB,SAAgB,gBAAgB,CAC9B,OAAkC;IAElC,OAAO,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;AACvB,CAAC;AAEY,QAAA,aAAa,GAAiC;IACzD,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AAO;QACL,QAAQ,EAAE,+BAA+B;QACzC,cAAc,EAAE;YACd,UAAU,EAAE;gBACV,MAAM,EAAE,IAAI;aACb;SACF;QACD,SAAS;QACT,MAAM,EAAE;YACN,yBAAyB;YACzB,yBAAyB;YACzB,wBAAwB;SACzB;QACD,OAAO,EAAE,CAAE,yBAAyB,CAAE;QACtC,KAAK,EAAE,IAAI;KACZ,CAAC;AACJ,CAAC;AAED,SAAS,0BAA0B;IACjC,OAAO;QACL,QAAQ,EAAE,uCAAuC;QACjD,MAAM,EAAE,CAAE,+BAA+B,EAAE,4BAA4B,CAAE;QACzE,KAAK,EAAE,IAAI;KACZ,CAAC;AACJ,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = default_1;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const workspace_utilities_1 = require("@rxap/workspace-utilities");
|
|
6
|
-
const migration_1 = require("./migration");
|
|
7
|
-
function default_1(tree) {
|
|
8
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9
|
-
const potentialThemes = [];
|
|
10
|
-
for (const { path, isFile } of (0, workspace_utilities_1.VisitTree)(tree, '/')) {
|
|
11
|
-
if (isFile && path.endsWith('.scss')) {
|
|
12
|
-
const content = tree.read(path).toString('utf-8');
|
|
13
|
-
if (content.includes('@angular/material')) {
|
|
14
|
-
potentialThemes.push({
|
|
15
|
-
path,
|
|
16
|
-
content,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
for (const theme of potentialThemes) {
|
|
22
|
-
const migrated = (0, migration_1.migrateM2ThemingApiUsages)(theme.content);
|
|
23
|
-
if (migrated !== theme.content) {
|
|
24
|
-
tree.write(theme.path, migrated);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=add-m2-prefix-to-material-scss-functions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-m2-prefix-to-material-scss-functions.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/migrations/update-19-0-0/add-m2-prefix-to-material-scss-functions.ts"],"names":[],"mappings":";;AAIA,4BA2BC;;AA9BD,mEAAsD;AACtD,2CAAwD;AAExD,mBAA+B,IAAU;;QAEvC,MAAM,eAAe,GAA6C,EAAE,CAAC;QAErE,KAAK,MAAM,EACT,IAAI,EACJ,MAAM,EACP,IAAI,IAAA,+BAAS,EAAC,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC;YAC1B,IAAI,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;gBACrC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;gBACnD,IAAI,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC;oBAC1C,eAAe,CAAC,IAAI,CAAC;wBACnB,IAAI;wBACJ,OAAO;qBACR,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;QAED,KAAK,MAAM,KAAK,IAAI,eAAe,EAAE,CAAC;YACpC,MAAM,QAAQ,GAAG,IAAA,qCAAyB,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAE1D,IAAI,QAAQ,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;gBAC/B,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;YACnC,CAAC;QACH,CAAC;IAEH,CAAC;CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
/** Replaces all usages of renamed M2 theming APIs in a file. */
|
|
9
|
-
export declare function migrateM2ThemingApiUsages(fileContent: string): string;
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.io/license
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.migrateM2ThemingApiUsages = migrateM2ThemingApiUsages;
|
|
11
|
-
/** All functions whose names have been prefixed with `m2-` in v18. */
|
|
12
|
-
const RENAMED_FUNCTIONS = [
|
|
13
|
-
'define-light-theme',
|
|
14
|
-
'define-dark-theme',
|
|
15
|
-
'define-palette',
|
|
16
|
-
'get-contrast-color-from-palette',
|
|
17
|
-
'get-color-from-palette',
|
|
18
|
-
'get-color-config',
|
|
19
|
-
'get-typography-config',
|
|
20
|
-
'get-density-config',
|
|
21
|
-
'define-typography-level',
|
|
22
|
-
'define-rem-typography-config',
|
|
23
|
-
'define-typography-config',
|
|
24
|
-
'define-legacy-typography-config',
|
|
25
|
-
'typography-level',
|
|
26
|
-
'font-size',
|
|
27
|
-
'line-height',
|
|
28
|
-
'font-weight',
|
|
29
|
-
'letter-spacing',
|
|
30
|
-
'font-family',
|
|
31
|
-
];
|
|
32
|
-
/** All variables whose names have been prefixed with `m2-` in v18. */
|
|
33
|
-
const RENAMED_VARIABLES = [
|
|
34
|
-
'red-palette',
|
|
35
|
-
'pink-palette',
|
|
36
|
-
'indigo-palette',
|
|
37
|
-
'purple-palette',
|
|
38
|
-
'deep-purple-palette',
|
|
39
|
-
'blue-palette',
|
|
40
|
-
'light-blue-palette',
|
|
41
|
-
'cyan-palette',
|
|
42
|
-
'teal-palette',
|
|
43
|
-
'green-palette',
|
|
44
|
-
'light-green-palette',
|
|
45
|
-
'lime-palette',
|
|
46
|
-
'yellow-palette',
|
|
47
|
-
'amber-palette',
|
|
48
|
-
'orange-palette',
|
|
49
|
-
'deep-orange-palette',
|
|
50
|
-
'brown-palette',
|
|
51
|
-
'grey-palette',
|
|
52
|
-
'gray-palette',
|
|
53
|
-
'blue-grey-palette',
|
|
54
|
-
'blue-gray-palette',
|
|
55
|
-
'light-theme-background-palette',
|
|
56
|
-
'dark-theme-background-palette',
|
|
57
|
-
'light-theme-foreground-palette',
|
|
58
|
-
'dark-theme-foreground-palette',
|
|
59
|
-
];
|
|
60
|
-
/** M3 theming functions that were moved into stable. */
|
|
61
|
-
const M3_FUNCTIONS = ['define-theme', 'define-colors', 'define-typography', 'define-density'];
|
|
62
|
-
/** M3 variables that were moved into stable. */
|
|
63
|
-
const M3_VARIABLES = [
|
|
64
|
-
'red-palette',
|
|
65
|
-
'green-palette',
|
|
66
|
-
'blue-palette',
|
|
67
|
-
'yellow-palette',
|
|
68
|
-
'cyan-palette',
|
|
69
|
-
'magenta-palette',
|
|
70
|
-
'orange-palette',
|
|
71
|
-
'chartreuse-palette',
|
|
72
|
-
'azure-palette',
|
|
73
|
-
'violet-palette',
|
|
74
|
-
'rose-palette',
|
|
75
|
-
];
|
|
76
|
-
/** Possible pairs of comment characters in a Sass file. */
|
|
77
|
-
const COMMENT_PAIRS = new Map([
|
|
78
|
-
['/*', '*/'],
|
|
79
|
-
['//', '\n'],
|
|
80
|
-
]);
|
|
81
|
-
/** Prefix for the placeholder that will be used to escape comments. */
|
|
82
|
-
const COMMENT_PLACEHOLDER_START = '__<<ngM2ThemingMigrationEscapedComment';
|
|
83
|
-
/** Suffix for the comment escape placeholder. */
|
|
84
|
-
const COMMENT_PLACEHOLDER_END = '>>__';
|
|
85
|
-
/** Replaces all usages of renamed M2 theming APIs in a file. */
|
|
86
|
-
function migrateM2ThemingApiUsages(fileContent) {
|
|
87
|
-
// Strip out comments, so they don't confuse our migration.
|
|
88
|
-
// eslint-disable-next-line prefer-const
|
|
89
|
-
let { content, placeholders } = escapeComments(fileContent);
|
|
90
|
-
const materialNamespaces = getNamespaces('@angular/material', content);
|
|
91
|
-
const experimentalNamespaces = getNamespaces('@angular/material-experimental', content);
|
|
92
|
-
// Migrate the APIs whose names were prefixed with `m2-`.
|
|
93
|
-
for (const namespace of materialNamespaces) {
|
|
94
|
-
for (const name of RENAMED_FUNCTIONS) {
|
|
95
|
-
content = migrateFunction(content, namespace, name, namespace, 'm2-' + name);
|
|
96
|
-
}
|
|
97
|
-
for (const name of RENAMED_VARIABLES) {
|
|
98
|
-
content = migrateVariable(content, namespace, name, namespace, 'm2-' + name);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
// Migrate themes that were using M3 while it was still in experimental.
|
|
102
|
-
if (experimentalNamespaces.length > 0) {
|
|
103
|
-
const preExperimentalContent = content;
|
|
104
|
-
const stableNamespace = materialNamespaces.length === 0 ? 'mat' : materialNamespaces[0];
|
|
105
|
-
for (const namespace of experimentalNamespaces) {
|
|
106
|
-
// The only mixin that was renamed was the backwards-compatibility one.
|
|
107
|
-
content = migrateMixin(content, namespace, 'color-variants-back-compat', stableNamespace, 'color-variants-backwards-compatibility');
|
|
108
|
-
// M3 functions weren't prefixed with anything
|
|
109
|
-
// so they just move over to the new namespace.
|
|
110
|
-
for (const name of M3_FUNCTIONS) {
|
|
111
|
-
content = migrateFunction(content, namespace, name, stableNamespace, name);
|
|
112
|
-
}
|
|
113
|
-
// Variables were all prefixed with `m3-` which needs to be stripped.
|
|
114
|
-
for (const name of M3_VARIABLES) {
|
|
115
|
-
content = migrateVariable(content, namespace, 'm3-' + name, stableNamespace, name);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
// If experimental is imported, but Material isn't, insert a new import at the top.
|
|
119
|
-
// This should be rare since `@angular/material` was still required for the theme.
|
|
120
|
-
if (materialNamespaces.length === 0 && content !== preExperimentalContent) {
|
|
121
|
-
content = `@use '@angular/material' as ${stableNamespace};\n` + content;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return restoreComments(content, placeholders);
|
|
125
|
-
}
|
|
126
|
-
/** Renames all usages of a Sass function in a file. */
|
|
127
|
-
function migrateFunction(fileContent, oldNamespace, oldName, newNamespace, newName) {
|
|
128
|
-
return fileContent.replace(new RegExp(`${oldNamespace}\\.${oldName}\\(`, 'g'), `${newNamespace}.${newName}(`);
|
|
129
|
-
}
|
|
130
|
-
/** Renames all usages of a Sass variable in a file. */
|
|
131
|
-
function migrateVariable(fileContent, oldNamespace, oldName, newNamespace, newName) {
|
|
132
|
-
return fileContent.replace(new RegExp(`${oldNamespace}\\.\\$${oldName}(?!\\s+:|[-_a-zA-Z0-9:])`, 'g'), `${newNamespace}.$${newName}`);
|
|
133
|
-
}
|
|
134
|
-
/** Renames all usages of a Sass mixin in a file. */
|
|
135
|
-
function migrateMixin(fileContent, oldNamespace, oldName, newNamespace, newName) {
|
|
136
|
-
const pattern = new RegExp(`@include +${oldNamespace}\\.${oldName}`, 'g');
|
|
137
|
-
return fileContent.replace(pattern, `@include ${newNamespace}.${newName}`);
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Replaces all the comments in a Sass file with placeholders and
|
|
141
|
-
* returns the list of placeholders, so they can be restored later.
|
|
142
|
-
*/
|
|
143
|
-
function escapeComments(content) {
|
|
144
|
-
const placeholders = {};
|
|
145
|
-
let commentCounter = 0;
|
|
146
|
-
let [openIndex, closeIndex] = findComment(content);
|
|
147
|
-
while (openIndex > -1 && closeIndex > -1) {
|
|
148
|
-
const placeholder = COMMENT_PLACEHOLDER_START + commentCounter++ + COMMENT_PLACEHOLDER_END;
|
|
149
|
-
placeholders[placeholder] = content.slice(openIndex, closeIndex);
|
|
150
|
-
content = content.slice(0, openIndex) + placeholder + content.slice(closeIndex);
|
|
151
|
-
[openIndex, closeIndex] = findComment(content);
|
|
152
|
-
}
|
|
153
|
-
return { content, placeholders };
|
|
154
|
-
}
|
|
155
|
-
/** Finds the start and end index of a comment in a file. */
|
|
156
|
-
function findComment(content) {
|
|
157
|
-
// Add an extra new line at the end so that we can correctly capture single-line comments
|
|
158
|
-
// at the end of the file. It doesn't really matter that the end index will be out of bounds,
|
|
159
|
-
// because `String.prototype.slice` will clamp it to the string length.
|
|
160
|
-
content += '\n';
|
|
161
|
-
for (const [open, close] of COMMENT_PAIRS.entries()) {
|
|
162
|
-
const openIndex = content.indexOf(open);
|
|
163
|
-
if (openIndex > -1) {
|
|
164
|
-
const closeIndex = content.indexOf(close, openIndex + 1);
|
|
165
|
-
return closeIndex > -1 ? [openIndex, closeIndex + close.length] : [-1, -1];
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
return [-1, -1];
|
|
169
|
-
}
|
|
170
|
-
/** Restores the comments that have been escaped by `escapeComments`. */
|
|
171
|
-
function restoreComments(content, placeholders) {
|
|
172
|
-
Object.keys(placeholders).forEach(key => (content = content.replace(key, placeholders[key])));
|
|
173
|
-
return content;
|
|
174
|
-
}
|
|
175
|
-
/** Parses out the namespace from a Sass `@use` statement. */
|
|
176
|
-
function extractNamespaceFromUseStatement(fullImport) {
|
|
177
|
-
const closeQuoteIndex = Math.max(fullImport.lastIndexOf(`"`), fullImport.lastIndexOf(`'`));
|
|
178
|
-
if (closeQuoteIndex > -1) {
|
|
179
|
-
const asExpression = 'as ';
|
|
180
|
-
const asIndex = fullImport.indexOf(asExpression, closeQuoteIndex);
|
|
181
|
-
// If we found an ` as ` expression, we consider the rest of the text as the namespace.
|
|
182
|
-
if (asIndex > -1) {
|
|
183
|
-
return fullImport
|
|
184
|
-
.slice(asIndex + asExpression.length)
|
|
185
|
-
.split(';')[0]
|
|
186
|
-
.trim();
|
|
187
|
-
}
|
|
188
|
-
// Otherwise the namespace is the name of the file that is being imported.
|
|
189
|
-
const lastSlashIndex = fullImport.lastIndexOf('/', closeQuoteIndex);
|
|
190
|
-
if (lastSlashIndex > -1) {
|
|
191
|
-
const fileName = fullImport
|
|
192
|
-
.slice(lastSlashIndex + 1, closeQuoteIndex)
|
|
193
|
-
// Sass allows for leading underscores to be omitted and it technically supports .scss.
|
|
194
|
-
.replace(/^_|(\.import)?\.scss$|\.import$/g, '');
|
|
195
|
-
// Sass ignores `/index` and infers the namespace as the next segment in the path.
|
|
196
|
-
if (fileName === 'index') {
|
|
197
|
-
const nextSlashIndex = fullImport.lastIndexOf('/', lastSlashIndex - 1);
|
|
198
|
-
if (nextSlashIndex > -1) {
|
|
199
|
-
return fullImport.slice(nextSlashIndex + 1, lastSlashIndex);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
return fileName;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
throw Error(`Could not extract namespace from import "${fullImport}".`);
|
|
208
|
-
}
|
|
209
|
-
/** Gets all the namespaces that a module is available under in a specific file. */
|
|
210
|
-
function getNamespaces(moduleName, content) {
|
|
211
|
-
const namespaces = new Set();
|
|
212
|
-
const escapedName = moduleName.replace(/([.*+?^=!:${}()|[\]/\\])/g, '\\$1');
|
|
213
|
-
const pattern = new RegExp(`@use +['"]${escapedName}['"].*;?\n`, 'g');
|
|
214
|
-
let match = null;
|
|
215
|
-
while ((match = pattern.exec(content))) {
|
|
216
|
-
namespaces.add(extractNamespaceFromUseStatement(match[0]));
|
|
217
|
-
}
|
|
218
|
-
return Array.from(namespaces);
|
|
219
|
-
}
|
|
220
|
-
//# sourceMappingURL=migration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migration.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/migrations/update-19-0-0/migration.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAoFH,8DAqDC;AAvID,sEAAsE;AACtE,MAAM,iBAAiB,GAAG;IACxB,oBAAoB;IACpB,mBAAmB;IACnB,gBAAgB;IAChB,iCAAiC;IACjC,wBAAwB;IACxB,kBAAkB;IAClB,uBAAuB;IACvB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