-
Notifications
You must be signed in to change notification settings - Fork 24
/
index.js
56 lines (47 loc) · 1.49 KB
/
index.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* Created by gti on 01.08.16.
*/
var gulp = require('gulp');
var concata = require('gulp-concat');
var gnf = require('gulp-npm-files');
var less = require('gulp-less');
var path = require('path');
var runSequence = require('run-sequence').use(gulp);
gulp.task('less', function() {
return gulp.src('./src/styles/*.less')
.pipe(less({
paths: [path.join(__dirname, 'less', 'includes')]
}))
.pipe(gulp.dest('./src/styles'));
});
gulp.task('css', ['less'], function() {
return gulp.src([
'./src/styles/*.css'
])
.pipe(concata('iguanachart.css'))
.pipe(gulp.dest('./dist/'));
});
gulp.task('js', function() {
return gulp.src([
'./src/scripts/jquery.simplemodal.js',
'./src/scripts/jquery.palette.js',
'./src/scripts/lib/ichart.core.js',
'./src/scripts/lib/indicators.descr.js',
'./src/scripts/lib/charting/*',
'./src/scripts/templates.js',
'./src/scripts/chart_options_for_nt.js',
'./src/scripts/chart.js',
'./src/scripts/iguana-ui.js',
'./src/scripts/jquery.iguana-chart.js',
'./src/scripts/ta/TA_prototypes.js',
'./src/scripts/ta/functions/*',
'./src/scripts/ta/TA_common.js',
'./src/scripts/ta/TA_analyse_rs.js'
])
.pipe(concata('iguanachart.js'))
.pipe(gulp.dest('./dist/'));
});
gulp.task('complete', function () {
console.log('Build completed!');
});
runSequence('less', 'css', 'js', 'complete');