5 Star 16 Fork 9

胡晋 / angular-ueditor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Gruntfile.js 1.95 KB
一键复制 编辑 原始数据 按行查看 历史
胡晋 提交于 2014-09-17 19:49 . Signed-off-by: Dio zqjimlove@gmail.com
'use strict';
module.exports = function(grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
// Configurable paths for the application
var appConfig = {
src: 'src',
dist: 'dist'
};
// Define the configuration for all the tasks
grunt.initConfig({
config: appConfig,
// Copies remaining files to places other tasks can use
clean: {
dist: {
files: [{
dot: true,
src: [
'.tmp',
'<%= config.dist %>/{,*/}*',
'!<%= config.dist %>/.git*'
]
}]
}
},
copy: {
dist: {
files: [{
expand: true,
dot: true,
cwd: '.tmp',
dest: '<%= config.dist %>',
src: [
'*.map',
'*.js'
]
}]
}
},
uglify: {
dist: {
files: {
'<%= config.dist %>/angular-ueditor.min.js': ['<%= config.dist %>/*.js']
}
}
},
coffee: {
options: {
sourceMap: true,
sourceRoot: ''
},
dist: {
files: [{
expand: true,
cwd: '<%= config.src %>',
src: '*.coffee',
dest: '.tmp',
ext: '.js'
}]
}
}
});
grunt.registerTask('build', [
'clean:dist',
'coffee:dist',
'copy:dist',
'uglify:dist'
]);
grunt.registerTask('default', [
'build'
]);
};
JavaScript
1
https://gitee.com/inhu/angular-ueditor.git
git@gitee.com:inhu/angular-ueditor.git
inhu
angular-ueditor
angular-ueditor
master

搜索帮助