From 6680abdce3f54834ee71a14a0b57f1010a748fcd Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 12 Apr 2016 20:53:28 -0400 Subject: [PATCH] Restructure for gulp build of app.js --- app/gulpfile.js | 18 ++++++ app/index.html | 12 +--- app/js/app.js | 84 ++++++++++++++++++++++++++++ app/js/index.js | 10 ---- app/package.json | 5 +- app/{js => src}/chroma.min.js | 0 app/src/index.js | 34 +++++++++++ app/{js => src}/jquery-1.11.3.min.js | 0 app/{js => src}/w2ui-1.4.3.min.js | 0 9 files changed, 142 insertions(+), 21 deletions(-) create mode 100644 app/gulpfile.js create mode 100644 app/js/app.js delete mode 100644 app/js/index.js rename app/{js => src}/chroma.min.js (100%) create mode 100644 app/src/index.js rename app/{js => src}/jquery-1.11.3.min.js (100%) rename app/{js => src}/w2ui-1.4.3.min.js (100%) diff --git a/app/gulpfile.js b/app/gulpfile.js new file mode 100644 index 0000000..27e6121 --- /dev/null +++ b/app/gulpfile.js @@ -0,0 +1,18 @@ +var gulp = require('gulp'), + concat = require('gulp-concat'); + +var scripts = [ + './src/jquery-1.11.3.min.js', + './src/w2ui-1.4.3.min.js', + './src/chroma.min.js', + './src/index.js' +]; + +gulp.task('js', function () { + 'use strict'; + return gulp.src(scripts) + .pipe(concat('app.js')) + .pipe(gulp.dest('./js/')); +}); + +gulp.task('default', ['js']); \ No newline at end of file diff --git a/app/index.html b/app/index.html index 78267d4..dc2a83e 100644 --- a/app/index.html +++ b/app/index.html @@ -9,16 +9,8 @@ -