38 lines
991 B
JavaScript
38 lines
991 B
JavaScript
var gulp = require('gulp');
|
|
const webpack = require('webpack-stream');
|
|
var gulpCopy = require('gulp-copy');
|
|
|
|
const sourcePath = "src/modules/removeChat";
|
|
const destPath = "dist/NTTDATA/modules/removeChat";
|
|
|
|
gulp.task('build', function() {
|
|
return gulp.src('./*')
|
|
.pipe(webpack(require('./webpack.config.js') ))
|
|
.pipe(gulp.dest(destPath));
|
|
});
|
|
|
|
|
|
gulp.task('copyi18n',function(cb) {
|
|
return gulp.src(sourcePath+'/i18n/**/*')
|
|
.pipe(gulp.dest(destPath+'/i18n'))
|
|
});
|
|
|
|
gulp.task('copyViews',function(cb) {
|
|
return gulp.src(sourcePath+'/views/**/*')
|
|
.pipe(gulp.dest(destPath+'/views'))
|
|
});
|
|
|
|
// gulp.task('copyConfig',function(cb) {
|
|
// return gulp.src(sourcePath+'/config.json')
|
|
// .pipe(gulp.dest(destPath))
|
|
// });
|
|
|
|
|
|
// gulp.task('copyExampleConfig',function(cb) {
|
|
// return gulp.src(sourcePath+'/example-home-button-state.txt')
|
|
// .pipe(gulp.dest(destPath))
|
|
// });
|
|
|
|
gulp.task('copyResources', gulp.series('copyi18n','copyViews'));
|
|
|