From 84baba27d842ee0cb1f8f74eacee3ccf17ea769f Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Tue, 31 Mar 2015 17:34:14 +0200 Subject: [PATCH] reintroduced gulp --- .gitignore | 4 ++++ bower.json | 3 ++- gulpfile.js | 25 +++++++++++++++++++++++++ index.html | 7 ++++--- style.css => src/style.css | 0 5 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 gulpfile.js rename style.css => src/style.css (100%) diff --git a/.gitignore b/.gitignore index 9d28931..38f24d5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,8 @@ bower_components/ +node_modules/ test/ lib/ *.js +!gulpfile.js +*.css +!src/*.css diff --git a/bower.json b/bower.json index 9e19030..be3a06a 100644 --- a/bower.json +++ b/bower.json @@ -18,6 +18,7 @@ "dependencies": { "vis": "~3.11.0", "jquery": "~2.1.3", - "moment": "~2.9.0" + "moment": "~2.9.0", + "bootstrap": "~3.3.4" } } diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..ed5c80a --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,25 @@ +// Gulp Dependencies +var gulp = require('gulp'); +var gutil = require('gulp-util') +var uglify = require('gulp-uglify'); +var minifyCSS = require('gulp-minify-css'); +var coffee = require('gulp-coffee') + +gulp.task('css',function(){ + return gulp.src('src/*.css') + .pipe(minifyCSS()) + .pipe(gulp.dest('.')) +}) +gulp.task('coffee',function(){ + return gulp.src('src/*.coffee') + .pipe(coffee({ bare: true })) + .pipe(uglify()) + .pipe(gulp.dest('.')) +}) + +gulp.task('default',['css','coffee']) + +gulp.task('watch',function(){ + gulp.watch('src/*.css',['css']) + gulp.watch('src/*.coffee',['coffee']) +}) diff --git a/index.html b/index.html index 56bbea6..d8456d6 100644 --- a/index.html +++ b/index.html @@ -3,12 +3,13 @@ Pert + - - - view pert + + + view pert diff --git a/style.css b/src/style.css similarity index 100% rename from style.css rename to src/style.css