forked from gevgeny/ui-highcharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
30 lines (27 loc) · 1.01 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
var gulp = require('gulp'),
concat = require('gulp-concat'),
uglify = require('gulp-uglifyjs'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),
scripts = ['src/bootstrap.js', 'src/addWatchers.js', 'src/handleAttrs.js', 'src/transclude.js', 'src/utils.js', 'src/directive.js' ],
jsfiddleScripts = [
'bower_components/jquery/dist/jquery.min.js',
'bower_components/angular/angular.min.js',
'bower_components/highstock-release/highstock.js',
'dist/ui-highcharts.min.js'
];
gulp.task('dev', function() {
gulp.src(scripts)
.pipe(jshint())
.pipe(jshint.reporter(stylish))
.pipe(concat('ui-highcharts.js'))
.pipe(gulp.dest('./dist/'))
.pipe(uglify('ui-highcharts.min.js'))
.pipe(gulp.dest('./dist/'));
});
gulp.task('jsfiddle', function() {
gulp.src(jsfiddleScripts)
.pipe(concat('jsfiddle-scripts.js'))
.pipe(gulp.dest('./samples/'));
});
gulp.task('default', ['dev', 'jsfiddle']);