@spectrum-web-components/icons-workflow 0.42.1 → 0.42.3
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/bin/build.js +69 -62
- package/package.json +5 -5
- package/src/custom-tag.d.ts +2 -2
package/bin/build.js
CHANGED
|
@@ -146,20 +146,22 @@ icons.forEach((i) => {
|
|
|
146
146
|
}
|
|
147
147
|
`;
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
149
|
+
prettier
|
|
150
|
+
.format(iconLiteral, {
|
|
151
|
+
printWidth: 100,
|
|
152
|
+
tabWidth: 2,
|
|
153
|
+
useTabs: false,
|
|
154
|
+
semi: true,
|
|
155
|
+
singleQuote: true,
|
|
156
|
+
trailingComma: 'all',
|
|
157
|
+
bracketSpacing: true,
|
|
158
|
+
jsxBracketSameLine: false,
|
|
159
|
+
arrowParens: 'avoid',
|
|
160
|
+
parser: 'typescript',
|
|
161
|
+
})
|
|
162
|
+
.then((icon) => {
|
|
163
|
+
fs.writeFileSync(location, icon, 'utf-8');
|
|
164
|
+
});
|
|
163
165
|
|
|
164
166
|
const exportString = `export {${ComponentName}Icon} from './icons/${id}.js';\r\n`;
|
|
165
167
|
fs.appendFileSync(
|
|
@@ -197,31 +199,33 @@ icons.forEach((i) => {
|
|
|
197
199
|
}
|
|
198
200
|
}
|
|
199
201
|
`;
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
202
|
+
prettier
|
|
203
|
+
.format(iconElement, {
|
|
204
|
+
printWidth: 100,
|
|
205
|
+
tabWidth: 2,
|
|
206
|
+
useTabs: false,
|
|
207
|
+
semi: true,
|
|
208
|
+
singleQuote: true,
|
|
209
|
+
trailingComma: 'all',
|
|
210
|
+
bracketSpacing: true,
|
|
211
|
+
jsxBracketSameLine: false,
|
|
212
|
+
arrowParens: 'avoid',
|
|
213
|
+
parser: 'typescript',
|
|
214
|
+
})
|
|
215
|
+
.then((iconElementFile) => {
|
|
216
|
+
fs.writeFileSync(
|
|
217
|
+
path.join(
|
|
218
|
+
rootDir,
|
|
219
|
+
'packages',
|
|
220
|
+
'icons-workflow',
|
|
221
|
+
'src',
|
|
222
|
+
'elements',
|
|
223
|
+
`Icon${id}.ts`
|
|
224
|
+
),
|
|
225
|
+
iconElementFile,
|
|
226
|
+
'utf-8'
|
|
227
|
+
);
|
|
228
|
+
});
|
|
225
229
|
|
|
226
230
|
const iconRegistration = `
|
|
227
231
|
${disclaimer}
|
|
@@ -237,30 +241,33 @@ icons.forEach((i) => {
|
|
|
237
241
|
}
|
|
238
242
|
}
|
|
239
243
|
`;
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
244
|
+
prettier
|
|
245
|
+
.format(iconRegistration, {
|
|
246
|
+
printWidth: 100,
|
|
247
|
+
tabWidth: 2,
|
|
248
|
+
useTabs: false,
|
|
249
|
+
semi: true,
|
|
250
|
+
singleQuote: true,
|
|
251
|
+
trailingComma: 'all',
|
|
252
|
+
bracketSpacing: true,
|
|
253
|
+
jsxBracketSameLine: false,
|
|
254
|
+
arrowParens: 'avoid',
|
|
255
|
+
parser: 'typescript',
|
|
256
|
+
})
|
|
257
|
+
.then((iconRegistrationFile) => {
|
|
258
|
+
fs.writeFileSync(
|
|
259
|
+
path.join(
|
|
260
|
+
rootDir,
|
|
261
|
+
'packages',
|
|
262
|
+
'icons-workflow',
|
|
263
|
+
'icons',
|
|
264
|
+
`${iconElementName}.ts`
|
|
265
|
+
),
|
|
266
|
+
iconRegistrationFile,
|
|
267
|
+
'utf-8'
|
|
268
|
+
);
|
|
269
|
+
});
|
|
252
270
|
|
|
253
|
-
fs.writeFileSync(
|
|
254
|
-
path.join(
|
|
255
|
-
rootDir,
|
|
256
|
-
'packages',
|
|
257
|
-
'icons-workflow',
|
|
258
|
-
'icons',
|
|
259
|
-
`${iconElementName}.ts`
|
|
260
|
-
),
|
|
261
|
-
iconRegistrationFile,
|
|
262
|
-
'utf-8'
|
|
263
|
-
);
|
|
264
271
|
const importStatement = `\r\nimport '@spectrum-web-components/icons-workflow/icons/${iconElementName}.js';`;
|
|
265
272
|
const metadata = `{name: '${Case.sentence(
|
|
266
273
|
ComponentName
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/icons-workflow",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"lit-html"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@spectrum-web-components/base": "^0.42.
|
|
48
|
-
"@spectrum-web-components/icon": "^0.42.
|
|
47
|
+
"@spectrum-web-components/base": "^0.42.3",
|
|
48
|
+
"@spectrum-web-components/icon": "^0.42.3"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@adobe/spectrum-css-workflow-icons": "^1.5.4",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"fast-glob": "^3.2.12",
|
|
56
56
|
"fs": "^0.0.1-security",
|
|
57
57
|
"path": "^0.12.7",
|
|
58
|
-
"prettier": "^
|
|
58
|
+
"prettier": "^3.0.0"
|
|
59
59
|
},
|
|
60
60
|
"types": "./src/index.d.ts",
|
|
61
61
|
"customElements": "custom-elements.json",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"./src/index.js",
|
|
64
64
|
"./icons/*"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "a03edce4f21f232f1705d8eb222e6e5436cad4c3"
|
|
67
67
|
}
|
package/src/custom-tag.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { html, TemplateResult } from '@spectrum-web-components/base';
|
|
2
2
|
export type { TemplateResult };
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export type GenericTemplateLiteralTagType = (strings: TemplateStringsArray, ...values: unknown[]) => string;
|
|
4
|
+
type TemplateLiteralTagType = GenericTemplateLiteralTagType | typeof html;
|
|
5
5
|
export declare const tag: (strings: TemplateStringsArray, ...values: unknown[]) => string | TemplateResult;
|
|
6
6
|
export declare const setCustomTemplateLiteralTag: (tag: TemplateLiteralTagType) => void;
|