This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
// 构建任务配置 | |
grunt.initConfig({ | |
//读取package.json的内容,形成个json数据 | |
pkg: grunt.file.readJSON('package.json'), | |
dirs: { | |
src: 'src', | |
//dest: 'dist/<%= pkg.name %>/<%= pkg.version %>', | |
dest: 'build', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// var gulp = require('gulp'), | |
// gulpLoadPlugins = require('gulp-load-plugins'), | |
// plugins = gulpLoadPlugins(); | |
var gulp = require('gulp'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), | |
concat = require('gulp-concat'), | |
less = require('gulp-less'), | |
livereload = require('gulp-livereload'), |