@editframe/create 0.6.0-beta.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/build.sh ADDED
File without changes
package/dist/index.cjs ADDED
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ const promises = require("node:fs/promises");
3
+ const path = require("node:path");
4
+ var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
5
+ async function main() {
6
+ console.log("Creating elements project...");
7
+ console.log(
8
+ "Copying template files into current directory...",
9
+ process.cwd()
10
+ );
11
+ const __dirname = path.dirname(new URL(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL("index.cjs", document.baseURI).href).pathname);
12
+ const templateDir = path.join(__dirname, "project-template");
13
+ await promises.cp(templateDir, process.cwd(), { recursive: true });
14
+ }
15
+ main();
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.js ADDED
@@ -0,0 +1,13 @@
1
+ import { cp } from "node:fs/promises";
2
+ import path from "node:path";
3
+ async function main() {
4
+ console.log("Creating elements project...");
5
+ console.log(
6
+ "Copying template files into current directory...",
7
+ process.cwd()
8
+ );
9
+ const __dirname = path.dirname(new URL(import.meta.url).pathname);
10
+ const templateDir = path.join(__dirname, "project-template");
11
+ await cp(templateDir, process.cwd(), { recursive: true });
12
+ }
13
+ main();
@@ -0,0 +1,31 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <script type="module" src="./src/index.js"></script>
6
+ <link rel="stylesheet" href="./src/styles.css" />
7
+ </head>
8
+ <body>
9
+ <ef-timegroup
10
+ mode="sequence"
11
+ class="w-[500px] h-[500px] bg-slate-500 relative overflow-hidden"
12
+ >
13
+ <ef-timegroup
14
+ mode="fixed"
15
+ duration="5s"
16
+ class="flex items-center flex-col pt-24"
17
+ >
18
+ <ef-image class="w=[200px]" src="/assets/editframe.png"></ef-image>
19
+ <h1 class="text-2xl p-2 text-blue-100">Welcome to Editframe!</h1>
20
+ </ef-timegroup>
21
+ <ef-timegroup mode="contain" class="flex items-center flex-col pt-24">
22
+ <ef-image class="w=[200px]" src="/assets/editframe.png"></ef-image>
23
+ <h1 class="text-2xl p-2 text-blue-100">Welcome to Editframe!</h1>
24
+ <ef-video
25
+ src="/assets/bars-n-tone.mp4"
26
+ style="animation: 4s slide-up, 2s fade-in, 2s spin 6s"
27
+ ></ef-video>
28
+ </ef-timegroup>
29
+ </ef-timegroup>
30
+ </body>
31
+ </html>