Starter for react-redux react-router project built by gulp.
$ git clone https://github.com/ckckckc/build-react-redux-with-gulp.git
$ cd build-react-redux-with-gulp
$ npm install
$ npm run bower-install
Without livereload:
$ npm run start
With livereload:
$ npm run dev
$ 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
$ npm test
$ npm run lint
- 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
- 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