02dc3ab7f5
It seems that on a CI node, we just want to have approximately "pip install stackviz" and have it "just work". This makes "npm run prod" produce a .tar.gz appropriate for this. Firstly, I have moved the gulp output to "gulp-build" rather than "build" because "build" is generic and can get distutils confused. Second, after building with gulp, we tack on a "setup.py sdist" call to generate the final package. Thirdly, the MANIFEST.in is updated to prune out unneeded files from the final distribution. pbr is putting everything in git into the manifest, but we can trim all all the nodejs source stuff. The generated files in gulp-build are added to the manifest (since they're generated, and not in git). Finally, these are added via data-files as "share/stackviz-html". This is essentially standalone and can be moved, or symlinked to as required. The end result is that the .tar.gz created is installable on nodes an contains everything required to run stackviz. Documentation is updated. Change-Id: I64cbc7e90bd2610733c9d5c6275cce99f2571883 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
61 lines
995 B
JavaScript
61 lines
995 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
|
|
'browserPort' : 3000,
|
|
'UIPort' : 3001,
|
|
'serverPort' : 3002,
|
|
|
|
'styles': {
|
|
'src' : 'app/styles/**/*.scss',
|
|
'dest': 'gulp-build/css'
|
|
},
|
|
|
|
'scripts': {
|
|
'src' : 'app/js/**/*.js',
|
|
'dest': 'gulp-build/js'
|
|
},
|
|
|
|
'fonts': {
|
|
'src' : ['app/fonts/**/*'],
|
|
'dest': 'gulp-build/fonts'
|
|
},
|
|
|
|
'views': {
|
|
'watch': [
|
|
'app/index.html',
|
|
'app/views/**/*.html'
|
|
],
|
|
'src': 'app/views/**/*.html',
|
|
'dest': 'app/js'
|
|
},
|
|
|
|
'gzip': {
|
|
'src': 'gulp-build/**/*.{html,xml,json,css,js,js.map}',
|
|
'rewrite': '**/*.html',
|
|
'dest': 'gulp-build/',
|
|
'options': {}
|
|
},
|
|
|
|
'dist': {
|
|
'root' : 'gulp-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': 'gulp-build/data'
|
|
}
|
|
|
|
};
|