@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 CHANGED
@@ -1 +1 @@
1
- # cli
1
+ # `@medusajs/admin-bundler`
package/dist/entry.tsx ADDED
@@ -0,0 +1,9 @@
1
+ import App from "@medusajs/dashboard"
2
+ import React from "react"
3
+ import { createRoot } from "react-dom/client"
4
+
5
+ import "./index.css"
6
+
7
+ const container = document.getElementById("root")
8
+ const root = createRoot(container!)
9
+ root.render(<App />)
package/dist/index.css ADDED
@@ -0,0 +1,5 @@
1
+ @import "@medusajs/dashboard/css";
2
+
3
+ @tailwind base;
4
+ @tailwind components;
5
+ @tailwind utilities;
@@ -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 };
@@ -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>