2 Star 0 Fork 0

mirrors_svgdotjs/svg.pathhandles.js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Gruntfile.js 1.85 KB
一键复制 编辑 原始数据 按行查看 历史
Ulrich-Matthias Schäfer 提交于 2016-04-14 23:58 . Initial commit
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
' Licensed <%= pkg.license %> */\n',
// Task configuration.
clean: {
files: ['dist']
},
copy: {
main: {
files: [{
expand: true,
cwd: 'src/',
src: ['*.css'],
dest: 'dist/',
}]
}
},
concat: {
options: {
banner: '<%= banner %>',
stripBanners: true
},
dist: {
src: ['src/<%= fileName %>.js'],
dest: 'dist/<%= fileName %>.js'
},
},
uglify: {
options: {
banner: '<%= banner %>'
},
dist: {
src: '<%= concat.dist.dest %>',
dest: 'dist/<%= fileName %>.min.js'
},
},
jshint: {
options: {
jshintrc: true
},
gruntfile: {
src: 'Gruntfile.js'
},
src: {
src: ['src/**/*.js']
}
},
bumper: {
options: {
files: ['package.json', 'bower.json'],
tagName: "%VERSION%"
}
},
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-bumper');
grunt.config('fileName', grunt.config('pkg').name.slice(0, -3));
// Default task.
grunt.registerTask('default', ['jshint', 'clean', 'copy', 'concat', 'uglify']);
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_svgdotjs/svg.pathhandles.js.git
git@gitee.com:mirrors_svgdotjs/svg.pathhandles.js.git
mirrors_svgdotjs
svg.pathhandles.js
svg.pathhandles.js
master

搜索帮助