17 Star 42 Fork 12

随便syjefbz/range-picker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Gruntfile.js 2.32 KB
一键复制 编辑 原始数据 按行查看 历史
zhang 提交于 2016-03-17 11:06 . 注册 range-picker 到 bower
/* global module */
module.exports = function(grunt) {
"use strict";
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
jshint: {
options: {
jshintrc: true,
reporter: require("jshint-stylish")
},
check: {
files: {
src: ["src/**/*.js"]
}
}
},
concat: {
dist: {
src: ["src/range_picker.js"],
dest: "dist/js/range_picker.js",
options: {
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %> */\n'
}
}
},
uglify: {
compress: {
options: {
sourceMap: true,
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %> */'
},
files: {
"dist/js/range_picker.min.js" : ["dist/js/range_picker.js"]
}
}
},
cssmin: {
target: {
files: {
"dist/css/range-picker.min.css" : ["css/range-picker.css"]
}
}
},
copy: {
main: {
src: "css/range-picker.css",
dest: "dist/css/range-picker.css"
}
},
mocha: {
test: {
options: {
run: true,
log: true,
logErrors: true,
reporter: "Nyan",
},
src: ["test/**/*.html"]
}
}
});
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-cssmin");
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.loadNpmTasks("grunt-mocha");
grunt.registerTask("test", ["mocha:test"]);
grunt.registerTask("compile", ["jshint:check", "mocha:test",
"concat:dist", "uglify:compress", "cssmin", "copy"]);
grunt.registerTask("default", ["compile"]);
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/syjefbz/range-picker.git
git@gitee.com:syjefbz/range-picker.git
syjefbz
range-picker
range-picker
master

搜索帮助