mcopy/app/gulpfile.js

31 lines
656 B
JavaScript
Raw Normal View History

2016-04-13 00:53:28 +00:00
var gulp = require('gulp'),
2016-04-13 02:06:06 +00:00
less = require('gulp-less'),
2016-04-13 00:53:28 +00:00
concat = require('gulp-concat');
var scripts = [
'./src/jquery-1.11.3.min.js',
2016-04-13 01:04:13 +00:00
'./src/jquery-electron-fix.js',
2016-04-13 00:53:28 +00:00
'./src/w2ui-1.4.3.min.js',
2016-04-13 02:18:37 +00:00
'./src/moment.min.js',
2016-04-13 04:45:40 +00:00
'./src/colors.js',
'./src/colorPicker.data.js',
2016-04-13 04:45:40 +00:00
'./src/colorPicker.js',
'./src/jsColor.js',
2016-04-13 00:53:28 +00:00
'./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/'));
});
2016-04-13 02:06:06 +00:00
gulp.task('less', function () {
return gulp.src('./css/*.less')
.pipe(less())
.pipe(gulp.dest('./css'));
});
gulp.task('default', ['js', 'less']);