@editframe/create 0.6.0-beta.15 → 0.6.0-beta.17

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/index.cjs CHANGED
@@ -4,6 +4,7 @@ const promises = require("node:fs/promises");
4
4
  const path = require("node:path");
5
5
  const node_url = require("node:url");
6
6
  const prompts = require("prompts");
7
+ const chalk = require("chalk");
7
8
  var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
8
9
  async function main() {
9
10
  const __dirname = path.dirname(node_url.fileURLToPath(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL("index.cjs", document.baseURI).href));
@@ -31,5 +32,10 @@ async function main() {
31
32
  console.log(`Using template: ${answers.templateName}`);
32
33
  await promises.cp(templateDir, targetDir, { recursive: true });
33
34
  console.log("Project created successfully.");
35
+ console.log(chalk.green("Next steps:\n"));
36
+ console.log(`cd ${answers.directoryName}`);
37
+ console.log("npm install");
38
+ console.log("npm start");
39
+ console.log("Happy hacking!");
34
40
  }
35
41
  main();
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ import { readdir, cp } from "node:fs/promises";
3
3
  import path from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  import prompts from "prompts";
6
+ import chalk from "chalk";
6
7
  async function main() {
7
8
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
8
9
  const templates = await readdir(path.join(__dirname, "templates"));
@@ -29,5 +30,10 @@ async function main() {
29
30
  console.log(`Using template: ${answers.templateName}`);
30
31
  await cp(templateDir, targetDir, { recursive: true });
31
32
  console.log("Project created successfully.");
33
+ console.log(chalk.green("Next steps:\n"));
34
+ console.log(`cd ${answers.directoryName}`);
35
+ console.log("npm install");
36
+ console.log("npm start");
37
+ console.log("Happy hacking!");
32
38
  }
33
39
  main();
@@ -18,8 +18,60 @@
18
18
  style="
19
19
  animation:
20
20
  fadein 1250ms backwards,
21
- fadeout 50ms calc(var(--ef-duration) - 50ms) forwards,
22
- 250ms slide-out-right calc(var(--ef-duration) - 250ms) forwards;
21
+ fadeout 500ms calc(var(--ef-duration) - 500ms) forwards;
22
+ "
23
+ >
24
+ <ef-audio
25
+ id="nine-spades-poem"
26
+ src="/assets/cards/card-9-spades.mp3"
27
+ ></ef-audio>
28
+ <div
29
+ class="absolute z-10 flex h-full w-full flex-col items-center justify-center"
30
+ >
31
+ <h1
32
+ class="mb-3 inline-block font-serif text-7xl font-extralight underline"
33
+ style="animation: 1s slide-in-left ease-out"
34
+ >
35
+ 9 of Spades
36
+ </h1>
37
+ <ef-image
38
+ class="w-1/4"
39
+ src="/assets/cards/card-9-spades.png"
40
+ style="
41
+ animation-composition: add;
42
+ animation:
43
+ 4s rotate 4s,
44
+ 1s slide-in-left 0.25s ease-out backwards;
45
+ "
46
+ ></ef-image>
47
+ <ef-waveform
48
+ class="h-4 w-1/2 self-center"
49
+ target="#nine-spades-poem"
50
+ ></ef-waveform>
51
+ <ef-captions
52
+ class="h-24 p-2 text-center text-4xl"
53
+ target="#nine-spades-poem"
54
+ ><ef-captions-active-word
55
+ style="
56
+ animation: 0.1s bounce-in ease-out forwards;
57
+ animation-play-state: paused;
58
+ "
59
+ ></ef-captions-active-word
60
+ ></ef-captions>
61
+ </div>
62
+ <ef-image
63
+ class="absolute z-0 h-full opacity-20 blur-md"
64
+ src="/assets/cards/card-9-spades.png"
65
+ style="animation: 1.25s slide-in-left 0.25s ease-out backwards"
66
+ ></ef-image>
67
+ </ef-timegroup>
68
+ <ef-timegroup
69
+ mode="contain"
70
+ class="absolute"
71
+ style="
72
+ animation:
73
+ fadein 1250ms backwards,
74
+ fadeout 500ms calc(var(--ef-duration) - 500ms) forwards;
23
75
  "
24
76
  >
25
77
  <ef-audio id="joker-poem" src="/assets/cards/card-joker.mp3"></ef-audio>
@@ -49,7 +101,12 @@
49
101
  <ef-captions
50
102
  class="h-24 p-2 text-center text-4xl"
51
103
  target="#joker-poem"
52
- ><ef-captions-active-word></ef-captions-active-word
104
+ ><ef-captions-active-word
105
+ style="
106
+ animation: 0.1s bounce-in ease-out forwards;
107
+ animation-play-state: paused;
108
+ "
109
+ ></ef-captions-active-word
53
110
  ></ef-captions>
54
111
  </div>
55
112
  <ef-image
@@ -11,9 +11,9 @@
11
11
  "author": "",
12
12
  "license": "ISC",
13
13
  "dependencies": {
14
- "@editframe/cli": "0.6.0-beta.15",
15
- "@editframe/elements": "0.6.0-beta.15",
16
- "@editframe/vite-plugin": "0.6.0-beta.15",
14
+ "@editframe/cli": "0.6.0-beta.17",
15
+ "@editframe/elements": "0.6.0-beta.17",
16
+ "@editframe/vite-plugin": "0.6.0-beta.17",
17
17
  "tailwindcss": "^3.4.3",
18
18
  "vite": "^5.2.11",
19
19
  "vite-plugin-singlefile": "^2.0.1"
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ },
5
+ };
@@ -0,0 +1,14 @@
1
+ import { defineConfig } from "vite";
2
+ import { viteSingleFile } from "vite-plugin-singlefile";
3
+ import { vitePluginEditframe } from "@editframe/vite-plugin";
4
+ import path from "node:path";
5
+
6
+ export default defineConfig({
7
+ plugins: [
8
+ vitePluginEditframe({
9
+ root: path.join(__dirname, "src"),
10
+ cacheRoot: path.join(__dirname, "src", "assets"),
11
+ }),
12
+ viteSingleFile(),
13
+ ],
14
+ });
@@ -11,9 +11,9 @@
11
11
  "author": "",
12
12
  "license": "ISC",
13
13
  "dependencies": {
14
- "@editframe/cli": "0.6.0-beta.15",
15
- "@editframe/elements": "0.6.0-beta.15",
16
- "@editframe/vite-plugin": "0.6.0-beta.15",
14
+ "@editframe/cli": "0.6.0-beta.17",
15
+ "@editframe/elements": "0.6.0-beta.17",
16
+ "@editframe/vite-plugin": "0.6.0-beta.17",
17
17
  "tailwindcss": "^3.4.3",
18
18
  "vite": "^5.2.11",
19
19
  "vite-plugin-singlefile": "^2.0.1"
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ },
5
+ };
@@ -0,0 +1,14 @@
1
+ import { defineConfig } from "vite";
2
+ import { viteSingleFile } from "vite-plugin-singlefile";
3
+ import { vitePluginEditframe } from "@editframe/vite-plugin";
4
+ import path from "node:path";
5
+
6
+ export default defineConfig({
7
+ plugins: [
8
+ vitePluginEditframe({
9
+ root: path.join(__dirname, "src"),
10
+ cacheRoot: path.join(__dirname, "src", "assets"),
11
+ }),
12
+ viteSingleFile(),
13
+ ],
14
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editframe/create",
3
- "version": "0.6.0-beta.15",
3
+ "version": "0.6.0-beta.17",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "create-editframe": "dist/index.js"
@@ -22,6 +22,7 @@
22
22
  "author": "",
23
23
  "license": "UNLICENSED",
24
24
  "dependencies": {
25
+ "chalk": "^5.3.0",
25
26
  "prompts": "^2.4.2"
26
27
  }
27
28
  }