GithubHelp home page GithubHelp logo

rossmc / gulp-sandbox Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 39 KB

Basic Gulp Setup Edit Add topics

License: GNU General Public License v3.0

JavaScript 68.12% CSS 13.29% HTML 18.59%
gulp gulp-connect nodejs node-server development-environment livereload sass scss

gulp-sandbox's Introduction

Gulp Sandbox

A basic gulp dev environment which:

  • Spins up a web server using gulp-connect.
  • Watches, compiles and minifies(optional) SCSS to CSS with source-maps(optional).
  • Watches, merges and minifies(optional) JavaScript.
  • Reloads the browser automatically whenever a file is saved.

Installation & Usage

  1. Requires node.js & npm.

    https://nodejs.org/en/download

  2. Open a terminal in your project directory and install the gulp packages:

    npm install

  3. Add this host entry to your system (i.e. /etc/hosts):

    127.0.0.1 gulp-sandbox.local

  4. Start running gulp in the terminal from your project directory.

    sudo gulp

    optionally:

    a. you can run in production mode which will minify & merge CSS & JS assets, and remove source maps:

    sudo NODE_ENV=prod gulp

    b. run with livereload enabled to automatically reload the browser whenever a JS or SCSS file is saved:

    sudo NODE_RELOAD=true gulp

  5. Open http://gulp-sandbox.local, http://localhost or http://127.0.0.1 in your browser.

  6. To stop the gulp processes running press ctrl c.

gulp-sandbox's People

Contributors

rossmc avatar

Watchers

 avatar  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.