@navikt/aksel 2.9.0 → 2.9.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.
@@ -43,6 +43,11 @@ export function cssImportsCommand() {
43
43
  { message: "Partial control (global)", name: "easy" },
44
44
  { message: "Full control (global + components)", name: "advanced" },
45
45
  ],
46
+ footer() {
47
+ return chalk.grey(`${chalk.cyan(`\n Documentation:`)}\n Regular: https://aksel.nav.no/grunnleggende/kode/css-import
48
+ Partial: https://aksel.nav.no/grunnleggende/kode/css-import#h64650b1a4ad6
49
+ Full: https://aksel.nav.no/grunnleggende/kode/css-import#h4037598416ef\n`);
50
+ },
46
51
  },
47
52
  {
48
53
  type: "select",
@@ -8,9 +8,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import Enquirer from "enquirer";
11
+ import chalk from "chalk";
11
12
  export function inquiry(answers, questions) {
12
13
  return __awaiter(this, void 0, void 0, function* () {
13
- return yield Enquirer.prompt(questions.map((x) => (Object.assign(Object.assign({}, x), { cancel: () => process.exit(1) }))))
14
+ return yield Enquirer.prompt(questions.map((x) => (Object.assign(Object.assign({}, x), { cancel: () => process.exit(1), header: `\n${chalk.gray("Command 'css-imports' will not edit your files directly!")}\n` }))))
14
15
  .then((a) => {
15
16
  Object.entries(a).forEach(([key, value]) => {
16
17
  answers[key] = value;
package/dist/help.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import chalk from "chalk";
2
+ import figlet from "figlet";
2
3
  export function helpCommand() {
4
+ console.log(figlet.textSync("Aksel CLI"));
3
5
  console.log(`
4
- ✨ Aksel client-tool
5
-
6
6
  📝 Documentation
7
7
  - ${chalk.blueBright("https://aksel.nav.no/grunnleggende/kode/kommandolinje")}
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/aksel",
3
- "version": "2.9.0",
3
+ "version": "2.9.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",
@@ -28,12 +28,13 @@
28
28
  "type": "module",
29
29
  "homepage": "https://aksel.nav.no/grunnleggende/kode/kommandolinje",
30
30
  "dependencies": {
31
- "@navikt/ds-css": "2.9.0",
31
+ "@navikt/ds-css": "2.9.2",
32
32
  "axios": "1.3.6",
33
33
  "chalk": "4.1.0",
34
34
  "clipboardy": "^3.0.0",
35
35
  "enquirer": "^2.3.6",
36
36
  "fast-glob": "3.2.11",
37
+ "figlet": "1.6.0",
37
38
  "lodash": "4.17.21",
38
39
  "react-scanner": "^1.1.0"
39
40
  },