Skip to content

ckckckc/build-react-redux-with-gulp

Repository files navigation

build-react-redux-with-gulp

Starter for react-redux react-router project built by gulp.

How To Use It

$ git clone https://github.com/ckckckc/build-react-redux-with-gulp.git
$ cd build-react-redux-with-gulp

development

$ npm install
$ npm run bower-install

Without livereload:

$ npm run start

With livereload:

$ npm run dev

production

$ npm install
$ npm run bower-install

(Add .env file at project root folder for production config, ex: BASE_URL={your_production_baseURL} )

$ touch .env
$ npm run build

test

$ npm test

lint

$ npm run lint

Folder Structure

  • public: production root folder
  • dist: development root folder
  • src: html sass js source code and images
  • gulpfiles: gulp tasks
  • temp: temporarily save files for building public folder

Feature

  • Compile JSX ES6 | Babel Browserify
  • Compile SASS | Gulp Sass
  • Manage front end package | Bower Wiredep
  • Auto inject JS CSS into HTML | Gulp Inject
  • Local server with livereload | Gulp Watch Connect
  • Debug mode | Gulp Sourcemap
  • JavaScript ESLint | ESLint
  • Unit test | Jest
  • Switch development/production enviroment variable | Browerify Dotenv Envify
  • Uglify JavaScript SASS | Gulp Sass Uglify
  • Minify PNG, JPEG, GIF and SVG images | Gulp Imagemin
  • Compress all the files by the same file type | Gulp Useref
  • Output file name with hash | Gulp Rev
  • Sample code with Redux React-Router | React Redux Router

About

React Redux Router Starter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •