@navikt/aksel 2.8.16-rc.0 → 2.8.16-rc.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Aksel command line interface
2
2
 
3
- CLI tool for managing CSS-imports and more from when consuming Aksel-packages.
3
+ CLI tool for managing CSS-imports and more when consuming Aksel-packages.
4
4
 
5
5
  [Documentation](https://aksel.nav.no/preview/grunnleggende/kode/kommandolinje)
6
6
 
@@ -9,7 +9,7 @@ run:
9
9
  npx @navikt/aksel
10
10
 
11
11
  commands:
12
- css-imports: Generate css-imports for all components used from Aksel
12
+ css-imports: Generate css-imports for all components from Aksel
13
13
  ```
14
14
 
15
15
  ## License
@@ -12,7 +12,6 @@ import { formCss, typoCss, componentsCss, StyleMappings, componentDir, rootDir,
12
12
  import { inquiry } from "./inquiry.js";
13
13
  import clipboard from "clipboardy";
14
14
  import lodash from "lodash";
15
- import chalk from "chalk";
16
15
  export function generateImportOutput(answers) {
17
16
  return __awaiter(this, void 0, void 0, function* () {
18
17
  const useCdn = answers.cdn === "yes";
@@ -48,18 +47,18 @@ ${imports.join("\n")}
48
47
  importStr = imports.join("\n");
49
48
  }
50
49
  if (answers.output.includes("print")) {
51
- console.log(chalk.bold.cyan(`\nImports 🚀 \n`));
52
- console.log(chalk.green(`${importStr}`));
50
+ console.log("...");
51
+ console.log(importStr);
53
52
  }
54
53
  if (useCdn) {
55
- console.log(chalk.bold.underline.cyan(`\nNotes on CDN-usage 📝`));
54
+ console.log(`\nNotes on CDN-usage 📝`);
56
55
  console.log(`We recommend using Static imports, then uploading the your bundled static-files to your own CDN-instance.
57
56
  ✔︎ This allows you to control the version of the CSS-files with package.json, and avoids desync between ds-react/ds-css.
58
57
  ✔︎ Remember to add 'https://cdn.nav.no' to your applications CSP!`);
59
58
  }
60
59
  if (useTailwind) {
61
- console.log(chalk.bold.underline.cyan(`\nNotes on Tailwind-use 📝`));
62
- console.log(`When using tailwind with Aksel, you will need to add the postcss plugin ${chalk.cyan("postcss-import")}
60
+ console.log(`\nNotes on Tailwind-use 📝`);
61
+ console.log(`When using tailwind with Aksel, you will need to add the postcss plugin ${"postcss-import"}
63
62
  ✔︎ NPM: https://www.npmjs.com/package/postcss-import
64
63
  ✔︎ Read more here: https://aksel.nav.no/grunnleggende/kode/tailwind`);
65
64
  }
@@ -16,7 +16,7 @@ import { exec } from "child_process";
16
16
  import { fileURLToPath } from "url";
17
17
  import { dirname } from "path";
18
18
  import { getAllVersions } from "./get-version.js";
19
- import chalk from "chalk";
19
+ /* import chalk from "chalk"; */
20
20
  import { getDirectories } from "./get-directories.js";
21
21
  const __filename = fileURLToPath(import.meta.url);
22
22
  const __dirname = dirname(__filename);
@@ -94,7 +94,7 @@ function main() {
94
94
  initial: 0,
95
95
  choices: versions,
96
96
  footer() {
97
- return chalk.grey('Remember to match version with @navikt/ds-react!\nNote: CDN was introduced in v2.9.0, older versions not available.\nUse "static" import instead.');
97
+ return 'Remember to match version with @navikt/ds-react!\nNote: CDN was introduced in v2.9.0, older versions not available.\nUse "static" import instead.';
98
98
  },
99
99
  },
100
100
  ]);
@@ -126,7 +126,7 @@ function main() {
126
126
  initial: 0,
127
127
  choices: getDirectories(),
128
128
  footer() {
129
- return chalk.grey("filtered out: node_moduels, dist, build, lib, .* (dotfiles)");
129
+ return "filtered out: node_moduels, dist, build, lib, .* (dotfiles)";
130
130
  },
131
131
  },
132
132
  ]));
package/dist/help.js CHANGED
@@ -1,13 +1,13 @@
1
- import chalk from "chalk";
2
1
  console.log(`
3
2
  ✨ Aksel client-tool
4
3
 
5
4
  📝 Documentation
6
- - ${chalk.blueBright("https://github.com/navikt/aksel/blob/main/%40navikt/aksel/README.md")}
5
+ - "https://github.com/navikt/aksel/blob/main/%40navikt/aksel/README.md"
7
6
 
8
7
  💻 Commands:
9
- - ${chalk.cyan(`npx @navikt/aksel ${chalk.green("css-imports")}`)}
8
+ - npx @navikt/aksel ${"css-imports"}
10
9
  ✔︎ Helps with adding CSS imports for all Aksel-components
11
10
  ✔︎ Supports Static and CDN-imports
12
11
  ✔︎ Handles cascading, talwind and @layer rules
13
12
  `);
13
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/aksel",
3
- "version": "2.8.16-rc.0",
3
+ "version": "2.8.16-rc.2",
4
4
  "description": "Aksel command line interface. Handles css-imports, codemods (planned) and more",
5
5
  "author": "Aksel | NAV designsystem team",
6
6
  "license": "MIT",