df8c054819
This adds a new Gulp task to automatically include `app/data` in dev builds if it exists. This directory will contain sample data files for use during development and outputs them to `build/data`. Additionally, this integrates with browser-sync and will automatically reload open browsers as testing datasets are changed. Change-Id: Ie1578682d11e36bd6142b9d326f50a547aa4613b
66 lines
1.0 KiB
JavaScript
66 lines
1.0 KiB
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
|
|
'browserPort' : 3000,
|
|
'UIPort' : 3001,
|
|
'serverPort' : 3002,
|
|
|
|
'styles': {
|
|
'src' : 'app/styles/**/*.scss',
|
|
'dest': 'build/css'
|
|
},
|
|
|
|
'scripts': {
|
|
'src' : 'app/js/**/*.js',
|
|
'dest': 'build/js'
|
|
},
|
|
|
|
'images': {
|
|
'src' : 'app/images/**/*',
|
|
'dest': 'build/images'
|
|
},
|
|
|
|
'fonts': {
|
|
'src' : ['app/fonts/**/*'],
|
|
'dest': 'build/fonts'
|
|
},
|
|
|
|
'views': {
|
|
'watch': [
|
|
'app/index.html',
|
|
'app/views/**/*.html'
|
|
],
|
|
'src': 'app/views/**/*.html',
|
|
'dest': 'app/js'
|
|
},
|
|
|
|
'gzip': {
|
|
'src': 'build/**/*.{html,xml,json,css,js,js.map}',
|
|
'rewrite': '**/*.html',
|
|
'dest': 'build/',
|
|
'options': {}
|
|
},
|
|
|
|
'dist': {
|
|
'root' : 'build'
|
|
},
|
|
|
|
'browserify': {
|
|
'entries' : ['./app/js/main.js'],
|
|
'bundleName': 'main.js',
|
|
'sourcemap' : true
|
|
},
|
|
|
|
'test': {
|
|
'karma': 'test/karma.conf.js',
|
|
'protractor': 'test/protractor.conf.js'
|
|
},
|
|
|
|
'data': {
|
|
'src' : ['app/data/**/*'],
|
|
'dest': 'build/data'
|
|
}
|
|
|
|
};
|