当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 17

yalukezoudike/juggle
暂停

forked from 电霸儿/juggle
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Gruntfile.js 2.36 KB
一键复制 编辑 原始数据 按行查看 历史
电霸儿 提交于 2017-10-23 16:56 . No commit message
module.exports = function (grunt) {
// 项目配置
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: '\n\r'
},
dist: {
src: [
'juggle-help/src/Tools.js',//无依赖
'juggle-event/src/Event.js',//依赖juggle-help
'juggle-event/src/EventPool.js',//依赖Event
'juggle-event/src/EventDispatcher.js',//依赖juggle-help,EventPool
'juggle-juggler/src/JugglerEventType.js',//无依赖
'juggle-juggler/src/Juggler.js',//依赖JugglerEventType,juggle-help
'juggle-juggler/src/JugglerManager.js',//依赖Juggler
'juggle-tween/src/Transitions.js',//无依赖
'juggle-tween/src/Tween.js',//依赖juggle-help,juggle-event,juggle-juggler,transitions
'juggle-tween/src/TweenPool.js',//依赖Tween,juggle-help
'juggle-delayedcall/src/DelayedCall.js',//依赖juggle-help,juggle-event,juggle-juggler
'juggle-delayedcall/src/DelayedCallPool.js',//DelayedCall,juggle-help
'juggle-websocket/src/WebSocketEventType.js',//无依赖
'juggle-websocket/src/WebSocketConfig.js',//无依赖
'juggle-websocket/src/WebSocketClient.js',//依赖WebSocketEventType,WebSocketConfig,juggle-event
'juggle-http/src/HttpEventType.js',//无依赖
'juggle-http/src/HttpClient.js',//依赖httpEventType,juggle-event
'juggle-resource/src/ResourceEventType.js',//无依赖
'juggle-resource/src/Loader.js',//resourceEventType,juggle-http,juggle-event
'juggle-resource/src/ResourceManager.js',//依赖resourceEventType,Loader
'juggle-mv/src/ViewManager.js',//无依赖
'juggle-module/src/ModuleManager.js'//依赖juggle-resource
],
dest: 'dist/<%= pkg.name %>.js'
}
},
uglify: {
build: {
src: 'dist/<%= pkg.name %>.js',
dest: 'dist/<%= pkg.name %>.min.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
// 默认任务
grunt.registerTask('default', ['concat', 'uglify']);
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/yalukezoudike/basic.git
[email protected]:yalukezoudike/basic.git
yalukezoudike
basic
juggle
master

搜索帮助