@inglorious/create-app 0.0.0 → 0.1.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/bin/index.js CHANGED
@@ -34,6 +34,11 @@ async function main() {
34
34
  name: "template",
35
35
  message: "Select a template",
36
36
  choices: [
37
+ {
38
+ title: "Minimal",
39
+ description: "A single HTML file for a zero-build setup",
40
+ value: "minimal",
41
+ },
37
42
  {
38
43
  title: "JavaScript",
39
44
  description: "A vanilla JavaScript setup with Vite",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inglorious/create-app",
3
- "version": "0.0.0",
3
+ "version": "0.1.1",
4
4
  "description": "A scaffolding tool to quickly create a new app with Inglorious Web.",
5
5
  "author": "IceOnFire <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
6
6
  "license": "MIT",
@@ -1,14 +1,14 @@
1
- import { html } from "@inglorious/web"
2
-
3
- export const message = {
4
- click(entity) {
5
- entity.isUpperCase = true
6
- },
7
-
8
- render(entity, api) {
9
- const message = entity.isUpperCase ? entity.who.toUpperCase() : entity.who
10
- return html`<span @click=${() => api.notify(`#${entity.id}:click`)}
11
- >Hello ${message}</span
12
- >`
13
- },
14
- }
1
+ import { html } from "@inglorious/web"
2
+
3
+ export const message = {
4
+ click(entity) {
5
+ entity.isUpperCase = !entity.isUpperCase
6
+ },
7
+
8
+ render(entity, api) {
9
+ const message = entity.isUpperCase ? entity.who.toUpperCase() : entity.who
10
+ return html`<span @click=${() => api.notify(`#${entity.id}:click`)}
11
+ >Hello ${message}</span
12
+ >`
13
+ },
14
+ }
@@ -1,14 +1,14 @@
1
- import { html } from "@inglorious/web"
2
-
3
- export const message = {
4
- click(entity) {
5
- entity.isUpperCase = true
6
- },
7
-
8
- render(entity, api) {
9
- const message = entity.isUpperCase ? entity.who.toUpperCase() : entity.who
10
- return html`<span @click=${() => api.notify(`#${entity.id}:click`)}
11
- >Hello ${message}</span
12
- >`
13
- },
14
- }
1
+ import { html } from "@inglorious/web"
2
+
3
+ export const message = {
4
+ click(entity) {
5
+ entity.isUpperCase = !entity.isUpperCase
6
+ },
7
+
8
+ render(entity, api) {
9
+ const message = entity.isUpperCase ? entity.who.toUpperCase() : entity.who
10
+ return html`<span @click=${() => api.notify(`#${entity.id}:click`)}
11
+ >Hello ${message}</span
12
+ >`
13
+ },
14
+ }
@@ -3,33 +3,5 @@
3
3
  }
4
4
 
5
5
  body {
6
- font-family: "Press Start 2P", system-ui;
7
- width: 100vw;
8
- height: 100vh;
9
6
  margin: 0;
10
- display: flex;
11
- flex-direction: column;
12
- justify-content: center;
13
- align-items: center;
14
- background-color: #000;
15
- color: #fff;
16
- }
17
-
18
- canvas {
19
- max-width: 1280px;
20
- max-height: 720px;
21
- width: 100vw;
22
- height: auto;
23
- cursor: none;
24
- }
25
-
26
- @media (orientation: landscape) and (pointer: coarse) {
27
- canvas {
28
- width: auto;
29
- height: 100vh;
30
- }
31
- }
32
-
33
- img {
34
- display: none;
35
7
  }
@@ -1,4 +1,4 @@
1
- import { type Api,html } from "@inglorious/web"
1
+ import { type Api, html } from "@inglorious/web"
2
2
 
3
3
  export const app = {
4
4
  render(api: Api) {
@@ -1,16 +1,16 @@
1
- import { type Api,html } from "@inglorious/web"
2
-
3
- import type { MessageEntity } from "../../types"
4
-
5
- export const message = {
6
- click(entity: MessageEntity) {
7
- entity.isUpperCase = true
8
- },
9
-
10
- render(entity: MessageEntity, api: Api) {
11
- const message = entity.isUpperCase ? entity.who.toUpperCase() : entity.who
12
- return html`<span @click=${() => api.notify(`#${entity.id}:click`)}
13
- >Hello ${message}</span
14
- >`
15
- },
16
- }
1
+ import { type Api, html } from "@inglorious/web"
2
+
3
+ import type { MessageEntity } from "../../types"
4
+
5
+ export const message = {
6
+ click(entity: MessageEntity) {
7
+ entity.isUpperCase = !entity.isUpperCase
8
+ },
9
+
10
+ render(entity: MessageEntity, api: Api) {
11
+ const message = entity.isUpperCase ? entity.who.toUpperCase() : entity.who
12
+ return html`<span @click=${() => api.notify(`#${entity.id}:click`)}
13
+ >Hello ${message}</span
14
+ >`
15
+ },
16
+ }