UNPKG

asajs

Version:

Make your Minecraft JsonUI with ScriptingAPI

38 lines (37 loc) 2.31 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var template_exports = {}; __export(template_exports, { config: () => config, env: () => env, gitignore: () => gitignore, globalVariables: () => globalVariables }); module.exports = __toCommonJS(template_exports); const env = "const env = {};\n\nmodule.exports = { env };"; const globalVariables = 'const {} = require("asajs");\n\nconst global_variables = {};\n\nmodule.exports = { global_variables };'; const config = '/**\n * Configuration object for the AsaJS build process.\n * @type {import(\'asajs\').Config}\n */\nconst config = {\n compiler: {\n autoCompress: false,\n fileExtension: "json",\n encodeJson: false,\n UI: {\n nameLength: 32,\n namespaceAmount: 16,\n namespaceLength: 32,\n obfuscateName: false,\n obfuscateType: false,\n },\n },\n installer: {\n autoInstall: true,\n developEvironment: true,\n previewVersion: false,\n customPath: false,\n installPath: "/your/minecraft/data/path",\n },\n manifest: {\n name: "AsaJS",\n description: "Build with AsaJS <3",\n },\n};\n\nmodule.exports = { config }'; const gitignore = "# Node packages\nnode_modules\n\n# Build Folders\n.minecraft\n.build\n.save\n\n# Build variables\nasakiyuki.env.cjs\n\n# Compress package\nMinecraft-UIBuild.mcpack"; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { config, env, gitignore, globalVariables });