Skip to content

aowainati/webpackalackin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpackalackin

Babel + Webpack + React

How:

To develop locally:

brew install nvm
nvm install
npm install -g npm@$(cat .npm-version)
npm install
npm start

Configuration

To inspect the current configuration:

npm run config

Or for a particular variant:

VARIANT=demo npm run config

You may also override individual config values by specifying them as env vars prefixed by config_.:

config_apiEndpoint=http://foo.bar.com npm start

To deploy:

brew install awscli
aws configure # follow prompts to configure credentials + region
VARIANT=production npm run deploy # clean build and an s3 upload

TODO:

  • Split up webpack configs
  • Pull in webpack hot loader
  • Emit index.html as part of build process with hash
  • Test emitting css + images as part of build process
  • Re-write deployment scripts to deploy to an S3 bucket
  • Implement a BaseComponent that has some nice stuff on it (PureRenderMixin)
  • Integrate redux
  • Integrate redux-interactions
  • Integrate combined-reduction
  • Integrate redux-dev-tools (reducer configuration, not the React component)
  • Set up unit tests
  • Integrate react-router
  • Add .eslintrc
  • Add file watcher for automatic test running

About

Babel + Webpack + React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published