contact_printer/clients/electron_app/gulpfile.js

27 lines
566 B
JavaScript
Raw Permalink Normal View History

2018-07-14 14:29:43 +00:00
'use strict';
const gulp = require('gulp');
const concat = require('gulp-concat');
const minify = require('gulp-minify');
const files = [
'./index.js'
];
const targetDir = './dist/';
const targetFile = 'app.js';
const minified = 'app.min.js';
gulp.task('default', () => {});
gulp.task('scripts', () => {
return gulp.src(files)
.pipe(concat(targetFile))
.pipe(gulp.dest(targetDir));
});
gulp.task('compress', ['scripts'], () => {
gulp.src(targetDir + targetFile)
.pipe(minify())
.pipe(gulp.dest(targetDir));
});
gulp.task('default', ['scripts']);