Coder Social home page Coder Social logo

gulp-dev-env's Introduction

Simple development env for static sites and single page apps using gulp for tasks, jade for templates, stylus for CSS, babel for next gen javascript and browserify to bundle modular script.


Read the article about this here - PT/BR


expected directory structure

project
  |_ src
  |   |_ layouts
  |   |_ stylus
  |   |_ scripts
  |   |   |_ app
  |   |   |_ vendor
  |   |_ modules
  |_ build
      |_ scripts
      |_ stylesheets

using

Default npm scripts:

Start dev server:

$ npm start

Start watching code:

$ npm run watch

Compile code:

$ npm run compile

Gulp tasks

Compiling jade:

$ gulp compile:html

Compiling stylus:

$ gulp compile:css

Concatenating vendor scripts:

$ gulp concat:scripts:vendor

Browserifing app scripts:

$ gulp browserify:app

Optimizing images:

$ gulp compress:images

Building:

$ gulp build

Watching files modifications:

$ gulp watch

Building and watching:

$ gulp

TODO

  • bring uglify and minify back
  • add lint config
  • task for unit tests
  • add some provision (maybe vagrant again or otto)

gulp-dev-env's People

Contributors

lucasfs7 avatar

Stargazers

 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.