create-bento
Advanced tools
Comparing version 1.0.4 to 1.0.6
@@ -15,2 +15,3 @@ #!/usr/bin/env node | ||
const { version } = require("../package.json"); | ||
const which = require("which"); | ||
@@ -37,2 +38,8 @@ async function cli() { | ||
let manager = "npm"; | ||
if (which.sync("yarn", { nothrow: true })) { | ||
manager = "yarn"; | ||
} | ||
// prompt required info | ||
@@ -80,2 +87,3 @@ const info = await inquirer.prompt([ | ||
templateFile({ | ||
manager, | ||
...info | ||
@@ -114,6 +122,15 @@ }), | ||
console.log(` | ||
Your project has been created in ${destination}. | ||
To get started run: ${chalk.blue( | ||
`cd ${folder} && yarn && yarn run storybook` | ||
)} | ||
Right on! Your library has been created in ${destination}. | ||
To get started: | ||
Enter the newly created directory | ||
${chalk.blue(`cd ${folder}`)} | ||
Install the dependencies | ||
${chalk.blue(`${manager}`)} | ||
Run storybook | ||
${chalk.blue(`${manager} run storybook`)} | ||
`); | ||
@@ -120,0 +137,0 @@ } |
{ | ||
"name": "create-bento", | ||
"version": "1.0.4", | ||
"version": "1.0.6", | ||
"description": "Bootstrap your react libraries with typescript and storybook", | ||
@@ -30,4 +30,5 @@ "main": "index.js", | ||
"ora": "^3.2.0", | ||
"p-each-series": "^2.0.0" | ||
"p-each-series": "^2.0.0", | ||
"which": "^1.3.1" | ||
} | ||
} |
@@ -7,8 +7,9 @@ # Create Bento | ||
Currently, `create-bento` requires yarn. Create a new library using the following command: | ||
Create a new library using the following command: | ||
``` | ||
yarn create bento my-library-name | ||
yarn global add create-bento | ||
create-bento my-project-name | ||
``` | ||
And then follow the provided instructions to get started working on your library. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57150
122
15
11
+ Addedwhich@^1.3.1