@powerhousedao/builder-tools 6.0.0-dev.69 → 6.0.0-dev.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.d.ts +2 -0
- package/dist/bundle.d.ts.map +1 -0
- package/dist/connect-utils/vite-config.d.ts.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +111942 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -17
- package/dist/connect-build/build.d.ts +0 -6
- package/dist/connect-build/build.d.ts.map +0 -1
- package/dist/connect-build/build.js +0 -54
- package/dist/connect-build/build.js.map +0 -1
- package/dist/connect-build/constants.d.ts +0 -11
- package/dist/connect-build/constants.d.ts.map +0 -1
- package/dist/connect-build/constants.js +0 -11
- package/dist/connect-build/constants.js.map +0 -1
- package/dist/connect-build/helpers.d.ts +0 -37
- package/dist/connect-build/helpers.d.ts.map +0 -1
- package/dist/connect-build/helpers.js +0 -111
- package/dist/connect-build/helpers.js.map +0 -1
- package/dist/connect-build/index.d.ts +0 -5
- package/dist/connect-build/index.d.ts.map +0 -1
- package/dist/connect-build/index.js +0 -4
- package/dist/connect-build/index.js.map +0 -1
- package/dist/connect-build/preview.d.ts +0 -3
- package/dist/connect-build/preview.d.ts.map +0 -1
- package/dist/connect-build/preview.js +0 -19
- package/dist/connect-build/preview.js.map +0 -1
- package/dist/connect-build/types.d.ts +0 -27
- package/dist/connect-build/types.d.ts.map +0 -1
- package/dist/connect-build/types.js +0 -2
- package/dist/connect-build/types.js.map +0 -1
- package/dist/connect-studio/index.d.ts +0 -3
- package/dist/connect-studio/index.d.ts.map +0 -1
- package/dist/connect-studio/index.js +0 -2
- package/dist/connect-studio/index.js.map +0 -1
- package/dist/connect-studio/server.d.ts +0 -3
- package/dist/connect-studio/server.d.ts.map +0 -1
- package/dist/connect-studio/server.js +0 -234
- package/dist/connect-studio/server.js.map +0 -1
- package/dist/connect-studio/studio.d.ts +0 -3
- package/dist/connect-studio/studio.d.ts.map +0 -1
- package/dist/connect-studio/studio.js +0 -66
- package/dist/connect-studio/studio.js.map +0 -1
- package/dist/connect-studio/types.d.ts +0 -28
- package/dist/connect-studio/types.d.ts.map +0 -1
- package/dist/connect-studio/types.js +0 -2
- package/dist/connect-studio/types.js.map +0 -1
- package/dist/connect-utils/build.js +0 -21
- package/dist/connect-utils/build.js.map +0 -1
- package/dist/connect-utils/constants.js +0 -5
- package/dist/connect-utils/constants.js.map +0 -1
- package/dist/connect-utils/helpers.js +0 -265
- package/dist/connect-utils/helpers.js.map +0 -1
- package/dist/connect-utils/index.js +0 -15
- package/dist/connect-utils/index.js.map +0 -1
- package/dist/connect-utils/preview.js +0 -33
- package/dist/connect-utils/preview.js.map +0 -1
- package/dist/connect-utils/studio.js +0 -30
- package/dist/connect-utils/studio.js.map +0 -1
- package/dist/connect-utils/types.js +0 -2
- package/dist/connect-utils/types.js.map +0 -1
- package/dist/connect-utils/vite-config.js +0 -268
- package/dist/connect-utils/vite-config.js.map +0 -1
- package/dist/connect-utils/vite-plugins/base.js +0 -130
- package/dist/connect-utils/vite-plugins/base.js.map +0 -1
- package/dist/connect-utils/vite-plugins/document-models-hmr.js +0 -62
- package/dist/connect-utils/vite-plugins/document-models-hmr.js.map +0 -1
- package/dist/connect-utils/vite-plugins/editors-hmr.js +0 -61
- package/dist/connect-utils/vite-plugins/editors-hmr.js.map +0 -1
- package/dist/connect-utils/vite-plugins/external-packages.js +0 -127
- package/dist/connect-utils/vite-plugins/external-packages.js.map +0 -1
- package/dist/connect-utils/vite-plugins/importmap.js +0 -243
- package/dist/connect-utils/vite-plugins/importmap.js.map +0 -1
- package/dist/connect-utils/vite-plugins/ph-external-packages.js +0 -88
- package/dist/connect-utils/vite-plugins/ph-external-packages.js.map +0 -1
- package/dist/connect-utils/vite-plugins/studio.js +0 -33
- package/dist/connect-utils/vite-plugins/studio.js.map +0 -1
- package/dist/editor-utils/components/documentEditor.d.ts +0 -7
- package/dist/editor-utils/components/documentEditor.d.ts.map +0 -1
- package/dist/editor-utils/components/documentEditor.js +0 -6
- package/dist/editor-utils/components/documentEditor.js.map +0 -1
- package/dist/editor-utils/components/editorToolbar.d.ts +0 -11
- package/dist/editor-utils/components/editorToolbar.d.ts.map +0 -1
- package/dist/editor-utils/components/editorToolbar.js +0 -6
- package/dist/editor-utils/components/editorToolbar.js.map +0 -1
- package/dist/editor-utils/components/editorWorksheet.d.ts +0 -7
- package/dist/editor-utils/components/editorWorksheet.d.ts.map +0 -1
- package/dist/editor-utils/components/editorWorksheet.js +0 -5
- package/dist/editor-utils/components/editorWorksheet.js.map +0 -1
- package/dist/editor-utils/components/index.d.ts +0 -9
- package/dist/editor-utils/components/index.d.ts.map +0 -1
- package/dist/editor-utils/components/index.js +0 -10
- package/dist/editor-utils/components/index.js.map +0 -1
- package/dist/editor-utils/components/styles.d.ts +0 -40
- package/dist/editor-utils/components/styles.d.ts.map +0 -1
- package/dist/editor-utils/components/styles.js +0 -79
- package/dist/editor-utils/components/styles.js.map +0 -1
- package/dist/editor-utils/components/stylesVariant.d.ts +0 -40
- package/dist/editor-utils/components/stylesVariant.d.ts.map +0 -1
- package/dist/editor-utils/components/stylesVariant.js +0 -89
- package/dist/editor-utils/components/stylesVariant.js.map +0 -1
- package/dist/editor-utils/components/textInput.d.ts +0 -20
- package/dist/editor-utils/components/textInput.d.ts.map +0 -1
- package/dist/editor-utils/components/textInput.js +0 -84
- package/dist/editor-utils/components/textInput.js.map +0 -1
- package/dist/editor-utils/components/textInputVariant.d.ts +0 -21
- package/dist/editor-utils/components/textInputVariant.d.ts.map +0 -1
- package/dist/editor-utils/components/textInputVariant.js +0 -93
- package/dist/editor-utils/components/textInputVariant.js.map +0 -1
- package/dist/editor-utils/components/toolbarButton.d.ts +0 -7
- package/dist/editor-utils/components/toolbarButton.d.ts.map +0 -1
- package/dist/editor-utils/components/toolbarButton.js +0 -9
- package/dist/editor-utils/components/toolbarButton.js.map +0 -1
- package/dist/editor-utils/index.d.ts +0 -3
- package/dist/editor-utils/index.d.ts.map +0 -1
- package/dist/editor-utils/index.js +0 -3
- package/dist/editor-utils/index.js.map +0 -1
- package/dist/editor-utils/reducer.d.ts +0 -3
- package/dist/editor-utils/reducer.d.ts.map +0 -1
- package/dist/editor-utils/reducer.js +0 -25
- package/dist/editor-utils/reducer.js.map +0 -1
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/builder-tools",
|
|
3
|
-
"version": "6.0.0-dev.
|
|
3
|
+
"version": "6.0.0-dev.70",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"publishConfig": {
|
|
@@ -15,17 +15,14 @@
|
|
|
15
15
|
],
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/
|
|
25
|
-
"
|
|
26
|
-
"tsx": "4.21.0"
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
24
|
+
"@types/bun": "1.3.8",
|
|
25
|
+
"tsx": "4.21.0",
|
|
29
26
|
"vite": "7.3.1",
|
|
30
27
|
"@sentry/vite-plugin": "^4.3.0",
|
|
31
28
|
"@tailwindcss/vite": "4.1.18",
|
|
@@ -40,18 +37,14 @@
|
|
|
40
37
|
"magic-string": "^0.30.17",
|
|
41
38
|
"read-pkg": "10.1.0",
|
|
42
39
|
"resolve.exports": "^2.0.3",
|
|
43
|
-
"vite-plugin-node-polyfills": "0.25.0",
|
|
44
40
|
"zod": "4.3.6",
|
|
45
|
-
"document-model": "6.0.0-dev.
|
|
46
|
-
"@powerhousedao/
|
|
47
|
-
"@powerhousedao/
|
|
48
|
-
},
|
|
49
|
-
"peerDependencies": {
|
|
50
|
-
"react": ">=19.0.0",
|
|
51
|
-
"react-dom": ">=19.0.0"
|
|
41
|
+
"document-model": "6.0.0-dev.70",
|
|
42
|
+
"@powerhousedao/config": "6.0.0-dev.70",
|
|
43
|
+
"@powerhousedao/shared": "6.0.0-dev.70"
|
|
52
44
|
},
|
|
53
45
|
"scripts": {
|
|
54
46
|
"tsc": "tsc",
|
|
55
|
-
"lint": "eslint"
|
|
47
|
+
"lint": "eslint",
|
|
48
|
+
"build:bundle": "bun run ./bundle.ts"
|
|
56
49
|
}
|
|
57
50
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ConnectBuildOptions } from "./types.js";
|
|
2
|
-
/** Builds Connect with a given project's local and external packages included
|
|
3
|
-
* @see {@link ConnectBuildOptions} for options
|
|
4
|
-
*/
|
|
5
|
-
export declare function buildConnect(options: ConnectBuildOptions): Promise<void>;
|
|
6
|
-
//# sourceMappingURL=build.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../connect-build/build.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;GAEG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,mBAAmB,iBAmG9D"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { getConfig } from "@powerhousedao/config/node";
|
|
2
|
-
import { mkdir, rm, writeFile } from "fs/promises";
|
|
3
|
-
import { join } from "path";
|
|
4
|
-
import { PH_DIR_NAME } from "../connect-utils/constants.js";
|
|
5
|
-
import { appendToHtmlHead, copyConnect, makeImportScriptFromPackages, prependToHtmlHead, resolveConnectBundle, runTsc, } from "../connect-utils/helpers.js";
|
|
6
|
-
import { CONNECT_BUILD_ASSETS_DIR_NAME, CONNECT_BUILD_DIR_NAME, CONNECT_BUILD_DIST_DIR_NAME, CONNECT_BUILD_EXTERNAL_PACKAGES_CSS_FILE_NAME, CONNECT_BUILD_PROJECT_DIST_DIR_NAME, DEFAULT_ASSETS_DIR_NAME, DEFAULT_EXTERNAL_PACKAGES_FILE_NAME, DEFAULT_STYLES_FILE_NAME, POWERHOUSE_CONFIG_FILE_NAME, } from "./constants.js";
|
|
7
|
-
import { buildAndBundleCss, bundleExternalPackages, copyAssets, } from "./helpers.js";
|
|
8
|
-
/** Builds Connect with a given project's local and external packages included
|
|
9
|
-
* @see {@link ConnectBuildOptions} for options
|
|
10
|
-
*/
|
|
11
|
-
export async function buildConnect(options) {
|
|
12
|
-
const { base = process.env.BASE_PATH || "/", projectRoot = process.cwd(), assetsDirName = DEFAULT_ASSETS_DIR_NAME, externalPackagesFileName = DEFAULT_EXTERNAL_PACKAGES_FILE_NAME, stylesFileName = DEFAULT_STYLES_FILE_NAME, connectPath = resolveConnectBundle(), } = options;
|
|
13
|
-
// In this context, `project*` paths are relative to the project root
|
|
14
|
-
// `connectBuild*` paths are relative to the Connect build directory
|
|
15
|
-
const connectBuildDir = join(projectRoot, PH_DIR_NAME, CONNECT_BUILD_DIR_NAME);
|
|
16
|
-
// Remove and recreate the Connect build directory so that we are starting from scratch
|
|
17
|
-
await rm(connectBuildDir, { recursive: true, force: true });
|
|
18
|
-
await mkdir(connectBuildDir, { recursive: true });
|
|
19
|
-
// Copy the Connect dist directory to the Connect build directory, this is either a local installation or the dist code from the installed npm package
|
|
20
|
-
const connectBuildDistDir = join(connectBuildDir, CONNECT_BUILD_DIST_DIR_NAME);
|
|
21
|
-
copyConnect(connectPath, connectBuildDistDir);
|
|
22
|
-
// Run tsc to build the project
|
|
23
|
-
const connectBuildProjectTscOutDir = join(connectBuildDir, CONNECT_BUILD_PROJECT_DIST_DIR_NAME);
|
|
24
|
-
runTsc(connectBuildProjectTscOutDir);
|
|
25
|
-
// generate the external packages import script
|
|
26
|
-
const projectPowerhouseConfigPath = join(projectRoot, POWERHOUSE_CONFIG_FILE_NAME);
|
|
27
|
-
const config = getConfig(projectPowerhouseConfigPath);
|
|
28
|
-
const packages = config.packages?.map((p) => p.packageName) ?? [];
|
|
29
|
-
const connectBuildProjectDistDir = join(connectBuildDir, CONNECT_BUILD_PROJECT_DIST_DIR_NAME);
|
|
30
|
-
const connectBuildProjectJsPath = join(connectBuildProjectDistDir, "index.js");
|
|
31
|
-
const externalPackagesImportScript = makeImportScriptFromPackages({
|
|
32
|
-
packages,
|
|
33
|
-
localJsPath: connectBuildProjectJsPath,
|
|
34
|
-
importStyles: false,
|
|
35
|
-
});
|
|
36
|
-
const connectBuildExternalPackagesImportScriptPath = join(connectBuildDir, externalPackagesFileName);
|
|
37
|
-
await writeFile(connectBuildExternalPackagesImportScriptPath, externalPackagesImportScript);
|
|
38
|
-
// Bundle the external packages with esbuild so that they can be referenced asynchronously from the Connect build
|
|
39
|
-
await bundleExternalPackages(connectBuildExternalPackagesImportScriptPath, connectBuildDistDir);
|
|
40
|
-
// Copy over assets in the project assets dir so that editors etc. that might need them can reference them with /assets
|
|
41
|
-
const projectAssetsDir = join(projectRoot, assetsDirName);
|
|
42
|
-
const connectBuildAssetsDir = join(connectBuildDistDir, CONNECT_BUILD_ASSETS_DIR_NAME);
|
|
43
|
-
await copyAssets(projectAssetsDir, connectBuildAssetsDir);
|
|
44
|
-
// Run tailwind to build and bundle the CSS and output it to the Connect build dist assets directory
|
|
45
|
-
const projectStylesPath = join(projectRoot, stylesFileName);
|
|
46
|
-
const externalPackagesStylesPath = join(connectBuildAssetsDir, CONNECT_BUILD_EXTERNAL_PACKAGES_CSS_FILE_NAME);
|
|
47
|
-
await buildAndBundleCss(projectStylesPath, externalPackagesStylesPath);
|
|
48
|
-
// Add a link to the built project styles, since the original Connect build does not know about them
|
|
49
|
-
const connectBuildIndexHtmlPath = join(connectBuildDistDir, "index.html");
|
|
50
|
-
await appendToHtmlHead(connectBuildIndexHtmlPath, `<link rel="stylesheet" href="./${CONNECT_BUILD_ASSETS_DIR_NAME}/${CONNECT_BUILD_EXTERNAL_PACKAGES_CSS_FILE_NAME}">`);
|
|
51
|
-
// Add base tag to index.html
|
|
52
|
-
await prependToHtmlHead(connectBuildIndexHtmlPath, `<base href="${base}${base.endsWith("/") ? "" : "/"}">`);
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=build.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../connect-build/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,4BAA4B,EAC5B,iBAAiB,EACjB,oBAAoB,EACpB,MAAM,GACP,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,6BAA6B,EAC7B,sBAAsB,EACtB,2BAA2B,EAC3B,6CAA6C,EAC7C,mCAAmC,EACnC,uBAAuB,EACvB,mCAAmC,EACnC,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,UAAU,GACX,MAAM,cAAc,CAAC;AAGtB;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,OAA4B;IAC7D,MAAM,EACJ,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,GAAG,EACnC,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,EAC3B,aAAa,GAAG,uBAAuB,EACvC,wBAAwB,GAAG,mCAAmC,EAC9D,cAAc,GAAG,wBAAwB,EACzC,WAAW,GAAG,oBAAoB,EAAE,GACrC,GAAG,OAAO,CAAC;IAEZ,qEAAqE;I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jH,MAAM,sBAAsB,CAC1B,4CAA4C,EAC5C,mBAAmB,CACpB,CAAC;IAEF,uHAAuH;IACvH,MAAM,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;IAC1D,MAAM,qBAAqB,GAAG,IAAI,CAChC,mBAAmB,EACnB,6BAA6B,CAC9B,CAAC;IACF,MAAM,UAAU,CAAC,gBAAgB,EAAE,qBAAqB,CAAC,CAAC;IAE1D,oGAAoG;IACpG,MAAM,iBAAiB,GAAG,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IAC5D,MAAM,0BAA0B,GAAG,IAAI,CACrC,qBAAqB,EACrB,6CAA6C,CAC9C,CAAC;IACF,MAAM,iBAAiB,CAAC,iBAAiB,EAAE,0BAA0B,CAAC,CAAC;IAEvE,oGAAoG;IACpG,MAAM,yBAAyB,GAAG,IAAI,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAAC;IAC1E,MAAM,gBAAgB,CACpB,yBAAyB,EACzB,kCAAkC,6BAA6B,IAAI,6CAA6C,IAAI,CACrH,CAAC;IAEF,6BAA6B;IAC7B,MAAM,iBAAiB,CACrB,yBAAyB,EACzB,eAAe,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_ASSETS_DIR_NAME = "assets";
|
|
2
|
-
export declare const DEFAULT_EXTERNAL_PACKAGES_FILE_NAME = "external-packages.js";
|
|
3
|
-
export declare const DEFAULT_STYLES_FILE_NAME = "style.css";
|
|
4
|
-
export declare const CONNECT_BUILD_DIR_NAME = "connect-build";
|
|
5
|
-
export declare const CONNECT_BUILD_DIST_DIR_NAME = "dist";
|
|
6
|
-
export declare const CONNECT_BUILD_ASSETS_DIR_NAME = "assets";
|
|
7
|
-
export declare const CONNECT_BUILD_INDEX_HTML_FILE_NAME = "index.html";
|
|
8
|
-
export declare const CONNECT_BUILD_EXTERNAL_PACKAGES_CSS_FILE_NAME = "external-packages.css";
|
|
9
|
-
export declare const CONNECT_BUILD_PROJECT_DIST_DIR_NAME = "project-dist";
|
|
10
|
-
export declare const POWERHOUSE_CONFIG_FILE_NAME = "powerhouse.config.json";
|
|
11
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../connect-build/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,WAAW,CAAC;AAChD,eAAO,MAAM,mCAAmC,yBAAyB,CAAC;AAC1E,eAAO,MAAM,wBAAwB,cAAc,CAAC;AACpD,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AACtD,eAAO,MAAM,2BAA2B,SAAS,CAAC;AAClD,eAAO,MAAM,6BAA6B,WAAW,CAAC;AACtD,eAAO,MAAM,kCAAkC,eAAe,CAAC;AAC/D,eAAO,MAAM,6CAA6C,0BACjC,CAAC;AAC1B,eAAO,MAAM,mCAAmC,iBAAiB,CAAC;AAClE,eAAO,MAAM,2BAA2B,2BAA2B,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export const DEFAULT_ASSETS_DIR_NAME = "assets";
|
|
2
|
-
export const DEFAULT_EXTERNAL_PACKAGES_FILE_NAME = "external-packages.js";
|
|
3
|
-
export const DEFAULT_STYLES_FILE_NAME = "style.css";
|
|
4
|
-
export const CONNECT_BUILD_DIR_NAME = "connect-build";
|
|
5
|
-
export const CONNECT_BUILD_DIST_DIR_NAME = "dist";
|
|
6
|
-
export const CONNECT_BUILD_ASSETS_DIR_NAME = "assets";
|
|
7
|
-
export const CONNECT_BUILD_INDEX_HTML_FILE_NAME = "index.html";
|
|
8
|
-
export const CONNECT_BUILD_EXTERNAL_PACKAGES_CSS_FILE_NAME = "external-packages.css";
|
|
9
|
-
export const CONNECT_BUILD_PROJECT_DIST_DIR_NAME = "project-dist";
|
|
10
|
-
export const POWERHOUSE_CONFIG_FILE_NAME = "powerhouse.config.json";
|
|
11
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../connect-build/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC;AAChD,MAAM,CAAC,MAAM,mCAAmC,GAAG,sBAAsB,CAAC;AAC1E,MAAM,CAAC,MAAM,wBAAwB,GAAG,WAAW,CAAC;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAC;AACtD,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAClD,MAAM,CAAC,MAAM,6BAA6B,GAAG,QAAQ,CAAC;AACtD,MAAM,CAAC,MAAM,kCAAkC,GAAG,YAAY,CAAC;AAC/D,MAAM,CAAC,MAAM,6CAA6C,GACxD,uBAAuB,CAAC;AAC1B,MAAM,CAAC,MAAM,mCAAmC,GAAG,cAAc,CAAC;AAClE,MAAM,CAAC,MAAM,2BAA2B,GAAG,wBAAwB,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/** Runs esbuild to bundle the external packages */
|
|
2
|
-
export declare function bundleExternalPackages(externalPackagesImportScriptPath: string, connectBuildDistDirPath: string): Promise<import("esbuild").BuildResult<{
|
|
3
|
-
entryPoints: string[];
|
|
4
|
-
outdir: string;
|
|
5
|
-
bundle: true;
|
|
6
|
-
treeShaking: true;
|
|
7
|
-
minify: false;
|
|
8
|
-
sourcemap: true;
|
|
9
|
-
metafile: true;
|
|
10
|
-
format: "esm";
|
|
11
|
-
logLevel: "warning";
|
|
12
|
-
external: string[];
|
|
13
|
-
banner: {
|
|
14
|
-
js: string;
|
|
15
|
-
};
|
|
16
|
-
define: {
|
|
17
|
-
"process.env.NODE_ENV": string;
|
|
18
|
-
};
|
|
19
|
-
loader: {
|
|
20
|
-
".png": "dataurl";
|
|
21
|
-
".mp4": "dataurl";
|
|
22
|
-
".svg": "dataurl";
|
|
23
|
-
".jpg": "dataurl";
|
|
24
|
-
".jpeg": "dataurl";
|
|
25
|
-
".gif": "dataurl";
|
|
26
|
-
".webp": "dataurl";
|
|
27
|
-
".avif": "dataurl";
|
|
28
|
-
};
|
|
29
|
-
plugins: import("esbuild").Plugin[];
|
|
30
|
-
}>>;
|
|
31
|
-
/** Copies the assets from the project to the connect build dist assets directory */
|
|
32
|
-
export declare function copyAssets(projectAssetsDir: string, connectBuildAssetsDir: string): Promise<void>;
|
|
33
|
-
/** Builds and bundles the CSS with tailwind */
|
|
34
|
-
export declare function buildAndBundleCss(inputPath: string, outputPath: string): Promise<{
|
|
35
|
-
css: string;
|
|
36
|
-
}>;
|
|
37
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../connect-build/helpers.ts"],"names":[],"mappings":"AAMA,mDAAmD;AACnD,wBAAsB,sBAAsB,CAC1C,gCAAgC,EAAE,MAAM,EACxC,uBAAuB,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqDhC;AAED,oFAAoF;AACpF,wBAAsB,UAAU,CAC9B,gBAAgB,EAAE,MAAM,EACxB,qBAAqB,EAAE,MAAM,iBAa9B;AAED,+CAA+C;AAC/C,wBAAsB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;;GA0C5E"}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { build } from "esbuild";
|
|
2
|
-
import { nodeModulesPolyfillPlugin } from "esbuild-plugins-node-modules-polyfill";
|
|
3
|
-
import { existsSync } from "fs";
|
|
4
|
-
import { cp, mkdir, readFile, writeFile } from "fs/promises";
|
|
5
|
-
import { dirname, resolve } from "path";
|
|
6
|
-
/** Runs esbuild to bundle the external packages */
|
|
7
|
-
export async function bundleExternalPackages(externalPackagesImportScriptPath, connectBuildDistDirPath) {
|
|
8
|
-
const result = await build({
|
|
9
|
-
entryPoints: [externalPackagesImportScriptPath],
|
|
10
|
-
outdir: connectBuildDistDirPath,
|
|
11
|
-
bundle: true,
|
|
12
|
-
treeShaking: true,
|
|
13
|
-
minify: false,
|
|
14
|
-
sourcemap: true,
|
|
15
|
-
metafile: true,
|
|
16
|
-
format: "esm",
|
|
17
|
-
logLevel: "warning",
|
|
18
|
-
external: ["react", "react-dom", "react/*", "react-dom/*"],
|
|
19
|
-
banner: {
|
|
20
|
-
// https://stackoverflow.com/a/77753164 - handle cjs requires of external dependencies
|
|
21
|
-
js: `import * as requireReact from 'react';
|
|
22
|
-
import * as requireReactDom from 'react-dom';
|
|
23
|
-
import * as requireReactDomClient from 'react-dom/client';
|
|
24
|
-
import * as requireReactJsxRuntime from 'react/jsx-runtime';
|
|
25
|
-
|
|
26
|
-
function require(m) {
|
|
27
|
-
if (m === 'react') return requireReact;
|
|
28
|
-
if (m === 'react-dom') return requireReactDom;
|
|
29
|
-
if (m === 'react-dom/client') return requireReactDomClient;
|
|
30
|
-
if (m === 'react/jsx-runtime') return requireReactJsxRuntime;
|
|
31
|
-
throw new Error(\`Module \${m} not found\`);
|
|
32
|
-
}`,
|
|
33
|
-
},
|
|
34
|
-
define: {
|
|
35
|
-
"process.env.NODE_ENV": '"production"',
|
|
36
|
-
},
|
|
37
|
-
loader: {
|
|
38
|
-
".png": "dataurl",
|
|
39
|
-
".mp4": "dataurl",
|
|
40
|
-
".svg": "dataurl",
|
|
41
|
-
".jpg": "dataurl",
|
|
42
|
-
".jpeg": "dataurl",
|
|
43
|
-
".gif": "dataurl",
|
|
44
|
-
".webp": "dataurl",
|
|
45
|
-
".avif": "dataurl",
|
|
46
|
-
},
|
|
47
|
-
plugins: [
|
|
48
|
-
nodeModulesPolyfillPlugin({
|
|
49
|
-
fallback: "empty",
|
|
50
|
-
modules: ["process", "events"],
|
|
51
|
-
globals: {
|
|
52
|
-
Buffer: false,
|
|
53
|
-
process: true,
|
|
54
|
-
},
|
|
55
|
-
}),
|
|
56
|
-
],
|
|
57
|
-
});
|
|
58
|
-
return result;
|
|
59
|
-
}
|
|
60
|
-
/** Copies the assets from the project to the connect build dist assets directory */
|
|
61
|
-
export async function copyAssets(projectAssetsDir, connectBuildAssetsDir) {
|
|
62
|
-
try {
|
|
63
|
-
if (!existsSync(projectAssetsDir)) {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
if (!existsSync(connectBuildAssetsDir)) {
|
|
67
|
-
await mkdir(connectBuildAssetsDir, { recursive: true });
|
|
68
|
-
}
|
|
69
|
-
await cp(projectAssetsDir, connectBuildAssetsDir);
|
|
70
|
-
}
|
|
71
|
-
catch (error) {
|
|
72
|
-
console.error("Error copying assets", { error });
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
/** Builds and bundles the CSS with tailwind */
|
|
76
|
-
export async function buildAndBundleCss(inputPath, outputPath) {
|
|
77
|
-
try {
|
|
78
|
-
const projectDir = dirname(inputPath);
|
|
79
|
-
const tempCssPath = resolve(projectDir, "dist/style.css");
|
|
80
|
-
// Ensure directories exist
|
|
81
|
-
await mkdir(dirname(outputPath), { recursive: true });
|
|
82
|
-
await mkdir(dirname(tempCssPath), { recursive: true });
|
|
83
|
-
const { spawn } = await import("child_process");
|
|
84
|
-
// Use a proper spawn wrapper instead of promisify(spawn)
|
|
85
|
-
await new Promise((resolve, reject) => {
|
|
86
|
-
const child = spawn("npx", ["@tailwindcss/cli", "-i", inputPath, "-o", tempCssPath], {
|
|
87
|
-
cwd: projectDir,
|
|
88
|
-
stdio: "inherit",
|
|
89
|
-
});
|
|
90
|
-
child.on("close", (code) => {
|
|
91
|
-
if (code === 0) {
|
|
92
|
-
resolve(code);
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
reject(new Error(`CSS build failed with exit code ${code}`));
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
child.on("error", (error) => {
|
|
99
|
-
reject(error);
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
const builtCss = await readFile(tempCssPath, "utf8");
|
|
103
|
-
await writeFile(outputPath, builtCss, "utf8");
|
|
104
|
-
return { css: builtCss };
|
|
105
|
-
}
|
|
106
|
-
catch (error) {
|
|
107
|
-
console.error("Error building and bundling CSS", { error });
|
|
108
|
-
throw error;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../connect-build/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAExC,mDAAmD;AACnD,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,gCAAwC,EACxC,uBAA+B;IAE/B,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC;QACzB,WAAW,EAAE,CAAC,gCAAgC,CAAC;QAC/C,MAAM,EAAE,uBAAuB;QAC/B,MAAM,EAAE,IAAI;QACZ,WAAW,EAAE,IAAI;QACjB,MAAM,EAAE,KAAK;QACb,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,CAAC;QAC1D,MAAM,EAAE;YACN,sFAAsF;YACtF,EAAE,EAAE;;;;;;;;;;;aAWG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OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC5D,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../connect-build/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,cAAc,gBAAgB,CAAC;AAC/B,YAAY,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../connect-build/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../connect-build/preview.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,wBAAsB,cAAc,CAAC,OAAO,EAAE,qBAAqB,iBAuBlE"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { join } from "node:path";
|
|
2
|
-
import { preview } from "vite";
|
|
3
|
-
import { PH_DIR_NAME } from "../connect-utils/constants.js";
|
|
4
|
-
import { CONNECT_BUILD_DIR_NAME } from "./constants.js";
|
|
5
|
-
export async function previewConnect(options) {
|
|
6
|
-
const { base = process.env.BASE_PATH || "/", projectRoot = process.cwd(), port = 4173, open = true, } = options;
|
|
7
|
-
const connectBuildDir = join(projectRoot, PH_DIR_NAME, CONNECT_BUILD_DIR_NAME);
|
|
8
|
-
const previewServer = await preview({
|
|
9
|
-
base,
|
|
10
|
-
root: connectBuildDir,
|
|
11
|
-
preview: {
|
|
12
|
-
port,
|
|
13
|
-
open,
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
previewServer.printUrls();
|
|
17
|
-
previewServer.bindCLIShortcuts({ print: true });
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=preview.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../connect-build/preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAGxD,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,OAA8B;IACjE,MAAM,EACJ,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,GAAG,EACnC,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,EAC3B,IAAI,GAAG,IAAI,EACX,IAAI,GAAG,IAAI,GACZ,GAAG,OAAO,CAAC;IACZ,MAAM,eAAe,GAAG,IAAI,CAC1B,WAAW,EACX,WAAW,EACX,sBAAsB,CACvB,CAAC;IACF,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC;QAClC,IAAI;QACJ,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE;YACP,IAAI;YACJ,IAAI;SACL;KACF,CAAC,CAAC;IAEH,aAAa,CAAC,SAAS,EAAE,CAAC;IAC1B,aAAa,CAAC,gBAAgB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/** Options for building Connect with a given project's local and external packages included */
|
|
2
|
-
export type ConnectBuildOptions = {
|
|
3
|
-
/** The base path for the app, defaults to "/" */
|
|
4
|
-
base?: string;
|
|
5
|
-
/** The root directory of the project, defaults to `process.cwd()` */
|
|
6
|
-
projectRoot?: string;
|
|
7
|
-
/** The name of the assets directory, defaults to DEFAULT_ASSETS_DIR_NAME */
|
|
8
|
-
assetsDirName?: string;
|
|
9
|
-
/** The name of the external packages file, defaults to DEFAULT_EXTERNAL_PACKAGES_FILE_NAME */
|
|
10
|
-
externalPackagesFileName?: string;
|
|
11
|
-
/** The name of the styles file, defaults to DEFAULT_STYLES_FILE_NAME */
|
|
12
|
-
stylesFileName?: string;
|
|
13
|
-
/** The path to the Connect dist directory, calls `resolveConnect()` if not provided */
|
|
14
|
-
connectPath?: string;
|
|
15
|
-
};
|
|
16
|
-
/** Options for previewing a built Connect project */
|
|
17
|
-
export type ConnectPreviewOptions = {
|
|
18
|
-
/** The base path for the app, defaults to "/" */
|
|
19
|
-
base?: string;
|
|
20
|
-
/** The root directory of the project, defaults to `process.cwd()` */
|
|
21
|
-
projectRoot?: string;
|
|
22
|
-
/** The port to run the server on, defaults to 4173 (vite preview default) */
|
|
23
|
-
port?: number;
|
|
24
|
-
/** Whether to open the browser, defaults to true */
|
|
25
|
-
open?: boolean;
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../connect-build/types.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,MAAM,MAAM,mBAAmB,GAAG;IAChC,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8FAA8F;IAC9F,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,wEAAwE;IACxE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uFAAuF;IACvF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,qDAAqD;AACrD,MAAM,MAAM,qBAAqB,GAAG;IAClC,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6EAA6E;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../connect-build/types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../connect-studio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,YAAY,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../connect-studio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../connect-studio/server.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAsErD,wBAAsB,WAAW,CAC/B,OAAO,GAAE,kBAER,iBA4JF"}
|