Skip to content

Commit

Permalink
Merge pull request #79 from vinaysharma14/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
vinaysharma14 authored Mar 20, 2021
2 parents 6783510 + 2d2ad69 commit ddcb7b6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rapid-react",
"version": "2.0.3",
"version": "2.0.4",
"description": "A light weight interactive CLI Automation Tool 🛠️ for rapid scaffolding of React apps with Create React App under the hood. ⚛️",
"main": "lib/index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/scripts/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ const mappedAnswers = (answers: Answers) => {
if (useLogger) {
const { lib, types } = REDUX_ADDONS['Redux Logger'];

devDependencies = [...devDependencies, lib, ...tsUsed ? [types] : []];
dependencies = [...dependencies, lib];
devDependencies = [...devDependencies, ...tsUsed ? [types] : []];
}

// thunk doesn't need to be installed
Expand Down
2 changes: 1 addition & 1 deletion src/templates/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import './styles.${styleExt}';
${cmpDefinition}
<div className='${toKebabCase(name)}-container'>
{/* JSX goes here */}
{/* JSX goes here */}
</div>
);
${cmpExport}`;
Expand Down
2 changes: 1 addition & 1 deletion src/templates/slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ${typeDeclaration}const initialState${reducerReturnType} = {
};
const ${reducerPrefix}Slice = createSlice({
name: 'counter',
name: '${reducerPrefix}',
initialState,
reducers: {
increment: (state${stateSuffix}) => {
Expand Down

0 comments on commit ddcb7b6

Please sign in to comment.