-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
72 lines (64 loc) · 2.17 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
const gulp = require('gulp');
const concat = require('gulp-concat');
const terser = require('gulp-terser');
const postCSS = require('gulp-postcss');
const cssnano = require('cssnano');
const autoprefixer = require('autoprefixer');
const JS_PATH = 'js/**/*.js';
const { src, series, parallel, dest, watch } = require('gulp');
const htmlTask = e => {
return src('*.html').pipe(gulp.dest('dist'))
}
const jsTask = e => {
return src([
'js/Resources.js',
'js/bin/Utils.js',
'js/bin/components/Component.js',
'js/bin/components/Door.js',
'js/bin/components/Keyboard.js',
'js/bin/components/AudioSource.js',
'js/bin/components/Background.js',
'js/bin/components/HUD.js',
'js/bin/components/Loader.js',
'js/bin/components/Renderer.js',
'js/bin/components/Balloon.js',
'js/bin/components/Controller.js',
'js/bin/components/SwipeDoor.js',
'js/bin/components/Menu.js',
'js/bin/scenes/Scene.js',
'js/bin/scenes/LandingScene.js',
'js/bin/scenes/SplashScene.js',
'js/bin/scenes/MainScene.js',
'js/bin/scenes/ScoresScene.js',
'js/bin/scenes/StreetScene.js',
'js/bin/scenes/ParadiseCafeScene.js',
'js/bin/scenes/CrackhouseScene.js',
'js/bin/scenes/BrothelScene.js',
'js/bin/scenes/JailScene.js',
'js/bin/scenes/NewScoreScene.js',
'js/bin/characters/Character.js',
'js/bin/characters/Hero.js',
'js/bin/characters/Thief.js',
'js/bin/characters/Whore.js',
'js/bin/characters/Scout.js',
'js/bin/characters/OldLady.js',
'js/bin/characters/Police.js',
'js/bin/characters/Pimp.js',
'js/bin/characters/Waiter.js',
'js/bin/characters/Dealer.js',
'js/bin/characters/Junkie.js',
'js/Game.js',
'js/app.js'
])
.pipe(concat('paradisecafe.js'))
.pipe(terser())
.pipe(dest('dist'));
}
const cssTask = e => {
return src('paradisecafe.css')
.pipe(postCSS([autoprefixer(), cssnano()]))
.pipe(dest('dist'))
}
exports.htmlTask = htmlTask;
exports.jsTask = jsTask;
exports.cssTask = cssTask;