mcopy/app/gulpfile.js

35 lines
777 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',
'./src/jquery.contextMenu.min.js',
2016-04-13 00:53:28 +00:00
'./src/w2ui-1.4.3.min.js',
2016-04-19 20:49:37 +00:00
'./src/codemirror-compressed.js', //codemirror, python mode
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/spin.js',
2016-04-13 00:53:28 +00:00
'./src/index.js'
];
gulp.task('js', () => {
2016-04-13 00:53:28 +00:00
'use strict';
return gulp.src(scripts)
.pipe(concat('app.js'))
.pipe(gulp.dest('./js/'));
});
gulp.task('less', () => {
2018-01-02 06:43:11 +00:00
return gulp.src('./less/app.less')
2016-04-13 02:06:06 +00:00
.pipe(less())
.pipe(gulp.dest('./css'));
});
gulp.task('default', gulp.parallel('js', 'less'));