-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile_original
More file actions
35 lines (29 loc) · 1.32 KB
/
gulpfile_original
File metadata and controls
35 lines (29 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// === CONFIGURABLE VARIABLES
const bpfoldername = "test";
const useMinecraftPreview = false; // Whether to target the "Minecraft Preview" version of Minecraft vs. the main store version of Minecraft
const useMinecraftDedicatedServer = false; // Whether to use Bedrock Dedicated Server - see https://www.minecraft.net/download/server/bedrock
const dedicatedServerPath = "C:/mc/bds/1.19.0/"; // if using Bedrock Dedicated Server, where to find the extracted contents of the zip package
// === END CONFIGURABLE VARIABLES
const babel = require("gulp-babel");
const gulp = require("gulp");
const uglify = require("gulp-uglify");
const rename = require("gulp-rename");
const ts = require("gulp-typescript");
const os = require("os");
const spawn = require("child_process").spawn;
const sourcemaps = require("gulp-sourcemaps");
const mcdir = useMinecraftDedicatedServer
? dedicatedServerPath
: os.homedir() +
(useMinecraftPreview
? "/AppData/Local/Packages/Microsoft.MinecraftWindowsBeta_8wekyb3d8bbwe/LocalState/games/com.mojang/"
: "/AppData/Local/Packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/LocalState/games/com.mojang/");
async function clear_rp() {
return;
}
exports.default = async function () {
return gulp
.src("*.js")
.pipe(babel())
.pipe(gulp.dest(mcdir + "development_behavior_packs/" + bpfoldername));
};