-
Notifications
You must be signed in to change notification settings - Fork 26
/
gulpfile.js
35 lines (31 loc) · 912 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* Created by anlun on 16/7/16.
*/
var fs = require('fs');
var path = require('path');
var gulp = require('gulp');
var concat = require('gulp-concat');
gulp.task('packToOne', function(){
//复制资源文件
gulp.src('./src/Resource/**')
.pipe(gulp.dest('./released/src/Resource'))
//复制资源文件
gulp.src('./template/**')
.pipe(gulp.dest('./released'))
//合并js文件
gulp.src(
[
'./libs/pep.min.js',
'./libs/zepto.min.js',
'./libs/v33/babylon.js',
'./libs/new2/babylon.gui.min.js',
'./libs/pep.min.js',
'./libs/tween.min.js',
'./libs/new2/babylon.glTF2FileLoader.min.js',
'./libs/babylonjs.materials.min.js',
'./dist/hi.js'
])
.pipe(concat('all.js'))
// .pipe(uglify())
.pipe(gulp.dest('released'))
});