Giter VIP home page Giter VIP logo

gulp-and-less-starter-kit's Introduction

Starter kit to use Gulp with Less.

==================================== A super clean and easy to use starter kit for using Gulp and Less. This should help you repurpose Gulp and Less for your own projects.

Features

LESS / CSS Stuff

  • Watches for Less changes on save
  • Checks for Less errors and outputs them without you having to rerun Gulp
  • Autoprefixes for legacy browsers
  • Combines all CSS into one big and sexy minified file
  • Includes Less Bootstrap

Javascript Stuff

  • Automatically compiles all jQuery libraries into one big file JS file
  • Lints custom scripts for errors
  • Combines all custom scripts into one file

How To Use

$ git clone [email protected]:scotch-io/gulp-and-less-starter-kit.git
$ cd gulp-and-less-starter-kit
$ npm install

After, run

$ gulp

Or

$ gulp server

...if you need a local server. Folder build serving at http://localhost:8888

Should use Livereload extension. Or inject <script src="//localhost:35729/livereload.js"></script> into your page.

When you change a LESS(or JS) file, the page will reload.

Updates

If this isn't working, it's probably because you need to update. Just run npm update --save-dev

If no command gulp found?, you need to install it globally npm install -g gulp or run npm run gulp

Still broken or not working?

Try this:

sudo npm cache clean
npm install --save-dev
npm update --save-dev
gulp

Quick Tips

  • Any changes in assets/less/* will trigger the Less to compile on save
  • All files in assets/js/libs/* will be compressed to build/jquery.plugins.min.js
  • All files in assets/js/* (except for libs) will be compressed to build/scripts.min.js

Special Thanks

To Kenny Song for his contributions and https://github.com/baivong

gulp-and-less-starter-kit's People

Contributors

baivong avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.