Fun front-end development with a GULP workflow
Making it fun to development on the front-end ๐ ๐
Sass? ES6 syntax? Go for it!
- CSS - vendor prefixing, concatenating, and minifying
- SCSS - pre-processing,
- ES6 Javascript - transpiling, and bundling into browser-friendly JS
- Easy live deployment to github pages, heroku etc.
Start local web server that reloads with every save you make.
$ gulp watch
- edit the files in the
src/
directory
Build your production ready website in one command!
$ gulp build
In order to get up and running with this project, you will need to have git
, node
, and gulp-cli
(npm) installed.
There are two versions of this project: 1) uses CSS only and 2) that uses SASS.
First clone this repo && checkout the remote version that you'd like to use
// For CSS version:
$ git clone [email protected]:thechutrain/gulp-boilerplate-workflow.git
$ npm install
$ git checkout origin/CSS
$ rm -rf .git
// For SASS verion:
$ git clone [email protected]:thechutrain/gulp-boilerplate-workflow.git
$ git checkout origin/SASS
$ npm install
$ rm -rf .git
// For SASS verion with Bootstrap 4:
$ git clone [email protected]:thechutrain/gulp-boilerplate-workflow.git
$ git checkout remotes/origin/SASS_BS3
$ npm install
$ rm -rf .git
Before deploying your production build, make sure to $ gulp build
to get your latest build.
3 commands to deploy on github
$ gulp build
$ git add build && git commit -m "init commit of subtree"
$ git subtree push --prefix build origin gh-pages
- Alan Chu - github