@inglorious/create-game 1.0.8 → 1.1.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 +61 -59
- package/bin/index.js +34 -1
- package/package.json +7 -7
- package/templates/ijs/.prettierrc.yml +6 -6
- package/templates/ijs/LICENSE +9 -9
- package/templates/ijs/README.md +53 -53
- package/templates/ijs/gitignore +48 -48
- package/templates/ijs/index.html +15 -15
- package/templates/ijs/package.json +6 -6
- package/templates/ijs/public/style.css +35 -35
- package/templates/its/.prettierrc.yml +6 -6
- package/templates/its/LICENSE +9 -9
- package/templates/its/README.md +64 -64
- package/templates/its/gitignore +48 -48
- package/templates/its/index.html +15 -15
- package/templates/its/package.json +6 -6
- package/templates/its/public/style.css +35 -35
- 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 +5 -5
- package/templates/js/public/style.css +35 -35
- package/templates/minimal/LICENSE +9 -9
- package/templates/minimal/README.md +10 -10
- package/templates/minimal/gitignore +6 -6
- package/templates/minimal/index.html +36 -36
- package/templates/minimal/public/style.css +32 -32
- 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 +5 -5
- package/templates/ts/public/style.css +35 -35
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,61 @@
|
|
|
1
|
-
# @inglorious/create-game
|
|
2
|
-
|
|
3
|
-
[](https://opensource.org/licenses/MIT)
|
|
4
|
-
|
|
5
|
-
The official scaffolding tool to quickly create a new game with the [Inglorious Engine](https://www.npmjs.com/package/@inglorious/engine).
|
|
6
|
-
|
|
7
|
-
This package allows you to generate a new project from a set of pre-configured templates, so you can start developing your game right away.
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
To create a new game, 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/game@latest
|
|
16
|
-
|
|
17
|
-
# with yarn
|
|
18
|
-
yarn create @inglorious/game
|
|
19
|
-
|
|
20
|
-
# with pnpm
|
|
21
|
-
pnpm create @inglorious/game
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
- **
|
|
33
|
-
- **
|
|
34
|
-
- **
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
1
|
+
# @inglorious/create-game
|
|
2
|
+
|
|
3
|
+
[](https://opensource.org/licenses/MIT)
|
|
4
|
+
|
|
5
|
+
The official scaffolding tool to quickly create a new game with the [Inglorious Engine](https://www.npmjs.com/package/@inglorious/engine).
|
|
6
|
+
|
|
7
|
+
This package allows you to generate a new project from a set of pre-configured templates, so you can start developing your game right away.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
To create a new game, 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/game@latest
|
|
16
|
+
|
|
17
|
+
# with yarn
|
|
18
|
+
yarn create @inglorious/game
|
|
19
|
+
|
|
20
|
+
# with pnpm
|
|
21
|
+
pnpm create @inglorious/game
|
|
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
|
+
Every template except `minimal` then asks whether to add agent skills. Saying yes runs the [skills CLI](https://skills.sh) in the new project. It asks which coding agents to install for, and installs the [Inglorious Forge skills](https://github.com/IngloriousCoderz/forge-skills) for games: `forge`, `forge-best-practices`, `store`, `utils`, `engine` and `engine-best-practices`. If the install fails, the CLI prints the command to retry it.
|
|
27
|
+
|
|
28
|
+
## Templates
|
|
29
|
+
|
|
30
|
+
The following templates are available to get you started:
|
|
31
|
+
|
|
32
|
+
- **minimal**: A minimal starter template that requires no bundling: just HTML, CSS, and JS.
|
|
33
|
+
- **js**: A starter template for a plain JavaScript project, bundled with Vite.
|
|
34
|
+
- **ts**: A starter template for a plain TypeScript project, bundled with Vite.
|
|
35
|
+
- **ijs** (IngloriousScript): A starter template for a JavaScript project using IngloriousScript, bundled with Vite.
|
|
36
|
+
- **its** (IngloriousScript w/ TypeScript): A starter template for a TypeScript project that uses IngloriousScript, bundled with Vite.
|
|
37
|
+
|
|
38
|
+
## What it does
|
|
39
|
+
|
|
40
|
+
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.
|
|
41
|
+
|
|
42
|
+
After the project is created, you can navigate into the directory and install the dependencies.
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# 1. Change into your new project directory
|
|
46
|
+
cd my-awesome-game
|
|
47
|
+
|
|
48
|
+
# 2. Install dependencies
|
|
49
|
+
pnpm install
|
|
50
|
+
|
|
51
|
+
# 3. Start the development server
|
|
52
|
+
pnpm dev
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
**MIT License - Free and open source**
|
|
58
|
+
|
|
59
|
+
Created by [Matteo Antony Mistretta](https://github.com/IngloriousCoderz)
|
|
60
|
+
|
|
61
|
+
You're free to use, modify, and distribute this software. See [LICENSE](./LICENSE) for details.
|
package/bin/index.js
CHANGED
|
@@ -9,6 +9,16 @@ import prompts from "prompts"
|
|
|
9
9
|
import { fileURLToPath } from "url"
|
|
10
10
|
|
|
11
11
|
const INDENTATION = 2
|
|
12
|
+
const SKILLS_REPOSITORY = "IngloriousCoderz/forge-skills"
|
|
13
|
+
const SKILLS = [
|
|
14
|
+
"forge",
|
|
15
|
+
"forge-best-practices",
|
|
16
|
+
"store",
|
|
17
|
+
"utils",
|
|
18
|
+
"engine",
|
|
19
|
+
"engine-best-practices",
|
|
20
|
+
]
|
|
21
|
+
const SKILLS_COMMAND = `pnpm dlx skills add ${SKILLS_REPOSITORY} --skill ${SKILLS.join(" ")}`
|
|
12
22
|
|
|
13
23
|
async function main() {
|
|
14
24
|
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
@@ -21,7 +31,7 @@ async function main() {
|
|
|
21
31
|
return false
|
|
22
32
|
}
|
|
23
33
|
|
|
24
|
-
const { projectName, template } = await prompts(
|
|
34
|
+
const { projectName, template, addSkills } = await prompts(
|
|
25
35
|
[
|
|
26
36
|
{
|
|
27
37
|
type: "text",
|
|
@@ -63,6 +73,12 @@ async function main() {
|
|
|
63
73
|
},
|
|
64
74
|
],
|
|
65
75
|
},
|
|
76
|
+
{
|
|
77
|
+
type: (template) => (template === "minimal" ? null : "confirm"),
|
|
78
|
+
name: "addSkills",
|
|
79
|
+
message: "Add agent skills for coding agents? (Claude Code, Codex...)",
|
|
80
|
+
initial: true,
|
|
81
|
+
},
|
|
66
82
|
],
|
|
67
83
|
{ onCancel },
|
|
68
84
|
)
|
|
@@ -114,6 +130,13 @@ async function main() {
|
|
|
114
130
|
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, INDENTATION) + EOL)
|
|
115
131
|
|
|
116
132
|
spinner.succeed(`Created ${projectName} at ${targetDir}`)
|
|
133
|
+
|
|
134
|
+
if (addSkills && !installSkills(targetDir)) {
|
|
135
|
+
console.warn(`\nCould not add the agent skills. To retry, run:`)
|
|
136
|
+
console.warn(` cd ${projectName}`)
|
|
137
|
+
console.warn(` ${SKILLS_COMMAND}`)
|
|
138
|
+
}
|
|
139
|
+
|
|
117
140
|
console.log(`\nNext steps:`)
|
|
118
141
|
console.log(` cd ${projectName}`)
|
|
119
142
|
console.log(` pnpm install`)
|
|
@@ -147,6 +170,16 @@ async function main() {
|
|
|
147
170
|
}
|
|
148
171
|
}
|
|
149
172
|
|
|
173
|
+
// The skills CLI asks which agents to install the skills for.
|
|
174
|
+
function installSkills(targetDir) {
|
|
175
|
+
try {
|
|
176
|
+
execSync(SKILLS_COMMAND, { cwd: targetDir, stdio: "inherit" })
|
|
177
|
+
return true
|
|
178
|
+
} catch {
|
|
179
|
+
return false
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
150
183
|
function getLatestVersion(packageName) {
|
|
151
184
|
try {
|
|
152
185
|
const version = execSync(`npm view ${packageName} version`, {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/create-game",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A scaffolding tool to quickly create a new game with the Inglorious Engine.",
|
|
5
|
-
"author": "
|
|
5
|
+
"author": "Matteo Antony Mistretta <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"ora": "^9.
|
|
38
|
+
"ora": "^9.4.1",
|
|
39
39
|
"prompts": "^2.4.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"
|
|
43
|
-
"
|
|
42
|
+
"@inglorious/eslint-config": "1.2.0",
|
|
43
|
+
"prettier": "^3.9.6"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
|
-
"format": "prettier --write
|
|
47
|
-
"lint": "eslint .
|
|
46
|
+
"format": "prettier --write .",
|
|
47
|
+
"lint": "eslint ."
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
semi: false
|
|
2
|
-
|
|
3
|
-
overrides:
|
|
4
|
-
- files: "*.ijs"
|
|
5
|
-
options:
|
|
6
|
-
parser: babel
|
|
1
|
+
semi: false
|
|
2
|
+
|
|
3
|
+
overrides:
|
|
4
|
+
- files: "*.ijs"
|
|
5
|
+
options:
|
|
6
|
+
parser: babel
|
package/templates/ijs/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/ijs/README.md
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
# my-game
|
|
2
|
-
|
|
3
|
-
This project is a starter template for creating a game with the Inglorious Engine using **IngloriousScript**.
|
|
4
|
-
|
|
5
|
-
## What is IngloriousScript?
|
|
6
|
-
|
|
7
|
-
IngloriousScript is a superset of JavaScript that enables intuitive vector math using standard operators, transformed by Babel.
|
|
8
|
-
|
|
9
|
-
```javascript
|
|
10
|
-
// Instead of this:
|
|
11
|
-
const newPosition = mod(add(position, scale(velocity, dt)), worldSize)
|
|
12
|
-
|
|
13
|
-
// You can write this:
|
|
14
|
-
const newPosition = (position + velocity * dt) % worldSize
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Getting Started
|
|
18
|
-
|
|
19
|
-
This project was scaffolded with `@inglorious/create-game`.
|
|
20
|
-
|
|
21
|
-
To get started, follow these steps:
|
|
22
|
-
|
|
23
|
-
1. **Install dependencies**:
|
|
24
|
-
Navigate to your project directory and install the required packages.
|
|
25
|
-
```sh
|
|
26
|
-
pnpm install
|
|
27
|
-
```
|
|
28
|
-
2. **Start the development server**:
|
|
29
|
-
Run the following command to start the Vite development server.
|
|
30
|
-
```sh
|
|
31
|
-
pnpm dev
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
This will start a Vite development server. Open your browser to the local URL provided to see it in action.
|
|
35
|
-
|
|
36
|
-
## Project Setup
|
|
37
|
-
|
|
38
|
-
- `index.html`: The main entry point for your game.
|
|
39
|
-
- `src/`: Contains your game's source code. Files ending in `.ijs` use IngloriousScript.
|
|
40
|
-
- `vite.config.js`: Vite configuration with the Babel plugin for IngloriousScript.
|
|
41
|
-
- `package.json`: Project metadata and dependencies.
|
|
42
|
-
|
|
43
|
-
## Editor Configuration (VS Code)
|
|
44
|
-
|
|
45
|
-
This template includes a `.vscode/settings.json` file that tells Visual Studio Code to treat `.ijs` files as JavaScript, enabling full syntax highlighting and IntelliSense.
|
|
46
|
-
|
|
47
|
-
```json
|
|
48
|
-
{
|
|
49
|
-
"files.associations": {
|
|
50
|
-
"*.ijs": "javascript"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
```
|
|
1
|
+
# my-game
|
|
2
|
+
|
|
3
|
+
This project is a starter template for creating a game with the Inglorious Engine using **IngloriousScript**.
|
|
4
|
+
|
|
5
|
+
## What is IngloriousScript?
|
|
6
|
+
|
|
7
|
+
IngloriousScript is a superset of JavaScript that enables intuitive vector math using standard operators, transformed by Babel.
|
|
8
|
+
|
|
9
|
+
```javascript
|
|
10
|
+
// Instead of this:
|
|
11
|
+
const newPosition = mod(add(position, scale(velocity, dt)), worldSize)
|
|
12
|
+
|
|
13
|
+
// You can write this:
|
|
14
|
+
const newPosition = (position + velocity * dt) % worldSize
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Getting Started
|
|
18
|
+
|
|
19
|
+
This project was scaffolded with `@inglorious/create-game`.
|
|
20
|
+
|
|
21
|
+
To get started, follow these steps:
|
|
22
|
+
|
|
23
|
+
1. **Install dependencies**:
|
|
24
|
+
Navigate to your project directory and install the required packages.
|
|
25
|
+
```sh
|
|
26
|
+
pnpm install
|
|
27
|
+
```
|
|
28
|
+
2. **Start the development server**:
|
|
29
|
+
Run the following command to start the Vite development server.
|
|
30
|
+
```sh
|
|
31
|
+
pnpm dev
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
This will start a Vite development server. Open your browser to the local URL provided to see it in action.
|
|
35
|
+
|
|
36
|
+
## Project Setup
|
|
37
|
+
|
|
38
|
+
- `index.html`: The main entry point for your game.
|
|
39
|
+
- `src/`: Contains your game's source code. Files ending in `.ijs` use IngloriousScript.
|
|
40
|
+
- `vite.config.js`: Vite configuration with the Babel plugin for IngloriousScript.
|
|
41
|
+
- `package.json`: Project metadata and dependencies.
|
|
42
|
+
|
|
43
|
+
## Editor Configuration (VS Code)
|
|
44
|
+
|
|
45
|
+
This template includes a `.vscode/settings.json` file that tells Visual Studio Code to treat `.ijs` files as JavaScript, enabling full syntax highlighting and IntelliSense.
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"files.associations": {
|
|
50
|
+
"*.ijs": "javascript"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
```
|
package/templates/ijs/gitignore
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
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
|
-
.idea
|
|
42
|
-
.DS_Store
|
|
43
|
-
*.suo
|
|
44
|
-
*.ntvs*
|
|
45
|
-
*.njsproj
|
|
46
|
-
*.sln
|
|
47
|
-
*.sw?
|
|
48
|
-
.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
|
+
.idea
|
|
42
|
+
.DS_Store
|
|
43
|
+
*.suo
|
|
44
|
+
*.ntvs*
|
|
45
|
+
*.njsproj
|
|
46
|
+
*.sln
|
|
47
|
+
*.sw?
|
|
48
|
+
.qodo
|
package/templates/ijs/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 Game</title>
|
|
9
|
-
</head>
|
|
10
|
-
|
|
11
|
-
<body>
|
|
12
|
-
<canvas id="canvas" width="800" height="600"></canvas>
|
|
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 Game</title>
|
|
9
|
+
</head>
|
|
10
|
+
|
|
11
|
+
<body>
|
|
12
|
+
<canvas id="canvas" width="800" height="600"></canvas>
|
|
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"
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@inglorious/babel-preset-inglorious-script": "workspace:*",
|
|
22
22
|
"@inglorious/eslint-config": "workspace:*",
|
|
23
|
-
"eslint": "^
|
|
24
|
-
"prettier": "^3.
|
|
25
|
-
"vite": "^
|
|
26
|
-
"vite-plugin-babel": "^1.3
|
|
23
|
+
"eslint": "^10.11.0",
|
|
24
|
+
"prettier": "^3.9.9",
|
|
25
|
+
"vite": "^8.3.1",
|
|
26
|
+
"vite-plugin-babel": "^1.7.3"
|
|
27
27
|
},
|
|
28
28
|
"packageManager": "pnpm@10.15.0",
|
|
29
29
|
"engines": {
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
* {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
body {
|
|
6
|
-
font-family: "Press Start 2P", system-ui;
|
|
7
|
-
width: 100vw;
|
|
8
|
-
height: 100vh;
|
|
9
|
-
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
|
-
}
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
body {
|
|
6
|
+
font-family: "Press Start 2P", system-ui;
|
|
7
|
+
width: 100vw;
|
|
8
|
+
height: 100vh;
|
|
9
|
+
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
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
semi: false
|
|
2
|
-
|
|
3
|
-
overrides:
|
|
4
|
-
- files: "*.its"
|
|
5
|
-
options:
|
|
6
|
-
parser: typescript
|
|
1
|
+
semi: false
|
|
2
|
+
|
|
3
|
+
overrides:
|
|
4
|
+
- files: "*.its"
|
|
5
|
+
options:
|
|
6
|
+
parser: typescript
|
package/templates/its/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.
|