Initial OpenECOMP Portal commit
[portal.git] / ecomp-portal-FE / client / bower_components / jquery.newstape / gulpfile.js
diff --git a/ecomp-portal-FE/client/bower_components/jquery.newstape/gulpfile.js b/ecomp-portal-FE/client/bower_components/jquery.newstape/gulpfile.js
new file mode 100644 (file)
index 0000000..68104cd
--- /dev/null
@@ -0,0 +1,22 @@
+var gulp = require('gulp'),
+    uglify = require('gulp-uglify'),
+    rename = require('gulp-rename'),
+    clean = require('gulp-clean');
+
+gulp.task('minjs', function() {
+  return gulp.src(['jquery.newstape.js'])
+    .pipe(uglify())
+    .pipe(rename({
+      suffix: ".min"
+    }))
+    .pipe(gulp.dest('dist'));
+});
+
+gulp.task('clean', function() {
+  return gulp.src(['dist/**/.*'], {read: false})
+    .pipe(clean());
+});
+
+gulp.task('default', ['clean', 'minjs'], function() {
+
+});
\ No newline at end of file