mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-11 09:11:50 +00:00
39 lines
1.0 KiB
JavaScript
39 lines
1.0 KiB
JavaScript
import BrowserSync from "browser-sync";
|
|
import path from "path/posix";
|
|
|
|
export const baseDir = path.resolve("..");
|
|
export const buildFolder = path.join(baseDir, "build");
|
|
export const buildOutputFolder = path.join(baseDir, "build_output");
|
|
|
|
// Globs for atlas resources
|
|
export const rawImageResourcesGlobs = ["../res_raw/atlas.json", "../res_raw/**/*.png"];
|
|
|
|
// Globs for non-ui resources
|
|
export const nonImageResourcesGlobs = ["../res/**/*.woff2", "../res/*.ico", "../res/**/*.webm"];
|
|
|
|
// Globs for ui resources
|
|
export const imageResourcesGlobs = [
|
|
"../res/**/*.png",
|
|
"../res/**/*.svg",
|
|
"../res/**/*.jpg",
|
|
"../res/**/*.gif",
|
|
];
|
|
|
|
export const browserSync = BrowserSync.create();
|
|
|
|
// Check environment variables
|
|
|
|
const envVars = [
|
|
"SHAPEZ_CLI_SERVER_HOST",
|
|
"SHAPEZ_CLI_APPLE_ID",
|
|
"SHAPEZ_CLI_APPLE_CERT_NAME",
|
|
"SHAPEZ_CLI_GITHUB_USER",
|
|
"SHAPEZ_CLI_GITHUB_TOKEN",
|
|
];
|
|
|
|
for (let i = 0; i < envVars.length; ++i) {
|
|
if (!process.env[envVars[i]]) {
|
|
console.warn("Unset environment variable, might cause issues:", envVars[i]);
|
|
}
|
|
}
|