boilersuit
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -39,9 +39,11 @@ const { | ||
}, | ||
b => b.replace('\t', ' '), | ||
/** Get actions into mapDispatchToProps */ | ||
b => { | ||
const searchTerm = concat([ | ||
'mapDispatchToProps(dispatch) {', | ||
' return {\n', | ||
]); | ||
const index = b.indexOf(searchTerm) + searchTerm.length; | ||
const index = | ||
b.indexOf('return {\n', b.indexOf('mapDispatchToProps')) + | ||
'return {\n'.length; | ||
if (index === -1 + 'return {\n'.length) { | ||
return b; | ||
} | ||
return ( | ||
@@ -48,0 +50,0 @@ b.slice(0, index) + |
@@ -70,7 +70,8 @@ const Cases = require('../../../tools/cases'); | ||
b => { | ||
const searchTerm = concat([ | ||
'mapDispatchToProps(dispatch) {', | ||
' return {\n', | ||
]); | ||
const index = b.indexOf(searchTerm) + searchTerm.length; | ||
const index = | ||
b.indexOf('return {\n', b.indexOf('mapDispatchToProps')) + | ||
'return {\n'.length; | ||
if (index === -1 + 'return {\n'.length) { | ||
return b; | ||
} | ||
return ( | ||
@@ -77,0 +78,0 @@ b.slice(0, index) + |
{ | ||
"name": "boilersuit", | ||
"description": "A CLI tool for generating selectors, reducers, actions, constants and sagas in react-boilerplate", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "author": "Matt Pocock <matt.pocock@thevirtualforge.com>", |
@@ -1,3 +0,5 @@ | ||
<div style="text-align: center"><img src="https://raw.githubusercontent.com/mattpocock/boilersuit/master/logo.png" max-height="240px" alt="boilerplate logo"/></div> | ||
<div style="text-align: center; margin-bottom: 20px;"><img src="https://raw.githubusercontent.com/mattpocock/boilersuit/master/logo.png" max-height="240px" alt="boilerplate logo"/></div> | ||
<img src="https://raw.githubusercontent.com/mattpocock/boilersuit-raw/master/general.gif" /> | ||
## What Is Boilersuit? | ||
@@ -23,6 +25,2 @@ | ||
## How To Use Boilersuit - Video | ||
[![how to use boilersuit](http://img.youtube.com/vi/HHsyoCgzFGg/0.jpg)](http://www.youtube.com/watch?v=HHsyoCgzFGg 'How To Use Boilersuit') | ||
## How To Install | ||
@@ -207,2 +205,4 @@ | ||
<img src="https://raw.githubusercontent.com/mattpocock/boilersuit-raw/master/initialState.gif" /> | ||
This is an object which defines the initial data structure of the reducer's state. | ||
@@ -255,2 +255,4 @@ | ||
<img src="https://raw.githubusercontent.com/mattpocock/boilersuit-raw/master/actions.gif" /> | ||
Every reducer has an `"actions": {}` attribute, which is required to make the reducer work. | ||
@@ -257,0 +259,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
462773
3425
569