码迷,mamicode.com
首页 > 其他好文 > 详细

Gulp: Getting Started

时间:2016-01-19 08:00:23      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:

https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md

1. Install gulp globally:

$ npm install --global gulp

2. Install gulp in your project devDependencies:

$ cd C:\Work\MyProject
$ npm install --save-dev gulp

3. Create a gulpfile.js at the root of your project:

var gulp = require(‘gulp‘);
 
gulp.task(‘packJavaScript‘, function() {
    gulp.src(‘*.js‘);
});
 
gulp.task(‘packCss‘, function() {
    gulp.src(‘*.css‘);
});
 
gulp.task(‘default‘, [‘packJavaScript‘, ‘packCss‘]);

4. Run gulp:

$ gulp

 

Gulp: Getting Started

标签:

原文地址:http://www.cnblogs.com/zhangpengc/p/5141002.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!