@digdir/designsystemet 1.7.0 → 1.7.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/dist/bin/designsystemet.d.ts +1 -1
- package/dist/bin/designsystemet.d.ts.map +1 -1
- package/dist/bin/designsystemet.js +17 -1
- package/dist/src/index.js +1 -1
- package/dist/src/tokens/build.js +1 -1
- package/dist/src/tokens/create/generators/$designsystemet.js +1 -1
- package/dist/src/tokens/create/write.js +1 -1
- package/dist/src/tokens/format.js +1 -1
- package/dist/src/tokens/index.js +1 -1
- package/dist/src/tokens/process/output/declarations.js +1 -1
- package/dist/src/tokens/process/output/theme.js +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export
|
|
2
|
+
export declare const figletAscii = "\n _____ _ _ _\n| __ \\ (_) | | | |\n| | | | ___ ___ _ __ _ _ __ ___ _ _ ___| |_ ___ _ __ ___ ___| |_\n| | | |/ _ \\/ __| |/ _` | '_ \\/ __| | | / __| __/ _ \\ '_ ` _ \\ / _ \\ __|\n| |__| | __/\\__ \\ | (_| | | | \\__ \\ |_| \\__ \\ || __/ | | | | | __/ |_\n|_____/ \\___||___/_|\\__, |_| |_|___/\\__, |___/\\__\\___|_| |_| |_|\\___|\\__|\n __/ | __/ |\n |___/ |___/\n";
|
|
3
3
|
//# sourceMappingURL=designsystemet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"designsystemet.d.ts","sourceRoot":"","sources":["../../bin/designsystemet.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"designsystemet.d.ts","sourceRoot":"","sources":["../../bin/designsystemet.ts"],"names":[],"mappings":";AAcA,eAAO,MAAM,WAAW,4iBASvB,CAAC"}
|
|
@@ -861,7 +861,7 @@ import pc5 from "picocolors";
|
|
|
861
861
|
// package.json
|
|
862
862
|
var package_default = {
|
|
863
863
|
name: "@digdir/designsystemet",
|
|
864
|
-
version: "1.7.
|
|
864
|
+
version: "1.7.1",
|
|
865
865
|
description: "CLI for Designsystemet",
|
|
866
866
|
author: "Designsystemet team",
|
|
867
867
|
engines: {
|
|
@@ -4543,6 +4543,16 @@ async function parseBuildConfig(configFile, { configPath }) {
|
|
|
4543
4543
|
}
|
|
4544
4544
|
|
|
4545
4545
|
// bin/designsystemet.ts
|
|
4546
|
+
var figletAscii = `
|
|
4547
|
+
_____ _ _ _
|
|
4548
|
+
| __ \\ (_) | | | |
|
|
4549
|
+
| | | | ___ ___ _ __ _ _ __ ___ _ _ ___| |_ ___ _ __ ___ ___| |_
|
|
4550
|
+
| | | |/ _ \\/ __| |/ _\` | '_ \\/ __| | | / __| __/ _ \\ '_ \` _ \\ / _ \\ __|
|
|
4551
|
+
| |__| | __/\\__ \\ | (_| | | | \\__ \\ |_| \\__ \\ || __/ | | | | | __/ |_
|
|
4552
|
+
|_____/ \\___||___/_|\\__, |_| |_|___/\\__, |___/\\__\\___|_| |_| |_|\\___|\\__|
|
|
4553
|
+
__/ | __/ |
|
|
4554
|
+
|___/ |___/
|
|
4555
|
+
`;
|
|
4546
4556
|
program.name("designsystemet").description("CLI for working with Designsystemet").showHelpAfterError();
|
|
4547
4557
|
var DEFAULT_TOKENS_CREATE_DIR = "./design-tokens";
|
|
4548
4558
|
var DEFAULT_TOKENS_BUILD_DIR = "./design-tokens-build";
|
|
@@ -4556,6 +4566,7 @@ function makeTokenCommands() {
|
|
|
4556
4566
|
`Output directory for built ${pc11.blue("design-tokens")}`,
|
|
4557
4567
|
DEFAULT_TOKENS_BUILD_DIR
|
|
4558
4568
|
).option(`--${cliOptions.clean} [boolean]`, "Clean output directory before building tokens", parseBoolean, false).option("--dry [boolean]", `Dry run for built ${pc11.blue("design-tokens")}`, parseBoolean, false).option("--verbose", "Enable verbose output", false).option("--config <string>", `Path to config file (default: "${DEFAULT_CONFIG_FILE}")`).option("--experimental-tailwind", "Generate Tailwind CSS classes for tokens", false).action(async (opts) => {
|
|
4569
|
+
console.log(figletAscii);
|
|
4559
4570
|
const { verbose, clean, dry, experimentalTailwind } = opts;
|
|
4560
4571
|
const tokensDir = typeof opts.tokens === "string" ? opts.tokens : DEFAULT_TOKENS_CREATE_DIR;
|
|
4561
4572
|
const outDir = typeof opts.outDir === "string" ? opts.outDir : "./dist/tokens";
|
|
@@ -4580,6 +4591,7 @@ function makeTokenCommands() {
|
|
|
4580
4591
|
(radiusAsString) => Number(radiusAsString),
|
|
4581
4592
|
4
|
|
4582
4593
|
).option("--theme <string>", "Theme name (ignored when using JSON config file)", DEFAULT_THEME_NAME).option("--config <string>", `Path to config file (default: "${DEFAULT_CONFIG_FILE}")`).action(async (opts, cmd) => {
|
|
4594
|
+
console.log(figletAscii);
|
|
4583
4595
|
if (opts.dry) {
|
|
4584
4596
|
console.log(`Performing dry run, no files will be written`);
|
|
4585
4597
|
}
|
|
@@ -4604,6 +4616,7 @@ function makeTokenCommands() {
|
|
|
4604
4616
|
}
|
|
4605
4617
|
program.addCommand(makeTokenCommands());
|
|
4606
4618
|
program.command("migrate").description("run a Designsystemet migration").addArgument(new Argument("[migration]", "Available migrations").choices(Object.keys(migrations_default))).option("-l --list", "List available migrations").option("-g --glob <glob>", "Glob for files upon which to apply the migration", "./**/*.(tsx|css)").action((migrationKey, opts) => {
|
|
4619
|
+
console.log(figletAscii);
|
|
4607
4620
|
const { glob: glob2, list } = opts;
|
|
4608
4621
|
if (list) {
|
|
4609
4622
|
for (const key of Object.keys(migrations_default)) {
|
|
@@ -4636,3 +4649,6 @@ async function getConfigFile(config) {
|
|
|
4636
4649
|
const configFile = await readConfigFile(configPath, allowFileNotFound);
|
|
4637
4650
|
return { configFile, configPath };
|
|
4638
4651
|
}
|
|
4652
|
+
export {
|
|
4653
|
+
figletAscii
|
|
4654
|
+
};
|
package/dist/src/index.js
CHANGED
|
@@ -2402,7 +2402,7 @@ import * as R9 from "ramda";
|
|
|
2402
2402
|
// package.json
|
|
2403
2403
|
var package_default = {
|
|
2404
2404
|
name: "@digdir/designsystemet",
|
|
2405
|
-
version: "1.7.
|
|
2405
|
+
version: "1.7.1",
|
|
2406
2406
|
description: "CLI for Designsystemet",
|
|
2407
2407
|
author: "Designsystemet team",
|
|
2408
2408
|
engines: {
|
package/dist/src/tokens/build.js
CHANGED
|
@@ -46,7 +46,7 @@ var readFile = async (path2, dry, allowFileNotFound) => {
|
|
|
46
46
|
// package.json
|
|
47
47
|
var package_default = {
|
|
48
48
|
name: "@digdir/designsystemet",
|
|
49
|
-
version: "1.7.
|
|
49
|
+
version: "1.7.1",
|
|
50
50
|
description: "CLI for Designsystemet",
|
|
51
51
|
author: "Designsystemet team",
|
|
52
52
|
engines: {
|
|
@@ -2190,7 +2190,7 @@ import * as R8 from "ramda";
|
|
|
2190
2190
|
// package.json
|
|
2191
2191
|
var package_default = {
|
|
2192
2192
|
name: "@digdir/designsystemet",
|
|
2193
|
-
version: "1.7.
|
|
2193
|
+
version: "1.7.1",
|
|
2194
2194
|
description: "CLI for Designsystemet",
|
|
2195
2195
|
author: "Designsystemet team",
|
|
2196
2196
|
engines: {
|
package/dist/src/tokens/index.js
CHANGED
|
@@ -2206,7 +2206,7 @@ import * as R8 from "ramda";
|
|
|
2206
2206
|
// package.json
|
|
2207
2207
|
var package_default = {
|
|
2208
2208
|
name: "@digdir/designsystemet",
|
|
2209
|
-
version: "1.7.
|
|
2209
|
+
version: "1.7.1",
|
|
2210
2210
|
description: "CLI for Designsystemet",
|
|
2211
2211
|
author: "Designsystemet team",
|
|
2212
2212
|
engines: {
|