Code Monkey home page Code Monkey logo

generator-redux-app's Introduction

generator-redux-app

NPM version Build Status Test coverage Dependency Status

Scaffold out a redux app

Using chentsulin/redux-boilerplate as template. Extend counter examples with react-router. And use jest.

Install

$ npm install -g generator-redux-app

Note: generator-redux-app is a yeoman generator, so you must have global yo installed, too.

$ npm install -g yo

Usage

$  mkdir your-app-name && cd your-app-name && yo redux-app

Troubleshooting

TypeError: this.env.adapter.prompt(...).then is not a function

Please upgrade your global yo npm module using npm install -g yo.

License

MIT © C.T. Lin

generator-redux-app's People

Contributors

caynan avatar chentsulin avatar jmfirth avatar maroshii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

generator-redux-app's Issues

Missing Dependency

When npm installing I received an error about cross-env. Can you list this as a dependency in the package.js file?

supporting html-webpack-plugin

Hi,
Awesome work!

I've added html-webpack-plugin - but I noticed the npm start doesn't really run wepback.
This is the plugins section on webpack.config.js

plugins: [
    new HtmlwebpackPlugin(),
    new webpack.HotModuleReplacementPlugin(),
    new webpack.DefinePlugin({
      '__DEVTOOLS__': true,
      'process.env': JSON.stringify('development')
  })
],

I had to change the "build" in scripts in package.json to:

"start": "webpack && node server.js",

Also in server.js I changed the index.html to the one that is generated:

res.sendFile(path.join(__dirname, 'dist/index.html'));

and index.js now has this:

const root = document.createElement('div');
document.body.appendChild(root);
ReactDOM.render(<Root history={history} />,root);

Am I missing something - is there a reason why you wouldn't want to run webpack before starting to develop and launching the dev server?

I believe html-webpack-plugin would minimize the need to maintain index.html.

yoman required fields...

Not sure if this is a problem with my set up, or your generator, but just in case, here it is:

I was unable to use the Yoman generator because it errored out when I didn't provide a user name, or website URL. Entering dummy values for those fields gives me a NodeJs error:
ERROR in ./src/createRoutes.js
File/Program node, we can't possibly find a statement parent to this

webpack.config.production.js not found

module.js:334
throw err;
^
Error: Cannot find module '/Users/pengyuzhao/Study/react/webpack.config.production.js'
at Function.Module._resolveFilename (module.js:332:15)
at Function.Module._load (module.js:282:25)
at Module.require (module.js:361:17)
at require (module.js:380:17)
at module.exports (/Users/pengyuzhao/Study/react/node_modules/webpack/bin/convert-argv.js:80:13)
at Object. (/Users/pengyuzhao/Study/react/node_modules/webpack/bin/webpack.js:39:40)
at Module._compile (module.js:426:26)
at Object.Module._extensions..js (module.js:444:10)
at Module.load (module.js:351:32)
at Function.Module._load (module.js:306:12)

Subgenerator

  • action
  • reducer
  • module
  • middleware
  • container component
  • presentational component
  • saga
  • ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.