@inglorious/create-app 0.3.3 → 0.3.5
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 +59 -59
- package/package.json +3 -3
- package/templates/js/.prettierrc.yml +1 -1
- package/templates/js/README.md +29 -29
- package/templates/js/index.html +15 -15
- package/templates/js/package.json +2 -2
- package/templates/js/public/style.css +7 -7
- package/templates/minimal/README.md +10 -10
- package/templates/minimal/index.html +34 -34
- package/templates/minimal/public/style.css +7 -7
- package/templates/ssx-js/.prettierrc.yml +1 -1
- package/templates/ssx-js/package.json +2 -2
- package/templates/ssx-js/public/style.css +7 -7
- package/templates/ssx-ts/.prettierrc.yml +1 -1
- package/templates/ssx-ts/package.json +2 -2
- package/templates/ssx-ts/public/style.css +7 -7
- package/templates/ts/.prettierrc.yml +1 -1
- package/templates/ts/README.md +30 -30
- package/templates/ts/index.html +15 -15
- package/templates/ts/package.json +3 -2
- package/templates/ts/public/style.css +7 -7
- package/templates/ts/src/store/entities.ts +1 -1
- package/templates/ts/tsconfig.app.json +6 -0
package/README.md
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
# @inglorious/create-app
|
|
2
|
-
|
|
3
|
-
[](https://opensource.org/licenses/MIT)
|
|
4
|
-
|
|
5
|
-
The official scaffolding tool to quickly create a new web app with the [@inglorious/web](https://www.npmjs.com/package/@inglorious/web) framework or a static site with [@inglorious/ssx](https://www.npmjs.com/package/@inglorious/ssx).
|
|
6
|
-
|
|
7
|
-
This package allows you to generate a new project from a set of pre-configured templates, so you can start developing your web app right away.
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
To create a new app, run one of the following commands in your terminal. You will be prompted to choose a project name and select a template.
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
# with npm
|
|
15
|
-
npm create @inglorious/app@latest
|
|
16
|
-
|
|
17
|
-
# with yarn
|
|
18
|
-
yarn create @inglorious/app
|
|
19
|
-
|
|
20
|
-
# with pnpm
|
|
21
|
-
pnpm create @inglorious/app
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
The CLI will guide you through the setup process, asking for a project name and which template you'd like to use.
|
|
25
|
-
|
|
26
|
-
## Templates
|
|
27
|
-
|
|
28
|
-
The following templates are available to get you started:
|
|
29
|
-
|
|
30
|
-
- **minimal**: A minimal starter template that requires no bundling: just HTML, CSS, and JS.
|
|
31
|
-
- **js**: A starter template for a plain JavaScript project, bundled with Vite.
|
|
32
|
-
- **ts**: A starter template for a plain TypeScript project, bundled with Vite.
|
|
33
|
-
- **ssx-js**: A starter template for a Static Site Xecution (SSX) project using JavaScript.
|
|
34
|
-
- **ssx-ts**: A starter template for a Static Site Xecution (SSX) project using TypeScript.
|
|
35
|
-
|
|
36
|
-
## What it does
|
|
37
|
-
|
|
38
|
-
The tool will create a new directory with your chosen project name and copy the template files into it. It will also automatically update the `package.json` with your project's name.
|
|
39
|
-
|
|
40
|
-
After the project is created, you can navigate into the directory and install the dependencies.
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
# 1. Change into your new project directory
|
|
44
|
-
cd my-awesome-app
|
|
45
|
-
|
|
46
|
-
# 2. Install dependencies
|
|
47
|
-
pnpm install
|
|
48
|
-
|
|
49
|
-
# 3. Start the development server
|
|
50
|
-
pnpm dev
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## License
|
|
54
|
-
|
|
55
|
-
**MIT License - Free and open source**
|
|
56
|
-
|
|
57
|
-
Created by [Matteo Antony Mistretta](https://github.com/IngloriousCoderz)
|
|
58
|
-
|
|
59
|
-
You're free to use, modify, and distribute this software. See [LICENSE](./LICENSE) for details.
|
|
1
|
+
# @inglorious/create-app
|
|
2
|
+
|
|
3
|
+
[](https://opensource.org/licenses/MIT)
|
|
4
|
+
|
|
5
|
+
The official scaffolding tool to quickly create a new web app with the [@inglorious/web](https://www.npmjs.com/package/@inglorious/web) framework or a static site with [@inglorious/ssx](https://www.npmjs.com/package/@inglorious/ssx).
|
|
6
|
+
|
|
7
|
+
This package allows you to generate a new project from a set of pre-configured templates, so you can start developing your web app right away.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
To create a new app, run one of the following commands in your terminal. You will be prompted to choose a project name and select a template.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# with npm
|
|
15
|
+
npm create @inglorious/app@latest
|
|
16
|
+
|
|
17
|
+
# with yarn
|
|
18
|
+
yarn create @inglorious/app
|
|
19
|
+
|
|
20
|
+
# with pnpm
|
|
21
|
+
pnpm create @inglorious/app
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
The CLI will guide you through the setup process, asking for a project name and which template you'd like to use.
|
|
25
|
+
|
|
26
|
+
## Templates
|
|
27
|
+
|
|
28
|
+
The following templates are available to get you started:
|
|
29
|
+
|
|
30
|
+
- **minimal**: A minimal starter template that requires no bundling: just HTML, CSS, and JS.
|
|
31
|
+
- **js**: A starter template for a plain JavaScript project, bundled with Vite.
|
|
32
|
+
- **ts**: A starter template for a plain TypeScript project, bundled with Vite.
|
|
33
|
+
- **ssx-js**: A starter template for a Static Site Xecution (SSX) project using JavaScript.
|
|
34
|
+
- **ssx-ts**: A starter template for a Static Site Xecution (SSX) project using TypeScript.
|
|
35
|
+
|
|
36
|
+
## What it does
|
|
37
|
+
|
|
38
|
+
The tool will create a new directory with your chosen project name and copy the template files into it. It will also automatically update the `package.json` with your project's name.
|
|
39
|
+
|
|
40
|
+
After the project is created, you can navigate into the directory and install the dependencies.
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# 1. Change into your new project directory
|
|
44
|
+
cd my-awesome-app
|
|
45
|
+
|
|
46
|
+
# 2. Install dependencies
|
|
47
|
+
pnpm install
|
|
48
|
+
|
|
49
|
+
# 3. Start the development server
|
|
50
|
+
pnpm dev
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
**MIT License - Free and open source**
|
|
56
|
+
|
|
57
|
+
Created by [Matteo Antony Mistretta](https://github.com/IngloriousCoderz)
|
|
58
|
+
|
|
59
|
+
You're free to use, modify, and distribute this software. See [LICENSE](./LICENSE) for details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/create-app",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
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",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@inglorious/eslint-config": "1.1.1"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
|
-
"format": "prettier --write
|
|
45
|
-
"lint": "eslint .
|
|
44
|
+
"format": "prettier --write .",
|
|
45
|
+
"lint": "eslint ."
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
semi: false
|
|
1
|
+
semi: false
|
package/templates/js/README.md
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
# my-app
|
|
2
|
-
|
|
3
|
-
This project is a minimal starter template for creating an app with the Inglorious Web framework using plain JavaScript and Vite.
|
|
4
|
-
|
|
5
|
-
## Getting Started
|
|
6
|
-
|
|
7
|
-
This project was scaffolded with `@inglorious/create-app`.
|
|
8
|
-
|
|
9
|
-
To get started, follow these steps:
|
|
10
|
-
|
|
11
|
-
1. **Install dependencies**:
|
|
12
|
-
Navigate to your project directory and install the required packages.
|
|
13
|
-
```sh
|
|
14
|
-
pnpm install
|
|
15
|
-
```
|
|
16
|
-
2. **Start the development server**:
|
|
17
|
-
Run the following command to start the Vite development server.
|
|
18
|
-
```sh
|
|
19
|
-
pnpm dev
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
This will start a Vite development server. Open your browser to the local URL provided to see it in action.
|
|
23
|
-
|
|
24
|
-
## Project Setup
|
|
25
|
-
|
|
26
|
-
- `index.html`: The main entry point for your app.
|
|
27
|
-
- `src/`: Contains your app's JavaScript source code.
|
|
28
|
-
- `vite.config.js`: Vite configuration file.
|
|
29
|
-
- `package.json`: Project metadata and dependencies.
|
|
1
|
+
# my-app
|
|
2
|
+
|
|
3
|
+
This project is a minimal starter template for creating an app with the Inglorious Web framework using plain JavaScript and Vite.
|
|
4
|
+
|
|
5
|
+
## Getting Started
|
|
6
|
+
|
|
7
|
+
This project was scaffolded with `@inglorious/create-app`.
|
|
8
|
+
|
|
9
|
+
To get started, follow these steps:
|
|
10
|
+
|
|
11
|
+
1. **Install dependencies**:
|
|
12
|
+
Navigate to your project directory and install the required packages.
|
|
13
|
+
```sh
|
|
14
|
+
pnpm install
|
|
15
|
+
```
|
|
16
|
+
2. **Start the development server**:
|
|
17
|
+
Run the following command to start the Vite development server.
|
|
18
|
+
```sh
|
|
19
|
+
pnpm dev
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
This will start a Vite development server. Open your browser to the local URL provided to see it in action.
|
|
23
|
+
|
|
24
|
+
## Project Setup
|
|
25
|
+
|
|
26
|
+
- `index.html`: The main entry point for your app.
|
|
27
|
+
- `src/`: Contains your app's JavaScript source code.
|
|
28
|
+
- `vite.config.js`: Vite configuration file.
|
|
29
|
+
- `package.json`: Project metadata and dependencies.
|
package/templates/js/index.html
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<link rel="icon" type="image/svg+xml" href="/logo.png" />
|
|
7
|
-
<link rel="stylesheet" href="/style.css" />
|
|
8
|
-
<title>Inglorious App</title>
|
|
9
|
-
</head>
|
|
10
|
-
|
|
11
|
-
<body>
|
|
12
|
-
<div id="root"></div>
|
|
13
|
-
<script type="module" src="./src/main.js"></script>
|
|
14
|
-
</body>
|
|
15
|
-
</html>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<link rel="icon" type="image/svg+xml" href="/logo.png" />
|
|
7
|
+
<link rel="stylesheet" href="/style.css" />
|
|
8
|
+
<title>Inglorious App</title>
|
|
9
|
+
</head>
|
|
10
|
+
|
|
11
|
+
<body>
|
|
12
|
+
<div id="root"></div>
|
|
13
|
+
<script type="module" src="./src/main.js"></script>
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"author": "",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"format": "prettier --write
|
|
11
|
-
"lint": "eslint .
|
|
10
|
+
"format": "prettier --write .",
|
|
11
|
+
"lint": "eslint .",
|
|
12
12
|
"dev": "vite",
|
|
13
13
|
"build": "vite build",
|
|
14
14
|
"preview": "vite preview"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
* {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
body {
|
|
6
|
-
margin: 0;
|
|
7
|
-
}
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
body {
|
|
6
|
+
margin: 0;
|
|
7
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# my-app
|
|
2
|
-
|
|
3
|
-
A new app created with [@inglorious/create-app](https://www.npmjs.com/package/@inglorious/create-app).
|
|
4
|
-
|
|
5
|
-
This template is a minimal setup for running the Inglorious Web framework directly in the browser without any build step.
|
|
6
|
-
|
|
7
|
-
## Getting Started
|
|
8
|
-
|
|
9
|
-
1. Open the `index.html` file in a modern web browser.
|
|
10
|
-
2. Edit the `app.js` file to start building your app!
|
|
1
|
+
# my-app
|
|
2
|
+
|
|
3
|
+
A new app created with [@inglorious/create-app](https://www.npmjs.com/package/@inglorious/create-app).
|
|
4
|
+
|
|
5
|
+
This template is a minimal setup for running the Inglorious Web framework directly in the browser without any build step.
|
|
6
|
+
|
|
7
|
+
## Getting Started
|
|
8
|
+
|
|
9
|
+
1. Open the `index.html` file in a modern web browser.
|
|
10
|
+
2. Edit the `app.js` file to start building your app!
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/public/logo.png" />
|
|
6
|
-
<link rel="stylesheet" href="/public/style.css" />
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
-
<title>Inglorious App</title>
|
|
9
|
-
</head>
|
|
10
|
-
|
|
11
|
-
<body>
|
|
12
|
-
<div id="root"></div>
|
|
13
|
-
|
|
14
|
-
<script type="text/javascript">
|
|
15
|
-
window.process = { env: "development" }
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<script type="importmap">
|
|
19
|
-
{
|
|
20
|
-
"imports": {
|
|
21
|
-
"mutative": "https://unpkg.com/mutative@latest/dist/mutative.esm.mjs",
|
|
22
|
-
"lit-html": "https://unpkg.com/lit-html@latest/lit-html.js",
|
|
23
|
-
"lit-html/": "https://unpkg.com/lit-html@latest/",
|
|
24
|
-
"@inglorious/utils/": "https://unpkg.com/@inglorious%2Futils@latest/src/",
|
|
25
|
-
"@inglorious/store": "https://unpkg.com/@inglorious%2Fstore@latest/src/store.js",
|
|
26
|
-
"@inglorious/store/": "https://unpkg.com/@inglorious%2Fstore@latest/src/",
|
|
27
|
-
"@inglorious/web": "https://unpkg.com/@inglorious%2Fweb@latest/src/index.js"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
</script>
|
|
31
|
-
|
|
32
|
-
<script type="module" src="./src/main.js"></script>
|
|
33
|
-
</body>
|
|
34
|
-
</html>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/public/logo.png" />
|
|
6
|
+
<link rel="stylesheet" href="/public/style.css" />
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
+
<title>Inglorious App</title>
|
|
9
|
+
</head>
|
|
10
|
+
|
|
11
|
+
<body>
|
|
12
|
+
<div id="root"></div>
|
|
13
|
+
|
|
14
|
+
<script type="text/javascript">
|
|
15
|
+
window.process = { env: "development" }
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<script type="importmap">
|
|
19
|
+
{
|
|
20
|
+
"imports": {
|
|
21
|
+
"mutative": "https://unpkg.com/mutative@latest/dist/mutative.esm.mjs",
|
|
22
|
+
"lit-html": "https://unpkg.com/lit-html@latest/lit-html.js",
|
|
23
|
+
"lit-html/": "https://unpkg.com/lit-html@latest/",
|
|
24
|
+
"@inglorious/utils/": "https://unpkg.com/@inglorious%2Futils@latest/src/",
|
|
25
|
+
"@inglorious/store": "https://unpkg.com/@inglorious%2Fstore@latest/src/store.js",
|
|
26
|
+
"@inglorious/store/": "https://unpkg.com/@inglorious%2Fstore@latest/src/",
|
|
27
|
+
"@inglorious/web": "https://unpkg.com/@inglorious%2Fweb@latest/src/index.js"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<script type="module" src="./src/main.js"></script>
|
|
33
|
+
</body>
|
|
34
|
+
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
* {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
body {
|
|
6
|
-
margin: 0;
|
|
7
|
-
}
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
body {
|
|
6
|
+
margin: 0;
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
semi: false
|
|
1
|
+
semi: false
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"author": "",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"format": "prettier --write
|
|
11
|
-
"lint": "eslint .
|
|
10
|
+
"format": "prettier --write .",
|
|
11
|
+
"lint": "eslint .",
|
|
12
12
|
"dev": "ssx dev",
|
|
13
13
|
"build": "ssx build",
|
|
14
14
|
"preview": "serve dist"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
* {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
body {
|
|
6
|
-
margin: 0;
|
|
7
|
-
}
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
body {
|
|
6
|
+
margin: 0;
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
semi: false
|
|
1
|
+
semi: false
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"author": "",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"format": "prettier --write
|
|
11
|
-
"lint": "eslint .
|
|
10
|
+
"format": "prettier --write .",
|
|
11
|
+
"lint": "eslint .",
|
|
12
12
|
"dev": "ssx dev",
|
|
13
13
|
"build": "ssx build",
|
|
14
14
|
"preview": "serve dist"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
* {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
body {
|
|
6
|
-
margin: 0;
|
|
7
|
-
}
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
body {
|
|
6
|
+
margin: 0;
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
semi: false
|
|
1
|
+
semi: false
|
package/templates/ts/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
# my-app
|
|
2
|
-
|
|
3
|
-
This project is a minimal starter template for creating an app with the Inglorious Web framework using TypeScript and Vite.
|
|
4
|
-
|
|
5
|
-
## Getting Started
|
|
6
|
-
|
|
7
|
-
This project was scaffolded with `@inglorious/create-app`.
|
|
8
|
-
|
|
9
|
-
To get started, follow these steps:
|
|
10
|
-
|
|
11
|
-
1. **Install dependencies**:
|
|
12
|
-
Navigate to your project directory and install the required packages.
|
|
13
|
-
```sh
|
|
14
|
-
pnpm install
|
|
15
|
-
```
|
|
16
|
-
2. **Start the development server**:
|
|
17
|
-
Run the following command to start the Vite development server.
|
|
18
|
-
```sh
|
|
19
|
-
pnpm dev
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
This will start a Vite development server. Open your browser to the local URL provided to see it in action.
|
|
23
|
-
|
|
24
|
-
## Project Setup
|
|
25
|
-
|
|
26
|
-
- `index.html`: The main entry point for your app.
|
|
27
|
-
- `src/`: Contains your app's TypeScript source code.
|
|
28
|
-
- `vite.config.js`: Vite configuration file.
|
|
29
|
-
- `tsconfig.json`: TypeScript configuration for the project.
|
|
30
|
-
- `package.json`: Project metadata and dependencies.
|
|
1
|
+
# my-app
|
|
2
|
+
|
|
3
|
+
This project is a minimal starter template for creating an app with the Inglorious Web framework using TypeScript and Vite.
|
|
4
|
+
|
|
5
|
+
## Getting Started
|
|
6
|
+
|
|
7
|
+
This project was scaffolded with `@inglorious/create-app`.
|
|
8
|
+
|
|
9
|
+
To get started, follow these steps:
|
|
10
|
+
|
|
11
|
+
1. **Install dependencies**:
|
|
12
|
+
Navigate to your project directory and install the required packages.
|
|
13
|
+
```sh
|
|
14
|
+
pnpm install
|
|
15
|
+
```
|
|
16
|
+
2. **Start the development server**:
|
|
17
|
+
Run the following command to start the Vite development server.
|
|
18
|
+
```sh
|
|
19
|
+
pnpm dev
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
This will start a Vite development server. Open your browser to the local URL provided to see it in action.
|
|
23
|
+
|
|
24
|
+
## Project Setup
|
|
25
|
+
|
|
26
|
+
- `index.html`: The main entry point for your app.
|
|
27
|
+
- `src/`: Contains your app's TypeScript source code.
|
|
28
|
+
- `vite.config.js`: Vite configuration file.
|
|
29
|
+
- `tsconfig.json`: TypeScript configuration for the project.
|
|
30
|
+
- `package.json`: Project metadata and dependencies.
|
package/templates/ts/index.html
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<link rel="icon" type="image/svg+xml" href="/logo.png" />
|
|
7
|
-
<link rel="stylesheet" href="/style.css" />
|
|
8
|
-
<title>Inglorious App</title>
|
|
9
|
-
</head>
|
|
10
|
-
|
|
11
|
-
<body>
|
|
12
|
-
<div id="root"></div>
|
|
13
|
-
<script type="module" src="./src/main.js"></script>
|
|
14
|
-
</body>
|
|
15
|
-
</html>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<link rel="icon" type="image/svg+xml" href="/logo.png" />
|
|
7
|
+
<link rel="stylesheet" href="/style.css" />
|
|
8
|
+
<title>Inglorious App</title>
|
|
9
|
+
</head>
|
|
10
|
+
|
|
11
|
+
<body>
|
|
12
|
+
<div id="root"></div>
|
|
13
|
+
<script type="module" src="./src/main.js"></script>
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"author": "",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"format": "prettier --write
|
|
11
|
-
"lint": "eslint .
|
|
10
|
+
"format": "prettier --write .",
|
|
11
|
+
"lint": "eslint .",
|
|
12
12
|
"dev": "vite",
|
|
13
13
|
"build": "vite build",
|
|
14
14
|
"preview": "vite preview"
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@inglorious/eslint-config": "workspace:*",
|
|
21
|
+
"@types/node": "^25.0.9",
|
|
21
22
|
"eslint": "^9.39.1",
|
|
22
23
|
"prettier": "^3.6.2",
|
|
23
24
|
"rollup-plugin-minify-template-literals": "^1.1.7",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
* {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
body {
|
|
6
|
-
margin: 0;
|
|
7
|
-
}
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
body {
|
|
6
|
+
margin: 0;
|
|
7
|
+
}
|