-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathgulpfile.js
30 lines (28 loc) · 852 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
/**
* Dependencies
*/
var gulp = require( "gulp" ),
Builder = require( "./gulpbuilder.js" );
/**
* ------------------------------------------------------------
* Scene builder
*/
var scene = new Builder();
// browser-sync and output path
scene.setupServer( "./" );
scene.setOutputPath( "./dist" );
// watch for changes
scene.watchFiles( "./src/scss/*.scss" );
scene.watchFiles( "./src/js/*.js" );
// css build bundle
scene.bundleCss( "./src/scss/styles.scss" );
scene.bundleCss( "./src/scss/fontello.scss" );
// js build bundle
scene.bundleJs( "./src/js/Device.js" );
scene.bundleJs( "./src/js/Stage.js" );
scene.bundleJs( "./src/js/Nebula.js" );
scene.bundleJs( "./src/js/Stars.js" );
scene.bundleJs( "./src/js/Planets.js" );
scene.bundleJs( "./src/js/Wormhole.js" );
// build/watch/serve task
gulp.task( "initScene", scene.initWatch );