boilersuit
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -83,3 +83,3 @@ const colors = require('colors'); // eslint-disable-line | ||
const errors = [...checkErrorsInSchema(schema), ...checkIfBadBuffer(folder)]; | ||
const errors = [...checkErrorsInSchema(schema, folder), ...checkIfBadBuffer(folder)]; | ||
@@ -86,0 +86,0 @@ if (errors.length) { |
12
index.js
@@ -7,4 +7,5 @@ #!/usr/bin/env node | ||
const ajax = require('./commands/ajax'); | ||
const rm = require('./commands/rm'); | ||
program.version('0.2.3'); | ||
program.version('0.2.4'); | ||
@@ -34,2 +35,3 @@ program.command('up').action(() => { | ||
process.stdout.write('\x1Bc'); | ||
// Gets the relative path | ||
const relativePath = Object.keys(relativePaths).filter(path => | ||
@@ -48,2 +50,10 @@ schemaFile.includes(path), | ||
program.command('remove <folder>').action(folder => { | ||
rm(folder); | ||
}); | ||
program.command('rm <folder>').action(folder => { | ||
rm(folder); | ||
}); | ||
program.command('field').action(() => { | ||
@@ -50,0 +60,0 @@ console.log('The field command has been deprecated'); |
{ | ||
"name": "boilersuit", | ||
"description": "A CLI tool for generating selectors, reducers, actions, constants and sagas in react-boilerplate", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "author": "matt <matt.pocock@thevirtualforge.com>", |
const { concat } = require('./utils'); | ||
const rm = require('../commands/rm'); | ||
module.exports = schema => { | ||
module.exports = (schema, folder) => { | ||
const errors = []; | ||
@@ -15,2 +16,3 @@ if (!Object.keys(schema).length) { | ||
); | ||
rm(folder, { silent: true }); | ||
return errors; | ||
@@ -17,0 +19,0 @@ } |
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
267259
36
1931
7