@razorwind/nx 0.0.41 → 0.0.43
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 +20 -0
- package/dist/executors/generate/executor.d.mts +14 -0
- package/dist/executors/generate/executor.d.ts +14 -0
- package/dist/executors/generate/executor.d.ts.map +1 -1
- package/dist/executors/generate/schema.d.ts +16 -0
- package/dist/executors/generate/schema.json +30 -0
- package/dist/generators/sync/generator.d.ts.map +1 -1
- package/dist/generators/sync/generator.js +12 -0
- package/dist/generators/sync/generator.mjs +12 -0
- package/dist/plugin/index.d.mts +8 -0
- package/dist/plugin/index.d.ts +8 -0
- package/dist/plugin/index.d.ts.map +1 -1
- package/dist/plugin/index.js +4 -0
- package/dist/plugin/index.mjs +4 -0
- package/docs/api/generate/schema.md +14 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Razorwind - Nx
|
|
4
4
|
|
|
5
|
+
## [0.0.43](https://github.com/storm-software/razorwind/releases/tag/nx%400.0.43) (08/13/2026)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **core** to **v0.0.48**
|
|
10
|
+
|
|
11
|
+
## [0.0.42](https://github.com/storm-software/razorwind/releases/tag/nx%400.0.42) (08/13/2026)
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
- **core:** Resolved issue applying `verbose` option ([9475762](https://github.com/storm-software/razorwind/commit/9475762))
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
- **core:** Added `fonts` to the schema ([90deca2](https://github.com/storm-software/razorwind/commit/90deca2))
|
|
20
|
+
|
|
21
|
+
### Updated Dependencies
|
|
22
|
+
|
|
23
|
+
- Updated **core** to **v0.0.47**
|
|
24
|
+
|
|
5
25
|
## [0.0.41](https://github.com/storm-software/razorwind/releases/tag/nx%400.0.41) (08/13/2026)
|
|
6
26
|
|
|
7
27
|
### Miscellaneous
|
|
@@ -24,6 +24,20 @@ interface GenerateExecutorSchema {
|
|
|
24
24
|
* @oneOf [object Object],[object Object]
|
|
25
25
|
*/
|
|
26
26
|
componentsPath?: string | string[];
|
|
27
|
+
/**
|
|
28
|
+
* The path to a directory containing icon assets or icon directories, or an array of paths
|
|
29
|
+
*
|
|
30
|
+
*
|
|
31
|
+
* @oneOf [object Object],[object Object]
|
|
32
|
+
*/
|
|
33
|
+
iconsPath?: string | string[];
|
|
34
|
+
/**
|
|
35
|
+
* The path to a directory containing font files or font directories, or an array of paths
|
|
36
|
+
*
|
|
37
|
+
*
|
|
38
|
+
* @oneOf [object Object],[object Object]
|
|
39
|
+
*/
|
|
40
|
+
fontsPath?: string | string[];
|
|
27
41
|
/**
|
|
28
42
|
* The path to the tokens.json file, or an array of paths
|
|
29
43
|
*
|
|
@@ -24,6 +24,20 @@ interface GenerateExecutorSchema {
|
|
|
24
24
|
* @oneOf [object Object],[object Object]
|
|
25
25
|
*/
|
|
26
26
|
componentsPath?: string | string[];
|
|
27
|
+
/**
|
|
28
|
+
* The path to a directory containing icon assets or icon directories, or an array of paths
|
|
29
|
+
*
|
|
30
|
+
*
|
|
31
|
+
* @oneOf [object Object],[object Object]
|
|
32
|
+
*/
|
|
33
|
+
iconsPath?: string | string[];
|
|
34
|
+
/**
|
|
35
|
+
* The path to a directory containing font files or font directories, or an array of paths
|
|
36
|
+
*
|
|
37
|
+
*
|
|
38
|
+
* @oneOf [object Object],[object Object]
|
|
39
|
+
*/
|
|
40
|
+
fontsPath?: string | string[];
|
|
27
41
|
/**
|
|
28
42
|
* The path to the tokens.json file, or an array of paths
|
|
29
43
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","names":[],"sources":["../../../src/executors/generate/schema.d.ts","../../../src/executors/generate/executor.ts"],"mappings":";;;;;UAIiB;;;;;EAKhB;;;;;;;;EASA;;;;;;;EAQA;;;;;;;EAQA;;;;;;EAOA;;;;
|
|
1
|
+
{"version":3,"file":"executor.d.ts","names":[],"sources":["../../../src/executors/generate/schema.d.ts","../../../src/executors/generate/executor.ts"],"mappings":";;;;;UAIiB;;;;;EAKhB;;;;;;;;EASA;;;;;;;EAQA;;;;;;;EAQA;;;;;;;EAQA;;;;;;;EAQA;;;;;;EAOA;;;;iBChCc,WACb,SAAS,wBACT,SAAS,kBACR,QAAQ"}
|
|
@@ -26,6 +26,22 @@ export interface GenerateExecutorSchema {
|
|
|
26
26
|
*/
|
|
27
27
|
componentsPath?: string | string[],
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* The path to a directory containing icon assets or icon directories, or an array of paths
|
|
31
|
+
*
|
|
32
|
+
*
|
|
33
|
+
* @oneOf [object Object],[object Object]
|
|
34
|
+
*/
|
|
35
|
+
iconsPath?: string | string[],
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The path to a directory containing font files or font directories, or an array of paths
|
|
39
|
+
*
|
|
40
|
+
*
|
|
41
|
+
* @oneOf [object Object],[object Object]
|
|
42
|
+
*/
|
|
43
|
+
fontsPath?: string | string[],
|
|
44
|
+
|
|
29
45
|
/**
|
|
30
46
|
* The path to the tokens.json file, or an array of paths
|
|
31
47
|
*
|
|
@@ -35,6 +35,36 @@
|
|
|
35
35
|
"tsType": "string | string[]",
|
|
36
36
|
"description": "The path to a directory containing component directories or files, or an array of paths"
|
|
37
37
|
},
|
|
38
|
+
"iconsPath": {
|
|
39
|
+
"oneOf": [
|
|
40
|
+
{
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "array",
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"tsType": "string | string[]",
|
|
51
|
+
"description": "The path to a directory containing icon assets or icon directories, or an array of paths"
|
|
52
|
+
},
|
|
53
|
+
"fontsPath": {
|
|
54
|
+
"oneOf": [
|
|
55
|
+
{
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"tsType": "string | string[]",
|
|
66
|
+
"description": "The path to a directory containing font files or font directories, or an array of paths"
|
|
67
|
+
},
|
|
38
68
|
"tokensPath": {
|
|
39
69
|
"oneOf": [
|
|
40
70
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.d.ts","names":[],"sources":["../../../src/generators/sync/generator.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"generator.d.ts","names":[],"sources":["../../../src/generators/sync/generator.ts"],"mappings":";;;iBA8HsB,cAAc,MAAM,OAAO,QAAQ"}
|
|
@@ -83,6 +83,8 @@ async function generateForProject(tree, options) {
|
|
|
83
83
|
configFile: options.configFile,
|
|
84
84
|
mode: options.mode,
|
|
85
85
|
componentsPath: options.componentsPath,
|
|
86
|
+
iconsPath: options.iconsPath,
|
|
87
|
+
fontsPath: options.fontsPath,
|
|
86
88
|
tokensPath: options.tokensPath,
|
|
87
89
|
cwd: tree.root,
|
|
88
90
|
output: _power_plant_noop_output.default
|
|
@@ -109,6 +111,8 @@ async function syncGenerator(tree) {
|
|
|
109
111
|
configFile,
|
|
110
112
|
mode: defaultMode,
|
|
111
113
|
componentsPath: void 0,
|
|
114
|
+
iconsPath: void 0,
|
|
115
|
+
fontsPath: void 0,
|
|
112
116
|
tokensPath: void 0
|
|
113
117
|
});
|
|
114
118
|
outOfSyncDetails.push(...changed);
|
|
@@ -120,6 +124,8 @@ async function syncGenerator(tree) {
|
|
|
120
124
|
configFile: workspaceConfigFile,
|
|
121
125
|
mode: defaultMode,
|
|
122
126
|
componentsPath: void 0,
|
|
127
|
+
iconsPath: void 0,
|
|
128
|
+
fontsPath: void 0,
|
|
123
129
|
tokensPath: void 0
|
|
124
130
|
});
|
|
125
131
|
outOfSyncDetails.push(...changed);
|
|
@@ -130,10 +136,14 @@ async function syncGenerator(tree) {
|
|
|
130
136
|
let configFile;
|
|
131
137
|
let mode = defaultMode;
|
|
132
138
|
let componentsPath;
|
|
139
|
+
let iconsPath;
|
|
140
|
+
let fontsPath;
|
|
133
141
|
let tokensPath;
|
|
134
142
|
if (generateTarget?.executor === "@razorwind/nx:generate") {
|
|
135
143
|
mode = generateTarget.configurations?.[generateTarget.defaultConfiguration ?? "production"]?.mode ?? generateTarget.options?.mode ?? defaultMode;
|
|
136
144
|
componentsPath = generateTarget.options?.componentsPath;
|
|
145
|
+
iconsPath = generateTarget.options?.iconsPath;
|
|
146
|
+
fontsPath = generateTarget.options?.fontsPath;
|
|
137
147
|
tokensPath = generateTarget.options?.tokensPath;
|
|
138
148
|
const configured = generateTarget.options?.configFile ? resolveConfigFileToken(generateTarget.options.configFile, tree.root, projectRoot) : void 0;
|
|
139
149
|
configFile = configured && tree.exists(configured) ? configured : findDefaultConfigFile(tree, projectRoot);
|
|
@@ -144,6 +154,8 @@ async function syncGenerator(tree) {
|
|
|
144
154
|
configFile,
|
|
145
155
|
mode,
|
|
146
156
|
componentsPath,
|
|
157
|
+
iconsPath,
|
|
158
|
+
fontsPath,
|
|
147
159
|
tokensPath
|
|
148
160
|
});
|
|
149
161
|
outOfSyncDetails.push(...changed);
|
|
@@ -54,6 +54,8 @@ async function generateForProject(tree, options) {
|
|
|
54
54
|
configFile: options.configFile,
|
|
55
55
|
mode: options.mode,
|
|
56
56
|
componentsPath: options.componentsPath,
|
|
57
|
+
iconsPath: options.iconsPath,
|
|
58
|
+
fontsPath: options.fontsPath,
|
|
57
59
|
tokensPath: options.tokensPath,
|
|
58
60
|
cwd: tree.root,
|
|
59
61
|
output: noop
|
|
@@ -80,6 +82,8 @@ async function syncGenerator(tree) {
|
|
|
80
82
|
configFile,
|
|
81
83
|
mode: defaultMode,
|
|
82
84
|
componentsPath: void 0,
|
|
85
|
+
iconsPath: void 0,
|
|
86
|
+
fontsPath: void 0,
|
|
83
87
|
tokensPath: void 0
|
|
84
88
|
});
|
|
85
89
|
outOfSyncDetails.push(...changed);
|
|
@@ -91,6 +95,8 @@ async function syncGenerator(tree) {
|
|
|
91
95
|
configFile: workspaceConfigFile,
|
|
92
96
|
mode: defaultMode,
|
|
93
97
|
componentsPath: void 0,
|
|
98
|
+
iconsPath: void 0,
|
|
99
|
+
fontsPath: void 0,
|
|
94
100
|
tokensPath: void 0
|
|
95
101
|
});
|
|
96
102
|
outOfSyncDetails.push(...changed);
|
|
@@ -101,10 +107,14 @@ async function syncGenerator(tree) {
|
|
|
101
107
|
let configFile;
|
|
102
108
|
let mode = defaultMode;
|
|
103
109
|
let componentsPath;
|
|
110
|
+
let iconsPath;
|
|
111
|
+
let fontsPath;
|
|
104
112
|
let tokensPath;
|
|
105
113
|
if (generateTarget?.executor === "@razorwind/nx:generate") {
|
|
106
114
|
mode = generateTarget.configurations?.[generateTarget.defaultConfiguration ?? "production"]?.mode ?? generateTarget.options?.mode ?? defaultMode;
|
|
107
115
|
componentsPath = generateTarget.options?.componentsPath;
|
|
116
|
+
iconsPath = generateTarget.options?.iconsPath;
|
|
117
|
+
fontsPath = generateTarget.options?.fontsPath;
|
|
108
118
|
tokensPath = generateTarget.options?.tokensPath;
|
|
109
119
|
const configured = generateTarget.options?.configFile ? resolveConfigFileToken(generateTarget.options.configFile, tree.root, projectRoot) : void 0;
|
|
110
120
|
configFile = configured && tree.exists(configured) ? configured : findDefaultConfigFile(tree, projectRoot);
|
|
@@ -115,6 +125,8 @@ async function syncGenerator(tree) {
|
|
|
115
125
|
configFile,
|
|
116
126
|
mode,
|
|
117
127
|
componentsPath,
|
|
128
|
+
iconsPath,
|
|
129
|
+
fontsPath,
|
|
118
130
|
tokensPath
|
|
119
131
|
});
|
|
120
132
|
outOfSyncDetails.push(...changed);
|
package/dist/plugin/index.d.mts
CHANGED
|
@@ -11,6 +11,14 @@ interface NxPluginOptions {
|
|
|
11
11
|
* The path to a directory containing component directories or files, or an array of paths.
|
|
12
12
|
*/
|
|
13
13
|
componentsPath?: string | string[];
|
|
14
|
+
/**
|
|
15
|
+
* The path to a directory containing icon assets or icon directories, or an array of paths.
|
|
16
|
+
*/
|
|
17
|
+
iconsPath?: string | string[];
|
|
18
|
+
/**
|
|
19
|
+
* The path to a directory containing font files or font directories, or an array of paths.
|
|
20
|
+
*/
|
|
21
|
+
fontsPath?: string | string[];
|
|
14
22
|
/**
|
|
15
23
|
* The path to the tokens.json file, or an array of paths.
|
|
16
24
|
*/
|
package/dist/plugin/index.d.ts
CHANGED
|
@@ -11,6 +11,14 @@ interface NxPluginOptions {
|
|
|
11
11
|
* The path to a directory containing component directories or files, or an array of paths.
|
|
12
12
|
*/
|
|
13
13
|
componentsPath?: string | string[];
|
|
14
|
+
/**
|
|
15
|
+
* The path to a directory containing icon assets or icon directories, or an array of paths.
|
|
16
|
+
*/
|
|
17
|
+
iconsPath?: string | string[];
|
|
18
|
+
/**
|
|
19
|
+
* The path to a directory containing font files or font directories, or an array of paths.
|
|
20
|
+
*/
|
|
21
|
+
fontsPath?: string | string[];
|
|
14
22
|
/**
|
|
15
23
|
* The path to the tokens.json file, or an array of paths.
|
|
16
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/plugin/index.ts"],"mappings":";;UA+CiB;;;;;;EAMf;;;;EAKA;;;;EAKA;;;;;;EAOA;;cAGW,eAAe,YAAY"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/plugin/index.ts"],"mappings":";;UA+CiB;;;;;;EAMf;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;;;EAOA;;cAGW,eAAe,YAAY"}
|
package/dist/plugin/index.js
CHANGED
|
@@ -104,6 +104,8 @@ const createNodesV2 = ["**/razorwind.config.ts", async (configFiles, options, co
|
|
|
104
104
|
inputs: [
|
|
105
105
|
(0, _stryke_path_join_paths.joinPaths)("{workspaceRoot}", configFile),
|
|
106
106
|
...(((0, _stryke_type_checks_is_set_string.isSetString)(options?.componentsPath) ? [options.componentsPath] : options?.componentsPath) ?? []).map((path) => (0, _stryke_path_join_paths.joinPaths)("{workspaceRoot}", path)),
|
|
107
|
+
...(((0, _stryke_type_checks_is_set_string.isSetString)(options?.iconsPath) ? [options.iconsPath] : options?.iconsPath) ?? []).map((path) => (0, _stryke_path_join_paths.joinPaths)("{workspaceRoot}", path)),
|
|
108
|
+
...(((0, _stryke_type_checks_is_set_string.isSetString)(options?.fontsPath) ? [options.fontsPath] : options?.fontsPath) ?? []).map((path) => (0, _stryke_path_join_paths.joinPaths)("{workspaceRoot}", path)),
|
|
107
109
|
...(((0, _stryke_type_checks_is_set_string.isSetString)(options?.tokensPath) ? [options.tokensPath] : options?.tokensPath) ?? []).map((path) => (0, _stryke_path_join_paths.joinPaths)("{workspaceRoot}", path))
|
|
108
110
|
],
|
|
109
111
|
executor: GENERATE_EXECUTOR,
|
|
@@ -112,6 +114,8 @@ const createNodesV2 = ["**/razorwind.config.ts", async (configFiles, options, co
|
|
|
112
114
|
options: {
|
|
113
115
|
configFile,
|
|
114
116
|
componentsPath: options?.componentsPath,
|
|
117
|
+
iconsPath: options?.iconsPath,
|
|
118
|
+
fontsPath: options?.fontsPath,
|
|
115
119
|
tokensPath: options?.tokensPath
|
|
116
120
|
},
|
|
117
121
|
configurations: {
|
package/dist/plugin/index.mjs
CHANGED
|
@@ -75,6 +75,8 @@ const createNodesV2 = ["**/razorwind.config.ts", async (configFiles, options, co
|
|
|
75
75
|
inputs: [
|
|
76
76
|
joinPaths("{workspaceRoot}", configFile),
|
|
77
77
|
...((isSetString(options?.componentsPath) ? [options.componentsPath] : options?.componentsPath) ?? []).map((path) => joinPaths("{workspaceRoot}", path)),
|
|
78
|
+
...((isSetString(options?.iconsPath) ? [options.iconsPath] : options?.iconsPath) ?? []).map((path) => joinPaths("{workspaceRoot}", path)),
|
|
79
|
+
...((isSetString(options?.fontsPath) ? [options.fontsPath] : options?.fontsPath) ?? []).map((path) => joinPaths("{workspaceRoot}", path)),
|
|
78
80
|
...((isSetString(options?.tokensPath) ? [options.tokensPath] : options?.tokensPath) ?? []).map((path) => joinPaths("{workspaceRoot}", path))
|
|
79
81
|
],
|
|
80
82
|
executor: GENERATE_EXECUTOR,
|
|
@@ -83,6 +85,8 @@ const createNodesV2 = ["**/razorwind.config.ts", async (configFiles, options, co
|
|
|
83
85
|
options: {
|
|
84
86
|
configFile,
|
|
85
87
|
componentsPath: options?.componentsPath,
|
|
88
|
+
iconsPath: options?.iconsPath,
|
|
89
|
+
fontsPath: options?.fontsPath,
|
|
86
90
|
tokensPath: options?.tokensPath
|
|
87
91
|
},
|
|
88
92
|
configurations: {
|
|
@@ -26,6 +26,20 @@ The mode to use
|
|
|
26
26
|
The path to a directory containing component directories or files, or an array of paths
|
|
27
27
|
|
|
28
28
|
|
|
29
|
+
## `iconsPath`
|
|
30
|
+
- **Type**: `string | string[]`
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
The path to a directory containing icon assets or icon directories, or an array of paths
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## `fontsPath`
|
|
37
|
+
- **Type**: `string | string[]`
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
The path to a directory containing font files or font directories, or an array of paths
|
|
41
|
+
|
|
42
|
+
|
|
29
43
|
## `tokensPath`
|
|
30
44
|
- **Type**: `string | string[]`
|
|
31
45
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@razorwind/nx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.43",
|
|
4
4
|
"description": "A Nx plugin to support Razorwind development in Nx monorepos.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"dependencies": {
|
|
113
113
|
"@nx/devkit": "23.1.0",
|
|
114
114
|
"@power-plant/core": "^0.0.90",
|
|
115
|
-
"@razorwind/core": "^0.0.
|
|
115
|
+
"@razorwind/core": "^0.0.48",
|
|
116
116
|
"@storm-software/workspace-tools": "^1.297.2",
|
|
117
117
|
"@stryke/hash": "^0.13.63",
|
|
118
118
|
"@stryke/path": "^0.29.35",
|
|
@@ -134,5 +134,5 @@
|
|
|
134
134
|
"publishConfig": { "access": "public" },
|
|
135
135
|
"executors": "./executors.json",
|
|
136
136
|
"generators": "./generators.json",
|
|
137
|
-
"gitHead": "
|
|
137
|
+
"gitHead": "c53ec72420850efd1c4f8339b264c33ca6b9870b"
|
|
138
138
|
}
|