UNPKG

@growing-web/web-builder-constants

Version:

@growing-web/web-builder-constants for Growing Web Guidelines.

32 lines (28 loc) 1.28 kB
const WEB_BUILDER_HOOK = { BUILD_ERROR: "build:error", CLOSE: "close", READY: "ready" }; const USER_CONFIG_FILES = [ "web-builder.config.ts", "web-builder.config.js", "web-builder.config.mjs", "web-builder.config.cjs", "web-builder.config.json" ]; const WEB_PROJECT_CONFIG_FILES = ["web-project.json"]; const WEB_SITE_CONFIG = "web-site.json"; const WEB_SITE_WORKSPACE = "workspace"; const DEFAULT_SERVER_PORT = 6060; const DEFAULT_SCHEMA_VERSION = "1.0.0"; const DEFAULT_ENTRY_FILE = "src/index"; const DEFAULT_OUTPUT_FORMAT = ["esm"]; const DEFAULT_OUTPUT_DIR = "dist"; const DEFAULT_CACHE_DIR = "node_modules/.web-builder/"; const DEFAULT_CACHE_DEP_DIR = `${DEFAULT_CACHE_DIR}/dep`; const DEFAULT_CACHE_CONFIG_FILE = `${DEFAULT_CACHE_DIR}/__CONFIG__.json`; const TARGET_LIB = "lib"; const TARGET_APP = "app"; const LIB_ENTRIES_EXT = ["ts", "js", "cjs", "mjs", "tsx", "jsx"]; const BUILDER_NAME = "Web Builder"; export { BUILDER_NAME, DEFAULT_CACHE_CONFIG_FILE, DEFAULT_CACHE_DEP_DIR, DEFAULT_CACHE_DIR, DEFAULT_ENTRY_FILE, DEFAULT_OUTPUT_DIR, DEFAULT_OUTPUT_FORMAT, DEFAULT_SCHEMA_VERSION, DEFAULT_SERVER_PORT, LIB_ENTRIES_EXT, TARGET_APP, TARGET_LIB, USER_CONFIG_FILES, WEB_BUILDER_HOOK, WEB_PROJECT_CONFIG_FILES, WEB_SITE_CONFIG, WEB_SITE_WORKSPACE };