Skip to content

Instantly share code, notes, and snippets.

View leibnizli's full-sized avatar

Leibniz Li leibnizli

View GitHub Profile
@leibnizli
leibnizli / gruntfile.js
Created January 29, 2015 06:23
grunt配置示例
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',
@leibnizli
leibnizli / gulpfile.js
Created January 29, 2015 06:26
gulp配置示例
// 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'),