Giter Site home page Giter Site logo

duang's Introduction

前端自动管理工具

gulp与grunt一样,都是一个自动任务运行器,grunt是母亲最流行的前端构建工具,对前端的效率帮助非常大,但是grunt并非完美无缺,json描述任务的方式,显得过于繁琐和不够简单,对于新手来说,有不少的学习成本。gulp它充分借鉴了Unix操作系统的管道(pipe)**,很多人认为,在操作上,它要比Grunt简单。

安装

  1. 进入相关项目目录
    npm install -g gulp 全局安装

  2. 作为项目的开发依赖(devDependencies)安装 npm install --save-dev gulp
    npm install --save-dev gulp-stylus
    npm install --save-dev gulp-watch ...

  3. 在项目的根目录下创建一个名为gulpfile.js的文件

var gulp = require('gulp');
gulp.task('default', function() {
    //将你的默认任务代码放在这里
    })  

4.运行 gulp

duang's People

Watchers

James Cloos avatar yaochuxia 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.