Added gulp plumber, gulp watch, parent package with scripts and windows batch files for everything.
This commit is contained in:
parent
623aaeb01a
commit
1f618684b8
|
@ -1,14 +1,27 @@
|
|||
const
|
||||
const
|
||||
gulp = require('gulp'),
|
||||
pump = require('pump'),
|
||||
babel = require('gulp-babel');
|
||||
babel = require('gulp-babel'),
|
||||
plumber = require('gulp-plumber'),
|
||||
watch = require('gulp-watch');
|
||||
|
||||
const task_babel = function () {
|
||||
return pump([
|
||||
gulp.src('src/**/*js'),
|
||||
babel(),
|
||||
gulp.dest('dist')
|
||||
]);
|
||||
gulp.src('src/**/*js'),
|
||||
plumber(),
|
||||
babel(),
|
||||
gulp.dest('dist')
|
||||
]);
|
||||
}
|
||||
|
||||
gulp.task('babel', task_babel);
|
||||
const watch_babel = function () {
|
||||
return pump([
|
||||
watch('src/**/*js'),
|
||||
plumber(),
|
||||
babel(),
|
||||
gulp.dest('dist')
|
||||
]);
|
||||
}
|
||||
|
||||
gulp.task('build', task_babel);
|
||||
gulp.task('watch', watch_babel);
|
|
@ -21,9 +21,12 @@
|
|||
"electron": "^1.7.10",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-babel": "^7.0.0",
|
||||
"pump": "^2.0.0"
|
||||
"pump": "^2.0.0",
|
||||
"gulp-plumber": "^1.2.0",
|
||||
"gulp-watch": "^5.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"gulp": "gulp"
|
||||
"build": "gulp build",
|
||||
"watch": "gulp watch"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"name": "betterdiscord",
|
||||
"description": "BetterDiscord",
|
||||
"author": "Jiiks",
|
||||
"version": "0.4.0",
|
||||
"homepage": "https://betterdiscord.net",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"contributors": [
|
||||
"Jiiks",
|
||||
"Pohky"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Jiiks/BetterDiscordApp.git"
|
||||
},
|
||||
"private": false,
|
||||
"devDependencies": {},
|
||||
"scripts": {
|
||||
"build": "cd ./client && npm run build && cd ../core && npm run build",
|
||||
"watch_client": "cd ./client && npm run watch",
|
||||
"watch_core": "cd ./core && npm run watch"
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
npm run watch_client
|
|
@ -0,0 +1 @@
|
|||
npm run watch_core
|
Loading…
Reference in New Issue