@medusajs/admin-bundler 0.0.0 → 0.0.1
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/README.md +1 -1
- package/dist/entry.tsx +9 -0
- package/dist/index.css +5 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.html +13 -0
- package/dist/index.js +1320 -0
- package/package.json +25 -15
- package/bin/medusa-admin.js +0 -6
- package/dist/chunk-UG4OGQKM.mjs +0 -257
- package/dist/cli/index.d.mts +0 -2
- package/dist/cli/index.mjs +0 -22
- package/dist/index.d.mts +0 -18
- package/dist/index.mjs +0 -10
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@medusajs/admin-bundler`
|
package/dist/entry.tsx
ADDED
package/dist/index.css
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AdminOptions } from '@medusajs/types';
|
|
2
|
+
import * as express_serve_static_core from 'express-serve-static-core';
|
|
3
|
+
|
|
4
|
+
type BundlerOptions = Required<Pick<AdminOptions, "outDir" | "path">> & Pick<AdminOptions, "vite" | "backendUrl" | "storefrontUrl"> & {
|
|
5
|
+
sources?: string[];
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
declare function build(options: BundlerOptions): Promise<void>;
|
|
9
|
+
|
|
10
|
+
declare function develop(options: BundlerOptions): Promise<express_serve_static_core.Router>;
|
|
11
|
+
|
|
12
|
+
type ServeOptions = {
|
|
13
|
+
outDir: string;
|
|
14
|
+
};
|
|
15
|
+
declare function serve(options: ServeOptions): Promise<express_serve_static_core.Router>;
|
|
16
|
+
|
|
17
|
+
export { type BundlerOptions, build, develop, serve };
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
|
6
|
+
<link rel="icon" href="data:," data-placeholder-favicon />
|
|
7
|
+
</head>
|
|
8
|
+
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="./entry.tsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|