add release gulpfile and deps for it
This commit is contained in:
parent
86fc492af4
commit
038d15ecf3
|
@ -24,3 +24,4 @@ dist/
|
|||
user.config.json
|
||||
tests/data
|
||||
/tests/themes/SimplerFlat
|
||||
release
|
|
@ -1,23 +1 @@
|
|||
class BetterDiscord {
|
||||
|
||||
constructor() {}
|
||||
|
||||
async asyncTest() {
|
||||
return new Promise((resolve, reject) => {
|
||||
setTimeout(() => {
|
||||
resolve("asyncTest!");
|
||||
}, 3000);
|
||||
});
|
||||
}
|
||||
|
||||
async asyncTest2() {
|
||||
const at = await this.asyncTest();
|
||||
console.log(at);
|
||||
console.log("Finished!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
BetterDiscord
|
||||
};
|
||||
module.exports = require('./main.js');
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
const
|
||||
gulp = require('gulp'),
|
||||
pump = require('pump'),
|
||||
merge = require('gulp-merge'),
|
||||
copy = require('gulp-copy'),
|
||||
copydeps = require('gulp-npm-copy-deps');
|
||||
|
||||
const client = function() {
|
||||
return pump([
|
||||
gulp.src('./client/dist/*.client.js'),
|
||||
copy('release/', { prefix: 2 })
|
||||
]);
|
||||
}
|
||||
|
||||
const core = function() {
|
||||
return pump([
|
||||
gulp.src('./core/dist/**/*'),
|
||||
copy('release/', { prefix: 2 })
|
||||
]);
|
||||
}
|
||||
|
||||
const core2 = function() {
|
||||
return pump([
|
||||
gulp.src('./core/index.js'),
|
||||
copy('release/', { prefix: 1 })
|
||||
]);
|
||||
}
|
||||
|
||||
const cssEditor = function() {
|
||||
return pump([
|
||||
gulp.src('./csseditor/dist/**/*'),
|
||||
copy('release/csseditor', { prefix: 2 })
|
||||
]);
|
||||
}
|
||||
|
||||
const deps = function() {
|
||||
return copydeps('./', './release');
|
||||
}
|
||||
|
||||
const bindings = function() {
|
||||
return pump([
|
||||
gulp.src('./other/node_sass_bindings/**/*'),
|
||||
copy('release/node_modules/node-sass/vendor', { prefix: 2 })
|
||||
]);
|
||||
}
|
||||
|
||||
gulp.task('release', function () { return merge(client(), core(), core2(), cssEditor(), deps(), bindings())});
|
11
package.json
11
package.json
|
@ -15,6 +15,10 @@
|
|||
"url": "https://github.com/Jiiks/BetterDiscordApp.git"
|
||||
},
|
||||
"private": false,
|
||||
"dependencies": {
|
||||
"node-sass": "^4.7.2",
|
||||
"nedb": "^1.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-core": "^6.26.0",
|
||||
"babel-loader": "^7.1.2",
|
||||
|
@ -32,11 +36,15 @@
|
|||
"filewatcher": "^3.0.1",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-babel": "^7.0.0",
|
||||
"gulp-copy": "^1.1.0",
|
||||
"gulp-merge": "^0.1.1",
|
||||
"gulp-npm-copy-deps": "^1.0.2",
|
||||
"gulp-plumber": "^1.2.0",
|
||||
"gulp-watch": "^5.0.0",
|
||||
"html-webpack-plugin": "^3.0.6",
|
||||
"jquery": "^3.2.1",
|
||||
"lodash": "^4.17.4",
|
||||
"merge-stream": "^1.0.1",
|
||||
"nedb": "^1.8.0",
|
||||
"node-gyp": "^3.6.2",
|
||||
"node-sass": "^4.7.2",
|
||||
|
@ -63,6 +71,7 @@
|
|||
"watch_installer": "npm run watch --prefix installer",
|
||||
"lint": "eslint -f unix client/src core/src csseditor/src",
|
||||
"test": "npm run build && npm run lint",
|
||||
"build_node-sass": "node scripts/build-node-sass.js"
|
||||
"build_node-sass": "node scripts/build-node-sass.js",
|
||||
"release": "npm run build && gulp release"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue