diff options
author | Shawn Severin <shawn.severin@amdocs.com> | 2017-12-20 16:27:35 -0500 |
---|---|---|
committer | Shawn Severin <shawn.severin@amdocs.com> | 2017-12-21 15:29:08 -0500 |
commit | bca1bdc7d52b01ede5c0e85f06cd6c64e5aaab57 (patch) | |
tree | 846b787ece0982ebc2419e4600e6ecd3329a625a /gulpfile.js | |
parent | d4fd54113808e9efa637719719b2831e0597996e (diff) |
Updating versions of Sparky FE files
Updating versions of Sparky FE files as previous ones were out-dated
Issue-ID: AAI-543
Change-Id: Idc7d09e0efabaa5ef82db126cf7563fc8370f4f9
Signed-off-by: Shawn Severin <shawn.severin@amdocs.com>
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js index ab115b1..0c6dadb 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -20,7 +20,6 @@ * * ECOMP is a trademark and service mark of AT&T Intellectual Property. */ - 'use strict'; var localPath = require('path'); @@ -40,24 +39,30 @@ let dist = 'dist/'; let path = { output: dist, aaiOutput: dist + '/aai/', + saOutput: dist + '/editAttributes/', assets: './resources/**/*.{css,png,svg,eot,ttf,woff,woff2,otf}', json: './src/**/*.json', aaiIndex: './src/index.html', + saIndex: './src/editAttributes/index.html', scss: './resources/scss/**/*.scss', aaiCss: dist + '/css', + saCss: dist + '/editAttributes/css', war: [dist + '**/*.html', dist + '**/*.js', dist + '**/*.{css,png,svg,eot,ttf,woff,woff2,otf}', dist + '**/*.json', 'webapp/**'], wardest: dist }; taskMaker.defineTask('clean', {taskName: 'clean', src: path.output}); taskMaker.defineTask('copy', {taskName: 'copy-aai-index.html', src: path.aaiIndex, dest: path.output, rename: 'index.html'}); +taskMaker.defineTask('copy', {taskName: 'copy-sa-index.html', src: path.saIndex, dest: path.saOutput, rename: 'index.html'}); +/** Uncomment the loine below to generate a .war file with a local build */ +// taskMaker.defineTask('compress', {taskName: 'compress-war', src: path.war, filename: appName + '.war', dest: path.wardest}) gulp.task('copy-dev-stuff', callback => { - return runSequence(['copy-aai-index.html'], callback); + return runSequence(['copy-aai-index.html', 'copy-sa-index.html'], callback); }); gulp.task('copy-stuff', callback => { - return runSequence(['copy-aai-index.html'], callback); + return runSequence(['copy-aai-index.html', 'copy-sa-index.html'], callback); }); gulp.task('dev', callback => { @@ -67,8 +72,11 @@ gulp.task('dev', callback => { // Production build gulp.task('build', callback => { return runSequence('clean', ['copy-stuff'], 'prod', callback); + /** Uncomment the loine below to generate a .war file with a local build */ + //return runSequence('clean', ['copy-stuff'], 'prod', 'compress-war', callback); }); + gulp.task('default', ['dev']); gulp.task('prod', () => { @@ -137,6 +145,7 @@ gulp.task('prod', () => { }); + gulp.task('webpack-dev-server', () => { let myConfig = Object.create(devWebpackConfig); |