@inglorious/create-app 0.3.3 → 0.4.0
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/LICENSE +9 -9
- package/README.md +59 -59
- package/bin/index.js +49 -4
- package/package.json +3 -3
- package/templates/js/.prettierrc.yml +1 -1
- package/templates/js/LICENSE +9 -9
- package/templates/js/README.md +29 -29
- package/templates/js/gitignore +49 -49
- package/templates/js/index.html +15 -15
- package/templates/js/package.json +2 -2
- package/templates/js/public/style.css +7 -7
- package/templates/js-jsx/.prettierrc.yml +1 -0
- package/templates/js-jsx/LICENSE +9 -0
- package/templates/js-jsx/README.md +29 -0
- package/templates/js-jsx/eslint.config.js +13 -0
- package/templates/js-jsx/gitignore +49 -0
- package/templates/js-jsx/index.html +15 -0
- package/templates/js-jsx/package.json +34 -0
- package/templates/js-jsx/public/logo.png +0 -0
- package/templates/js-jsx/public/style.css +7 -0
- package/templates/js-jsx/src/app.jsx +9 -0
- package/templates/js-jsx/src/main.js +6 -0
- package/templates/js-jsx/src/message/message.jsx +14 -0
- package/templates/js-jsx/src/store/entities.js +14 -0
- package/templates/js-jsx/src/store/index.js +11 -0
- package/templates/js-jsx/src/store/middlewares.js +7 -0
- package/templates/js-jsx/vite.config.js +21 -0
- package/templates/minimal/LICENSE +9 -9
- package/templates/minimal/README.md +10 -10
- package/templates/minimal/gitignore +6 -6
- 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/gitignore +3 -3
- 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/gitignore +3 -3
- 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/LICENSE +9 -9
- package/templates/ts/README.md +30 -30
- package/templates/ts/gitignore +49 -49
- 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/templates/ts-jsx/.prettierrc.yml +1 -0
- package/templates/ts-jsx/LICENSE +9 -0
- package/templates/ts-jsx/README.md +30 -0
- package/templates/ts-jsx/eslint.config.ts +25 -0
- package/templates/ts-jsx/gitignore +49 -0
- package/templates/ts-jsx/index.html +15 -0
- package/templates/ts-jsx/package.json +37 -0
- package/templates/ts-jsx/public/logo.png +0 -0
- package/templates/ts-jsx/public/style.css +7 -0
- package/templates/ts-jsx/src/app.tsx +10 -0
- package/templates/ts-jsx/src/main.ts +6 -0
- package/templates/ts-jsx/src/message/message.tsx +16 -0
- package/templates/ts-jsx/src/store/entities.ts +16 -0
- package/templates/ts-jsx/src/store/index.ts +12 -0
- package/templates/ts-jsx/src/store/middlewares.ts +9 -0
- package/templates/ts-jsx/tsconfig.app.json +11 -0
- package/templates/ts-jsx/tsconfig.json +7 -0
- package/templates/ts-jsx/tsconfig.node.json +10 -0
- package/templates/ts-jsx/types/index.d.ts +27 -0
- package/templates/ts-jsx/types/vite-end.d.ts +1 -0
- package/templates/ts-jsx/vite.config.ts +24 -0
package/LICENSE
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright © 2025 Inglorious Coderz Srl.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2025 Inglorious Coderz Srl.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
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/bin/index.js
CHANGED
|
@@ -21,7 +21,7 @@ async function main() {
|
|
|
21
21
|
return false
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const { projectName,
|
|
24
|
+
const { projectName, baseTemplate } = await prompts(
|
|
25
25
|
[
|
|
26
26
|
{
|
|
27
27
|
type: "text",
|
|
@@ -31,7 +31,7 @@ async function main() {
|
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
type: "select",
|
|
34
|
-
name: "
|
|
34
|
+
name: "baseTemplate",
|
|
35
35
|
message: "Select a template",
|
|
36
36
|
choices: [
|
|
37
37
|
{
|
|
@@ -70,11 +70,56 @@ async function main() {
|
|
|
70
70
|
return
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
let renderer = "lit-html"
|
|
74
|
+
|
|
75
|
+
// Ask about renderer for non-minimal templates
|
|
76
|
+
if (baseTemplate !== "minimal") {
|
|
77
|
+
const { selectedRenderer } = await prompts(
|
|
78
|
+
{
|
|
79
|
+
type: "select",
|
|
80
|
+
name: "selectedRenderer",
|
|
81
|
+
message: "Select a rendering syntax",
|
|
82
|
+
choices: [
|
|
83
|
+
{
|
|
84
|
+
title: "lit-html (default)",
|
|
85
|
+
description: "Tagged template literals (html`<div>...</div>`)",
|
|
86
|
+
value: "lit-html",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
title: "JSX",
|
|
90
|
+
description: "JSX/TSX syntax (<div>...</div>)",
|
|
91
|
+
value: "jsx",
|
|
92
|
+
},
|
|
93
|
+
// {
|
|
94
|
+
// title: "Vue",
|
|
95
|
+
// description: "Vue SFC-style templates",
|
|
96
|
+
// value: "vue",
|
|
97
|
+
// },
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
{ onCancel },
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
if (canceled) {
|
|
104
|
+
console.log("Operation canceled.")
|
|
105
|
+
return
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
renderer = selectedRenderer
|
|
109
|
+
}
|
|
110
|
+
|
|
73
111
|
const spinner = ora(`Creating project "${projectName}"...`).start()
|
|
74
112
|
|
|
75
113
|
try {
|
|
76
114
|
const targetDir = path.join(process.cwd(), projectName)
|
|
77
|
-
|
|
115
|
+
|
|
116
|
+
// Determine the actual template directory based on base template and renderer
|
|
117
|
+
let templateName = baseTemplate
|
|
118
|
+
if (baseTemplate !== "minimal" && renderer !== "lit-html") {
|
|
119
|
+
templateName = `${baseTemplate}-${renderer}`
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const templateDir = path.join(templatesRoot, templateName)
|
|
78
123
|
|
|
79
124
|
// Create project directory and copy template files
|
|
80
125
|
copyDir(templateDir, targetDir)
|
|
@@ -87,7 +132,7 @@ async function main() {
|
|
|
87
132
|
fs.writeFileSync(readmePath, readme)
|
|
88
133
|
}
|
|
89
134
|
|
|
90
|
-
if (
|
|
135
|
+
if (baseTemplate === "minimal") {
|
|
91
136
|
spinner.succeed(`Created ${projectName} at ${targetDir}`)
|
|
92
137
|
console.log(`\nNext steps:`)
|
|
93
138
|
console.log(` cd ${projectName}`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/create-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
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/LICENSE
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright © 2025 Inglorious Coderz Srl.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2025 Inglorious Coderz Srl.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
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/gitignore
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
# Dependencies
|
|
2
|
-
node_modules
|
|
3
|
-
.pnp
|
|
4
|
-
.pnp.js
|
|
5
|
-
|
|
6
|
-
# Local env files
|
|
7
|
-
.env
|
|
8
|
-
.env.local
|
|
9
|
-
.env.development.local
|
|
10
|
-
.env.test.local
|
|
11
|
-
.env.production.local
|
|
12
|
-
|
|
13
|
-
# Testing
|
|
14
|
-
coverage
|
|
15
|
-
|
|
16
|
-
# Turbo
|
|
17
|
-
.turbo
|
|
18
|
-
|
|
19
|
-
# Vercel
|
|
20
|
-
.vercel
|
|
21
|
-
|
|
22
|
-
# Build Outputs
|
|
23
|
-
.next/
|
|
24
|
-
out/
|
|
25
|
-
build
|
|
26
|
-
dist
|
|
27
|
-
dist-ssr
|
|
28
|
-
storybook-static
|
|
29
|
-
vite.config.js.timestamp-*
|
|
30
|
-
|
|
31
|
-
# Debug
|
|
32
|
-
logs
|
|
33
|
-
*.log
|
|
34
|
-
npm-debug.log*
|
|
35
|
-
yarn-debug.log*
|
|
36
|
-
yarn-error.log*
|
|
37
|
-
pnpm-debug.log*
|
|
38
|
-
lerna-debug.log*
|
|
39
|
-
|
|
40
|
-
# Editor directories and files
|
|
41
|
-
.vscode/*
|
|
42
|
-
.idea
|
|
43
|
-
.DS_Store
|
|
44
|
-
*.suo
|
|
45
|
-
*.ntvs*
|
|
46
|
-
*.njsproj
|
|
47
|
-
*.sln
|
|
48
|
-
*.sw?
|
|
49
|
-
.qodo
|
|
1
|
+
# Dependencies
|
|
2
|
+
node_modules
|
|
3
|
+
.pnp
|
|
4
|
+
.pnp.js
|
|
5
|
+
|
|
6
|
+
# Local env files
|
|
7
|
+
.env
|
|
8
|
+
.env.local
|
|
9
|
+
.env.development.local
|
|
10
|
+
.env.test.local
|
|
11
|
+
.env.production.local
|
|
12
|
+
|
|
13
|
+
# Testing
|
|
14
|
+
coverage
|
|
15
|
+
|
|
16
|
+
# Turbo
|
|
17
|
+
.turbo
|
|
18
|
+
|
|
19
|
+
# Vercel
|
|
20
|
+
.vercel
|
|
21
|
+
|
|
22
|
+
# Build Outputs
|
|
23
|
+
.next/
|
|
24
|
+
out/
|
|
25
|
+
build
|
|
26
|
+
dist
|
|
27
|
+
dist-ssr
|
|
28
|
+
storybook-static
|
|
29
|
+
vite.config.js.timestamp-*
|
|
30
|
+
|
|
31
|
+
# Debug
|
|
32
|
+
logs
|
|
33
|
+
*.log
|
|
34
|
+
npm-debug.log*
|
|
35
|
+
yarn-debug.log*
|
|
36
|
+
yarn-error.log*
|
|
37
|
+
pnpm-debug.log*
|
|
38
|
+
lerna-debug.log*
|
|
39
|
+
|
|
40
|
+
# Editor directories and files
|
|
41
|
+
.vscode/*
|
|
42
|
+
.idea
|
|
43
|
+
.DS_Store
|
|
44
|
+
*.suo
|
|
45
|
+
*.ntvs*
|
|
46
|
+
*.njsproj
|
|
47
|
+
*.sln
|
|
48
|
+
*.sw?
|
|
49
|
+
.qodo
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
semi: false
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2025 Inglorious Coderz Srl.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# my-app
|
|
2
|
+
|
|
3
|
+
This project is a minimal starter template for creating an app with the Inglorious Web framework using the JSX syntax.
|
|
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.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Dependencies
|
|
2
|
+
node_modules
|
|
3
|
+
.pnp
|
|
4
|
+
.pnp.js
|
|
5
|
+
|
|
6
|
+
# Local env files
|
|
7
|
+
.env
|
|
8
|
+
.env.local
|
|
9
|
+
.env.development.local
|
|
10
|
+
.env.test.local
|
|
11
|
+
.env.production.local
|
|
12
|
+
|
|
13
|
+
# Testing
|
|
14
|
+
coverage
|
|
15
|
+
|
|
16
|
+
# Turbo
|
|
17
|
+
.turbo
|
|
18
|
+
|
|
19
|
+
# Vercel
|
|
20
|
+
.vercel
|
|
21
|
+
|
|
22
|
+
# Build Outputs
|
|
23
|
+
.next/
|
|
24
|
+
out/
|
|
25
|
+
build
|
|
26
|
+
dist
|
|
27
|
+
dist-ssr
|
|
28
|
+
storybook-static
|
|
29
|
+
vite.config.js.timestamp-*
|
|
30
|
+
|
|
31
|
+
# Debug
|
|
32
|
+
logs
|
|
33
|
+
*.log
|
|
34
|
+
npm-debug.log*
|
|
35
|
+
yarn-debug.log*
|
|
36
|
+
yarn-error.log*
|
|
37
|
+
pnpm-debug.log*
|
|
38
|
+
lerna-debug.log*
|
|
39
|
+
|
|
40
|
+
# Editor directories and files
|
|
41
|
+
.vscode/*
|
|
42
|
+
.idea
|
|
43
|
+
.DS_Store
|
|
44
|
+
*.suo
|
|
45
|
+
*.ntvs*
|
|
46
|
+
*.njsproj
|
|
47
|
+
*.sln
|
|
48
|
+
*.sw?
|
|
49
|
+
.qodo
|
|
@@ -0,0 +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>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "js-template",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": true,
|
|
6
|
+
"description": "A new app created with @inglorious/create-app",
|
|
7
|
+
"author": "",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"format": "prettier --write .",
|
|
11
|
+
"lint": "eslint .",
|
|
12
|
+
"dev": "vite",
|
|
13
|
+
"build": "vite build",
|
|
14
|
+
"preview": "vite preview"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@inglorious/web": "workspace:*"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@inglorious/eslint-config": "workspace:*",
|
|
21
|
+
"@inglorious/vite-plugin-jsx": "workspace:*",
|
|
22
|
+
"eslint": "^9.39.1",
|
|
23
|
+
"prettier": "^3.6.2",
|
|
24
|
+
"rollup-plugin-minify-template-literals": "^1.1.7",
|
|
25
|
+
"sharp": "^0.34.5",
|
|
26
|
+
"svgo": "^4.0.0",
|
|
27
|
+
"vite-plugin-image-optimizer": "^2.0.3",
|
|
28
|
+
"vite": "^7.1.6"
|
|
29
|
+
},
|
|
30
|
+
"packageManager": "pnpm@10.15.0",
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">= 22"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
Binary file
|