@botmock-api/export-cli
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -1,2 +0,2 @@ | ||
#! /usr/bin/env node | ||
#!/usr/bin/env node | ||
const prompts = require('prompts'); | ||
@@ -23,3 +23,3 @@ const chalk = require('chalk'); | ||
name: 'nodeVersion', | ||
message: `What's the node.js version it requires?`, | ||
message: `What's the minimum node.js version it requires?`, | ||
validate: str => | ||
@@ -56,8 +56,8 @@ isNaN(parseInt(str)) ? `${str} must be a number` : true | ||
process.chdir(NEW_PROJECT_DIRECTORY); | ||
await promisify(exec)('npm install'); | ||
console.log( | ||
chalk.dim( | ||
`installing dependencies in ${chalk.bold(NEW_PROJECT_DIRECTORY)}` | ||
`installing dependencies in ${chalk.bold(NEW_PROJECT_DIRECTORY)}...` | ||
) | ||
); | ||
await promisify(exec)('npm install'); | ||
process.chdir('../'); | ||
@@ -64,0 +64,0 @@ console.log(chalk.dim(`created ${chalk.bold(NEW_PROJECT_DIRECTORY)}`)); |
{ | ||
"name": "@botmock-api/export-cli", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Scaffold Botmock export scripts", | ||
@@ -5,0 +5,0 @@ "bin": "index.js", |
@@ -5,4 +5,12 @@ # Export-CLI | ||
Install by running | ||
```console | ||
npm i -g @botmock-api/export-cli | ||
``` | ||
And then run the following (one level up from where you would like to create your project) | ||
```console | ||
export-cli | ||
``` |
12436
16