boilersuit
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -9,3 +9,3 @@ #!/usr/bin/env node | ||
program.version('0.3.1'); | ||
program.version('0.3.2'); | ||
@@ -12,0 +12,0 @@ program |
{ | ||
"name": "boilersuit", | ||
"description": "A CLI tool for generating selectors, reducers, actions, constants and sagas in react-boilerplate", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "author": "matt <matt.pocock@thevirtualforge.com>", |
@@ -1,3 +0,23 @@ | ||
<div style="text-align: center"><img src="https://raw.githubusercontent.com/mattpocock/boilersuit/master/logo.png" height="240px" alt="boilerplate logo"/></div> | ||
<div style="text-align: center"><img src="https://raw.githubusercontent.com/mattpocock/boilersuit/master/logo.png" max-height="240px" alt="boilerplate logo"/></div> | ||
## What Is Boilersuit? | ||
Ever felt like you were writing too much boring, repetitive code just to get react-boilerplate working? | ||
Ever wasted hours on a debug in a reducer caused by a typo? | ||
Ever wished that you could edit just one file, instead of ten? | ||
Enter boilersuit, the blazingly-fast, bug-proof way of working with Redux in react-boilerplate. | ||
**Don't write ten files, write one.** Define your state and actions in a JSON file and watch as your code writes itself. | ||
**Instant updates.** Typing `suit up` in your root directory makes boilersuit watch your files for changes. Need to change the name of an action? Just change it in the `suit.json` file and watch it change across your file system. | ||
**Automagical unit tests.** Working, comprehensive unit tests appear automatically as your JSON file changes. | ||
**Prevent stupid mistakes.** Suit knows if you've done a silly. Trying to change a piece of state that doesn't exist? Boilersuit will catch it. Got an action that doesn't do anything? Boilersuit will catch it. | ||
**Instant documentation.** Need to know how a reducer works? Just check the JSON file in the directory. Boilersuit can even be configured to request code comments, enforcing amazing documentation on large projects. | ||
## How To Use Boilersuit - Video | ||
@@ -4,0 +24,0 @@ |
@@ -12,3 +12,3 @@ const { concat } = require('./utils'); | ||
if ( | ||
typeof config.showDescribeWarnings !== 'undefined' || | ||
typeof config.showDescribeWarnings !== 'undefined' && | ||
config.showDescribeWarnings | ||
@@ -42,4 +42,4 @@ ) { | ||
if ( | ||
typeof config.stopDescribeWarning === 'undefined' || | ||
!config.stopDescribeWarning | ||
typeof config.showDescribeWarnings !== 'undefined' && | ||
config.showDescribeWarnings | ||
) { | ||
@@ -46,0 +46,0 @@ if (!action.describe && (action.passAsProp || notUsingPassAsProp)) { |
@@ -178,2 +178,9 @@ const concat = array => array.filter(line => line !== null).join(`\n`); | ||
.replace( | ||
new RegExp( | ||
concat([`// @suit-name-only-end`, ``, `// @suit-name-only-start`]), | ||
'g', | ||
), | ||
'', | ||
) | ||
.replace( | ||
new RegExp(concat([`// @suit-end`, ``, `// @suit-start`]), 'g'), | ||
@@ -180,0 +187,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
437904
2722
415