Skip to content

Minimal boilerplate for web projects utilizing Gulp, Browserify and Compass framework.

License

Notifications You must be signed in to change notification settings

customedialabs/JS_gulp_browserify_compass_boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp_browserify_compass_boilerplate

Minimal boilerplate for web projects utilizing Gulp, Browserify and Compass framework.

Disclaimer: There are many ways to utilize the tools above and most of the times they depend on the project's structure. This is just one, based on my own personal preferences and on a specific structure. Feel free to fork and modify at will but please do not create pull requests that refer to different uses of the tools used. Of course, pull requests for solving potential bugs are always welcome and encouraged.

Installation instructions

Install Node.js

Information about installing Node.js, can be found at https://nodejs.org

Install SASS and Compass

Install local dependencies

In your project's root folder run:

$ npm install

This will install locally to the project all the dependancies required for development (eg gulp, browserify, gulp-uglify, etc).

Build instructions

This boilerplate assumes that all your source files should be located under src/ folder. Place Javascript and SCSS files under src/js/ and src/scss/ folders respectively.

The project's strucure is shown below:

.
|-- src
|     |-- js
|     |-- scss
|-- .gitignore
|-- .jscsrc
|-- .jshintrc
|-- config.rb
|-- gulpfile.js
|-- index.dev.html
|-- LICENSE
|-- package.json
|-- README.md

To build the bundles that will be served, there are a couple of options:

1. Build for development:*

$ npm run build:dev

Generates the compiled, unminified bundles of your JS and CSS files along with their source maps.

2. Build for production:*

$ npm run build:live

Generates the compiled, minified bundles of your JS and CSS files. Also, generates the index.html file which serves the minified bundles.

3. Watch for changes:*

$ npm run watch

Watches the src/ folder for changes and builds the project. This one is the same as $ npm run build:dev but generates the files every time a change happens.

* All the generated files will be located under dist/ folder which is generated dynamically every time you build the project.

License

This code is MIT licenced:

Copyright (c) 2015 George Raptis

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Minimal boilerplate for web projects utilizing Gulp, Browserify and Compass framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published