Not a Gulp module! This is just a boilerplate project template with a few commonly-used Gulp modules and pipelines for SCSS and Javascript compilation.
My goal with this is to build a versatile, easy-to-use precompilation tooling environment that I can re-use when doing frontend development using Gulp and Bower.
To use this, you need an understanding of npm
, bower
, gulp
and sass
,
- Node Package Manager - for installing all of those Node packages, the foundation of a good development diet.
- Bower - Similar to Node, but used mostly for frontend plugins included in the completed code, rather than build tools.
- Gulp - The engine that takes all your code and compiles it into.
npm install
- to install the right stuff under the hood.bower install
- to get some stuff from Bower.- Configure Gulp - change the Gulp tasks to your liking to use the libraries you require for the project.
gulp build
- to compile Javascript libraries into one file.gulp watch
- to watch the working files to compile them into minified versions.- Happy coding!
- Install Node and Node Package Manager - Node is the Javascript server technology that powers Node Package Manager, a great tool to manage dependencies.
- Install Node Packages - Using NPM, install the dependencies for this boilerplate by running
npm install
in the console. - Install Bower Packages -
bower install
to install front-end code for the demo environment and libraries for your product. - Configure Gulpfile - Add the libraries that you installed in Bower to the library compilation tasks as required.
- Compile libraries -
gulp build
- to compile Javascript libraries into one file. gulp watch
- to watch the working files to compile them into minified versions.- You're all set.
/_source
- contains all dev code which is compiled into production code. This folder is intended for all the code in the plugin or product being developed./js
- Javascript Source. Compiled into single files, as well as a single minified library that includes all the code, saved intodist/js
./scss
- Sass Source. Compiled into single files, as well as a single minified library that includes all the code, saved intodist/css
.
/demo
- A folder where you can create a preview for the code product you're building./source
- contains dev code for the demo environment. Similar to the main proudct source, but for the demo area./js
- Javascript Source for demo environment. Compiled todemo/js
./scss
- SCSS Source for demo environment. Compiled todemo/css
.
/css
/images
/js
index.html
- Home page for the demo environment. Also a good place to use for dev purposes.
/dist
- The folder where your completed production code is saved./css
/js
package.json
- containsnpm
development dependencies. Change as needed.bower.json
- contains frontend code dependencies. Change as needed.
- Quintin Schnehage - Initial work
This project is licensed under the MIT License - see the LICENSE.md file for details