0.0.2 • Published 9 years ago

lennon-react-webpack-template v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Welcome to lennon-react-webpack-template

功能

  • Webpack and Webpack-Dev-Server, including hot-loader
  • Babel and JSX
  • Mocha Unit tests (optional)
  • EsLint Support
  • No dependency on grunt, gulp or the next hot taskrunner!
  • The dynamic webpack configuration is clunky, there must be a better way to do that!
  • Karmas webpack configuration is not included in the global webpack.config.js file, but it really should

Using it

The template is available via webpack. The following commands are available:

# Start for development
npm start # or
npm run serve

# Start the dev-server with the dist version
npm run serve:dist

# Just build the dist version and copy static files
npm run dist

# Run unit tests
npm test

# Lint all files in src (also automatically done AFTER tests are run)
npm run lint

# Clean up the dist directory
npm run clean

# Just copy the static assets
npm run copy

You can also use your globally installed version of webpack like this:

# Build or run the dev version:
webpack
webpack --env=dev

webpack-dev-server
webpack-dev-server --env=dev

# Build or run the dist version
webpack --env=dist
webpack-dev-server --env=dist

License

lennon-react-webpack-template is available under MIT-License and can therefore be used in any project free of charge.