storybook-nuxt
Advanced tools
Comparing version 0.0.5 to 0.0.6-alpha.0
18
init.js
#!/usr/bin/env node | ||
/* eslint-disable @typescript-eslint/indent */ | ||
const fs = require('node:fs') | ||
@@ -77,4 +75,3 @@ const path = require('node:path') | ||
logger.error(`${CROSSMARK} Package installation failed with code ${code}`) | ||
} | ||
else { | ||
} else { | ||
logger.log(`${CHECKMARK} Packages installed successfully!`) | ||
@@ -137,4 +134,3 @@ | ||
logger.log(`${CHECKMARK} Storybook devDependencies added to package.json `) | ||
} | ||
else { | ||
} else { | ||
logger.log(`${CROSSMARK} Sorry, this feature is currently only supported with pnpm.`) | ||
@@ -155,4 +151,3 @@ } | ||
logger.log(`${CHECKMARK} Storybook scripts added to package.json `) | ||
} | ||
else { | ||
} else { | ||
logger.log(`${CROSSMARK} Sorry, this feature is currently only supported with pnpm.`) | ||
@@ -166,2 +161,4 @@ } | ||
const targetDir = path.join(process.cwd(), storiesPath) | ||
logger.log(`${CHECKMARK} templateDir: ${templateDir} `) | ||
logger.log(`${CHECKMARK} targetDir: ${targetDir} `) | ||
copyFolderRecursive(templateDir, targetDir) | ||
@@ -192,4 +189,3 @@ // Copy the common assets to the project root | ||
fs.copyFileSync(sourceFilePath, destinationFilePath) | ||
} | ||
else if (stats.isDirectory()) { | ||
} else if (stats.isDirectory()) { | ||
// If it's a directory, recursively copy it | ||
@@ -203,2 +199,2 @@ copyFolderRecursive(sourceFilePath, destinationFilePath) | ||
module.exports = { initStorybook } | ||
module.exports = { initStorybook } |
{ | ||
"name": "storybook-nuxt", | ||
"version": "0.0.5", | ||
"version": "0.0.6-alpha.0", | ||
"description": "Storybook init CLI for Nuxt ", | ||
@@ -18,3 +18,3 @@ "author": "Chakas@", | ||
"init.js", | ||
".storybook/*" | ||
".storybook/**/*" | ||
], | ||
@@ -21,0 +21,0 @@ "dependencies": { |
67331
309