generate-react-cli
Advanced tools
Comparing version
@@ -5,2 +5,4 @@ # Changelog | ||
### [3.0.1](https://github.com/arminbro/generate-react-cli/compare/v3.0.0...v3.0.1) (2020-03-14) | ||
## [3.0.0](https://github.com/arminbro/generate-react-cli/compare/v2.0.2...v3.0.0) (2019-12-14) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "generate-react-cli", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "A simple React CLI to generate components instantly and more.", | ||
@@ -48,28 +48,28 @@ "repository": "https://github.com/arminbro/generate-react-cli", | ||
"chalk": "^3.0.0", | ||
"commander": "^4.0.1", | ||
"commander": "^5.0.0", | ||
"deep-keys": "^0.5.0", | ||
"fs-extra": "^8.1.0", | ||
"inquirer": "^7.0.0", | ||
"inquirer": "^7.1.0", | ||
"lodash": "^4.17.15", | ||
"replace": "^1.1.1" | ||
"replace": "^1.1.5" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.7.5", | ||
"@babel/core": "^7.7.5", | ||
"@babel/preset-env": "^7.7.6", | ||
"@commitlint/cli": "^8.2.0", | ||
"@commitlint/config-conventional": "^8.2.0", | ||
"babel-eslint": "^10.0.3", | ||
"eslint": "^6.7.2", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-config-prettier": "^6.7.0", | ||
"eslint-plugin-import": "^2.19.1", | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.8.7", | ||
"@babel/preset-env": "^7.8.7", | ||
"@commitlint/cli": "^8.3.5", | ||
"@commitlint/config-conventional": "^8.3.4", | ||
"babel-eslint": "^10.1.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-airbnb-base": "^14.1.0", | ||
"eslint-config-prettier": "^6.10.0", | ||
"eslint-plugin-import": "^2.20.1", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"husky": "^3.1.0", | ||
"jest": "^24.9.0", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"husky": "^4.2.3", | ||
"jest": "^25.1.0", | ||
"prettier": "^1.19.1", | ||
"pretty-quick": "^2.0.1", | ||
"rimraf": "^3.0.0", | ||
"standard-version": "^7.0.1" | ||
"rimraf": "^3.0.2", | ||
"standard-version": "^7.1.0" | ||
}, | ||
@@ -76,0 +76,0 @@ "babel": { |
const program = require('commander'); | ||
const chalk = require('chalk'); | ||
const pkg = require('../package.json'); | ||
@@ -10,3 +9,2 @@ const { generateComponent } = require('./actions/componentActions'); | ||
const { component } = cliConfigFile; | ||
let commandNotFound = true; | ||
@@ -27,14 +25,5 @@ program.version(pkg.version); | ||
.action((componentName, cmd) => generateComponent(cmd, cliConfigFile, componentName)) | ||
.action(() => { | ||
commandNotFound = false; | ||
}); | ||
.action((componentName, cmd) => generateComponent(cmd, cliConfigFile, componentName)); | ||
program.parse(args); | ||
if (commandNotFound) { | ||
console.error(chalk.red('Command not found.')); | ||
console.log(`Run ${chalk.green('generate-react --help')} to see a list of the commmands you can run.`); | ||
process.exit(1); | ||
} | ||
}; |
32632
-0.71%493
-1.99%+ Added
- Removed
Updated
Updated
Updated