@o3r/style-dictionary 12.5.0-prerelease.19 → 12.5.0-prerelease.2
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/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/style-dictionary",
|
|
3
|
-
"version": "12.5.0-prerelease.
|
|
4
|
-
"deprecated": "This package will be removed in Otter v14. Please use @ama-styling/style-dictionary instead.",
|
|
3
|
+
"version": "12.5.0-prerelease.2",
|
|
5
4
|
"type": "module",
|
|
6
5
|
"publishConfig": {
|
|
7
6
|
"access": "public"
|
|
@@ -23,7 +22,7 @@
|
|
|
23
22
|
"build:builders": "tsc -b tsconfig.builders.json --pretty && yarn generate-cjs-manifest",
|
|
24
23
|
"build:source": "tsc -b tsconfig.build.json && yarn cpy package.json dist/",
|
|
25
24
|
"build": "yarn nx build design",
|
|
26
|
-
"prepare:build:builders": "yarn cpy 'schematics/**/*.json' dist/schematics && yarn cpy '
|
|
25
|
+
"prepare:build:builders": "yarn cpy 'schematics/**/*.json' dist/schematics && yarn cpy 'collection.json' dist && yarn copy:templates",
|
|
27
26
|
"postbuild": "patch-package-json-main"
|
|
28
27
|
},
|
|
29
28
|
"exports": {
|
|
@@ -42,14 +41,14 @@
|
|
|
42
41
|
"dependencies": {
|
|
43
42
|
"@angular-devkit/architect": "~0.1902.0",
|
|
44
43
|
"@angular-devkit/schematics": "~19.2.0",
|
|
45
|
-
"@o3r/schematics": "^12.5.0-prerelease.
|
|
44
|
+
"@o3r/schematics": "^12.5.0-prerelease.2",
|
|
46
45
|
"@schematics/angular": "~19.2.0",
|
|
47
46
|
"tslib": "^2.6.2"
|
|
48
47
|
},
|
|
49
48
|
"peerDependencies": {
|
|
50
|
-
"@o3r/core": "^12.5.0-prerelease.
|
|
51
|
-
"@o3r/schematics": "^12.5.0-prerelease.
|
|
52
|
-
"@o3r/telemetry": "^12.5.0-prerelease.
|
|
49
|
+
"@o3r/core": "^12.5.0-prerelease.2",
|
|
50
|
+
"@o3r/schematics": "^12.5.0-prerelease.2",
|
|
51
|
+
"@o3r/telemetry": "^12.5.0-prerelease.2",
|
|
53
52
|
"style-dictionary": "^4.3.2",
|
|
54
53
|
"type-fest": "^4.30.1"
|
|
55
54
|
},
|
|
@@ -63,6 +62,12 @@
|
|
|
63
62
|
"@o3r/telemetry": {
|
|
64
63
|
"optional": true
|
|
65
64
|
},
|
|
65
|
+
"chokidar": {
|
|
66
|
+
"optional": true
|
|
67
|
+
},
|
|
68
|
+
"globby": {
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
66
71
|
"type-fest": {
|
|
67
72
|
"optional": true
|
|
68
73
|
}
|
|
@@ -77,28 +82,28 @@
|
|
|
77
82
|
"@nx/eslint-plugin": "~20.8.0",
|
|
78
83
|
"@nx/jest": "~20.8.0",
|
|
79
84
|
"@nx/js": "~20.8.0",
|
|
80
|
-
"@o3r/build-helpers": "^12.5.0-prerelease.
|
|
81
|
-
"@o3r/core": "^12.5.0-prerelease.
|
|
82
|
-
"@o3r/eslint-plugin": "^12.5.0-prerelease.
|
|
83
|
-
"@o3r/telemetry": "^12.5.0-prerelease.
|
|
84
|
-
"@o3r/test-helpers": "^12.5.0-prerelease.
|
|
85
|
+
"@o3r/build-helpers": "^12.5.0-prerelease.2",
|
|
86
|
+
"@o3r/core": "^12.5.0-prerelease.2",
|
|
87
|
+
"@o3r/eslint-plugin": "^12.5.0-prerelease.2",
|
|
88
|
+
"@o3r/telemetry": "^12.5.0-prerelease.2",
|
|
89
|
+
"@o3r/test-helpers": "^12.5.0-prerelease.2",
|
|
85
90
|
"@schematics/angular": "~19.2.0",
|
|
86
91
|
"@stylistic/eslint-plugin": "~3.1.0",
|
|
87
92
|
"@types/jest": "~29.5.2",
|
|
88
93
|
"@types/minimist": "^1.2.2",
|
|
89
94
|
"@types/node": "^20.0.0",
|
|
90
95
|
"@types/semver": "^7.3.13",
|
|
91
|
-
"@typescript-eslint/parser": "~8.
|
|
96
|
+
"@typescript-eslint/parser": "~8.34.0",
|
|
92
97
|
"angular-eslint": "~19.4.0",
|
|
93
98
|
"babel-jest": "^29.7.0",
|
|
94
99
|
"chokidar": "^4.0.3",
|
|
95
100
|
"cpy-cli": "^5.0.0",
|
|
96
|
-
"eslint": "~9.
|
|
101
|
+
"eslint": "~9.28.0",
|
|
97
102
|
"eslint-import-resolver-node": "~0.3.9",
|
|
98
103
|
"eslint-import-resolver-typescript": "~3.10.0",
|
|
99
|
-
"eslint-plugin-import": "~2.
|
|
104
|
+
"eslint-plugin-import": "~2.31.0",
|
|
100
105
|
"eslint-plugin-import-newlines": "~1.4.0",
|
|
101
|
-
"eslint-plugin-jest": "~28.
|
|
106
|
+
"eslint-plugin-jest": "~28.13.0",
|
|
102
107
|
"eslint-plugin-jsdoc": "~50.8.0",
|
|
103
108
|
"eslint-plugin-prefer-arrow": "~1.2.3",
|
|
104
109
|
"eslint-plugin-unicorn": "~56.0.0",
|
|
@@ -115,17 +120,13 @@
|
|
|
115
120
|
"ts-node": "~10.9.2",
|
|
116
121
|
"type-fest": "^4.30.1",
|
|
117
122
|
"typescript": "~5.8.2",
|
|
118
|
-
"typescript-eslint": "~8.
|
|
123
|
+
"typescript-eslint": "~8.34.0",
|
|
119
124
|
"zone.js": "~0.15.0"
|
|
120
125
|
},
|
|
121
126
|
"engines": {
|
|
122
127
|
"node": "^20.11.1 || >=22.0.0"
|
|
123
128
|
},
|
|
124
129
|
"schematics": "./collection.json",
|
|
125
|
-
"ng-update": {
|
|
126
|
-
"migrations": "./migration.json",
|
|
127
|
-
"requirements": "^12.0.0"
|
|
128
|
-
},
|
|
129
130
|
"contributors": [
|
|
130
131
|
{
|
|
131
132
|
"name": "Yannick Adam",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AAcpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AAcpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AA0FlB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,CAAC"}
|
|
@@ -4,27 +4,19 @@ exports.ngAdd = void 0;
|
|
|
4
4
|
const path = require("node:path");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const schematics_2 = require("@o3r/schematics");
|
|
7
|
-
/**
|
|
8
|
-
* List of external dependencies to be added to the project as peer dependencies
|
|
9
|
-
*/
|
|
10
|
-
const dependenciesToInstall = [];
|
|
11
|
-
/**
|
|
12
|
-
* List of external dependencies to be added to the project as dev dependencies
|
|
13
|
-
*/
|
|
14
|
-
const devDependenciesToInstall = [
|
|
15
|
-
'style-dictionary'
|
|
16
|
-
];
|
|
17
7
|
/**
|
|
18
8
|
* Add Otter Style Dictionary process to an Angular Project
|
|
19
9
|
* @param options
|
|
20
10
|
*/
|
|
21
11
|
function ngAddFn(options) {
|
|
22
|
-
const setup = (tree, context) => {
|
|
23
|
-
const
|
|
24
|
-
|
|
12
|
+
const setup = async (tree, context) => {
|
|
13
|
+
const devDependenciesToInstall = [
|
|
14
|
+
'style-dictionary'
|
|
15
|
+
];
|
|
16
|
+
const depsInfo = (0, schematics_2.getO3rPeerDeps)(path.resolve(__dirname, '..', '..', 'package.json'), true);
|
|
25
17
|
const workspaceProject = options.projectName ? (0, schematics_2.getWorkspaceConfig)(tree)?.projects[options.projectName] : undefined;
|
|
26
|
-
const
|
|
27
|
-
const
|
|
18
|
+
const { NodeDependencyType } = await Promise.resolve().then(() => require('@schematics/angular/utility/dependencies'));
|
|
19
|
+
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
28
20
|
const dependencies = depsInfo.o3rPeerDeps.reduce((acc, dep) => {
|
|
29
21
|
acc[dep] = {
|
|
30
22
|
inManifest: [{
|
|
@@ -35,19 +27,18 @@ function ngAddFn(options) {
|
|
|
35
27
|
};
|
|
36
28
|
return acc;
|
|
37
29
|
}, (0, schematics_2.getPackageInstallConfig)(packageJsonPath, tree, options.projectName, true, !!options.exactO3rVersion));
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
30
|
+
Object.entries((0, schematics_2.getExternalDependenciesVersionRange)(devDependenciesToInstall, packageJsonPath, context.logger))
|
|
31
|
+
.forEach(([dep, range]) => {
|
|
32
|
+
dependencies[dep] = {
|
|
33
|
+
inManifest: [{
|
|
34
|
+
range,
|
|
35
|
+
types: [NodeDependencyType.Dev]
|
|
36
|
+
}]
|
|
37
|
+
};
|
|
38
|
+
});
|
|
45
39
|
return (0, schematics_2.setupDependencies)({
|
|
46
40
|
projectName: options.projectName,
|
|
47
|
-
dependencies
|
|
48
|
-
...dependencies,
|
|
49
|
-
...externalDependenciesInfo
|
|
50
|
-
},
|
|
41
|
+
dependencies,
|
|
51
42
|
ngAddToRun: depsInfo.o3rPeerDeps
|
|
52
43
|
});
|
|
53
44
|
};
|
package/migration.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/angular/angular-cli/master/packages/angular_devkit/schematics/collection-schema.json",
|
|
3
|
-
"schematics": {
|
|
4
|
-
"migration": {
|
|
5
|
-
"version": "*",
|
|
6
|
-
"description": "Migration of @o3r/style-dictionary to new scope",
|
|
7
|
-
"factory": "./schematics/ng-update/index#updateAll"
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AA0BpC;;GAEG;AACH,eAAO,MAAM,SAAS,wBAMnB,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateAll = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const schematics_2 = require("@o3r/schematics");
|
|
6
|
-
/**
|
|
7
|
-
* Rule to update the Style-dictionary configuration to new scope
|
|
8
|
-
* @param tree
|
|
9
|
-
* @param context
|
|
10
|
-
*/
|
|
11
|
-
const updateStyleDictionaryConfig = (tree, context) => {
|
|
12
|
-
const excludes = ['**/node_modules/**', '**/.cache/**'];
|
|
13
|
-
const extensionMatcher = /config\.[mc]?js$/;
|
|
14
|
-
const configFiles = (0, schematics_2.getAllFilesInTree)(tree, '/', excludes)
|
|
15
|
-
.filter((filePath) => extensionMatcher.test(filePath));
|
|
16
|
-
configFiles.forEach((file) => {
|
|
17
|
-
const text = tree.readText(file);
|
|
18
|
-
if (text.includes('@o3r/style-dictionary')) {
|
|
19
|
-
context.logger.debug(`Update ${file}`);
|
|
20
|
-
tree.overwrite(file, text.replace(/o3r/g, 'ama'));
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Update of Otter library V13.0
|
|
26
|
-
*/
|
|
27
|
-
exports.updateAll = (0, schematics_2.createOtterSchematic)(() => (0, schematics_1.chain)([
|
|
28
|
-
updateStyleDictionaryConfig,
|
|
29
|
-
(_, context) => {
|
|
30
|
-
context.logger.warn('The package "@o3r/style-dictionary" is deprecated, please install "@ama-styling/style-dictionary" with the following command:');
|
|
31
|
-
context.logger.warn('ng add @ama-styling/style-dictionary');
|
|
32
|
-
}
|
|
33
|
-
]));
|
|
34
|
-
//# sourceMappingURL=index.js.map
|