@navikt/aksel
Advanced tools
Comparing version 2.8.16-rc.1 to 2.8.16-rc.2
@@ -15,3 +15,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import lodash from "lodash"; | ||
import chalk from "chalk"; | ||
export function generateImportOutput(answers) { | ||
@@ -52,7 +51,7 @@ return __awaiter(this, void 0, void 0, function* () { | ||
if (answers.output.includes("print")) { | ||
console.log(chalk.bold.cyan(`\nImports 🚀 \n`)); | ||
console.log(chalk.green(`${importStr}`)); | ||
console.log("..."); | ||
console.log(importStr); | ||
} | ||
if (useCdn) { | ||
console.log(chalk.bold.underline.cyan(`\nNotes on CDN-usage 📝`)); | ||
console.log(`\nNotes on CDN-usage 📝`); | ||
console.log(`We recommend using Static imports, then uploading the your bundled static-files to your own CDN-instance. | ||
@@ -63,4 +62,4 @@ ✔︎ This allows you to control the version of the CSS-files with package.json, and avoids desync between ds-react/ds-css. | ||
if (useTailwind) { | ||
console.log(chalk.bold.underline.cyan(`\nNotes on Tailwind-use 📝`)); | ||
console.log(`When using tailwind with Aksel, you will need to add the postcss plugin ${chalk.cyan("postcss-import")} | ||
console.log(`\nNotes on Tailwind-use 📝`); | ||
console.log(`When using tailwind with Aksel, you will need to add the postcss plugin ${"postcss-import"} | ||
✔︎ NPM: https://www.npmjs.com/package/postcss-import | ||
@@ -67,0 +66,0 @@ ✔︎ Read more here: https://aksel.nav.no/grunnleggende/kode/tailwind`); |
@@ -19,3 +19,3 @@ #!/usr/bin/env node | ||
import { getAllVersions } from "./get-version.js"; | ||
import chalk from "chalk"; | ||
/* import chalk from "chalk"; */ | ||
import { getDirectories } from "./get-directories.js"; | ||
@@ -98,3 +98,3 @@ const __filename = fileURLToPath(import.meta.url); | ||
footer() { | ||
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.'); | ||
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.'; | ||
}, | ||
@@ -131,3 +131,3 @@ }, | ||
footer() { | ||
return chalk.grey("filtered out: node_moduels, dist, build, lib, .* (dotfiles)"); | ||
return "filtered out: node_moduels, dist, build, lib, .* (dotfiles)"; | ||
}, | ||
@@ -134,0 +134,0 @@ }, |
@@ -1,2 +0,1 @@ | ||
import chalk from "chalk"; | ||
console.log(` | ||
@@ -6,6 +5,6 @@ ✨ Aksel client-tool | ||
📝 Documentation | ||
- ${chalk.blueBright("https://github.com/navikt/aksel/blob/main/%40navikt/aksel/README.md")} | ||
- "https://github.com/navikt/aksel/blob/main/%40navikt/aksel/README.md" | ||
💻 Commands: | ||
- ${chalk.cyan(`npx @navikt/aksel ${chalk.green("css-imports")}`)} | ||
- npx @navikt/aksel ${"css-imports"} | ||
✔︎ Helps with adding CSS imports for all Aksel-components | ||
@@ -15,1 +14,2 @@ ✔︎ Supports Static and CDN-imports | ||
`); | ||
export {}; |
{ | ||
"name": "@navikt/aksel", | ||
"version": "2.8.16-rc.1", | ||
"version": "2.8.16-rc.2", | ||
"description": "Aksel command line interface. Handles css-imports, codemods (planned) and more", | ||
@@ -5,0 +5,0 @@ "author": "Aksel | NAV designsystem team", |
21204
444