@benjos/create-boilerplate 1.5.1 → 1.5.2
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.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/template-react/package-lock.json +2 -2
- package/template-react/package.json +1 -1
- package/template-vanilla/package-lock.json +2 -2
- package/template-vanilla/package.json +1 -1
- package/template-vue/.prettierignore +6 -0
- package/template-vue/.prettierrc +10 -0
- package/template-vue/eslint.config.js +130 -0
- package/template-vue/index.html +17 -0
- package/template-vue/package-lock.json +4082 -0
- package/template-vue/package.json +43 -0
- package/template-vue/public/assets/fonts/LICENSE +13 -0
- package/template-vue/public/assets/fonts/template.typeface.json +1 -0
- package/template-vue/public/assets/hdrs/template.hdr +0 -0
- package/template-vue/public/assets/icons/benjosLogoBlack.svg +5 -0
- package/template-vue/public/assets/loaders/draco/README.md +32 -0
- package/template-vue/public/assets/loaders/draco/draco_decoder.js +34 -0
- package/template-vue/public/assets/loaders/draco/draco_decoder.wasm +0 -0
- package/template-vue/public/assets/loaders/draco/draco_encoder.js +33 -0
- package/template-vue/public/assets/loaders/draco/draco_wasm_wrapper.js +117 -0
- package/template-vue/public/assets/loaders/draco/gltf/draco_decoder.js +33 -0
- package/template-vue/public/assets/loaders/draco/gltf/draco_decoder.wasm +0 -0
- package/template-vue/public/assets/loaders/draco/gltf/draco_encoder.js +33 -0
- package/template-vue/public/assets/loaders/draco/gltf/draco_wasm_wrapper.js +116 -0
- package/template-vue/public/assets/models/template.glb +0 -0
- package/template-vue/public/assets/textures/template.jpg +0 -0
- package/template-vue/readme.md +34 -0
- package/template-vue/src/experiences/Experience.ts +27 -0
- package/template-vue/src/experiences/cameras/threes/DebugThreeCameraController.ts +55 -0
- package/template-vue/src/experiences/cameras/threes/LoaderThreeCameraController.ts +25 -0
- package/template-vue/src/experiences/cameras/threes/MainThreeCameraController.ts +24 -0
- package/template-vue/src/experiences/cameras/threes/bases/ThreeCameraControllerBase.ts +90 -0
- package/template-vue/src/experiences/commands/InitCommand.ts +50 -0
- package/template-vue/src/experiences/constants/experiences/AnimationId.ts +3 -0
- package/template-vue/src/experiences/constants/experiences/AssetId.ts +8 -0
- package/template-vue/src/experiences/constants/experiences/CameraId.ts +7 -0
- package/template-vue/src/experiences/constants/experiences/DebugGuiTitle.ts +6 -0
- package/template-vue/src/experiences/constants/experiences/Object3dId.ts +3 -0
- package/template-vue/src/experiences/constants/experiences/ViewId.ts +16 -0
- package/template-vue/src/experiences/constants/experiences/ViewType.ts +6 -0
- package/template-vue/src/experiences/engines/threes/MainThree.ts +11 -0
- package/template-vue/src/experiences/engines/threes/app/LoaderThreeApp.ts +49 -0
- package/template-vue/src/experiences/engines/threes/app/MainThreeApp.ts +109 -0
- package/template-vue/src/experiences/engines/threes/app/bases/ThreeAppBase.ts +128 -0
- package/template-vue/src/experiences/engines/vues/MainVue.vue +9 -0
- package/template-vue/src/experiences/managers/DebugManager.ts +87 -0
- package/template-vue/src/experiences/managers/LoaderManager.ts +177 -0
- package/template-vue/src/experiences/managers/threes/ThreeAssetsManager.ts +263 -0
- package/template-vue/src/experiences/managers/threes/ThreeCameraControllerManager.ts +46 -0
- package/template-vue/src/experiences/managers/threes/ThreeRaycasterManager.ts +21 -0
- package/template-vue/src/experiences/materials/threes/loaders/LoaderMaterial.ts +44 -0
- package/template-vue/src/experiences/renderers/threes/LoaderRenderer.ts +18 -0
- package/template-vue/src/experiences/renderers/threes/Renderer.ts +71 -0
- package/template-vue/src/experiences/renderers/threes/bases/WebGLRendererBase.ts +29 -0
- package/template-vue/src/experiences/shaders/threes/loaders/LoaderFragmentShader.glsl +8 -0
- package/template-vue/src/experiences/shaders/threes/loaders/LoaderVertexShader.glsl +3 -0
- package/template-vue/src/experiences/styles/abstracts/_import.scss +5 -0
- package/template-vue/src/experiences/styles/abstracts/functions.scss +3 -0
- package/template-vue/src/experiences/styles/abstracts/mixins.scss +0 -0
- package/template-vue/src/experiences/styles/abstracts/variables.scss +7 -0
- package/template-vue/src/experiences/styles/commons/fonts.scss +10 -0
- package/template-vue/src/experiences/styles/commons/main.scss +59 -0
- package/template-vue/src/experiences/styles/commons/texts.scss +1 -0
- package/template-vue/src/experiences/styles/style.scss +7 -0
- package/template-vue/src/experiences/styles/views/loader.scss +70 -0
- package/template-vue/src/experiences/types/assetTypes.ts +8 -0
- package/template-vue/src/experiences/types/cameraTypes.ts +37 -0
- package/template-vue/src/experiences/types/global.d.ts +9 -0
- package/template-vue/src/experiences/types/shaders.d.ts +4 -0
- package/template-vue/src/experiences/views/threes/bases/ThreeViewBase.ts +49 -0
- package/template-vue/src/experiences/views/threes/loaders/LoaderThreeView.ts +28 -0
- package/template-vue/src/experiences/views/threes/loaders/components/TemplateLoaderThreeActor.ts +49 -0
- package/template-vue/src/experiences/views/threes/worlds/World2ThreeView.ts +35 -0
- package/template-vue/src/experiences/views/threes/worlds/WorldThreeView.ts +35 -0
- package/template-vue/src/experiences/views/threes/worlds/components/Environment.ts +89 -0
- package/template-vue/src/experiences/views/threes/worlds/components/actors/TemplateFont.ts +58 -0
- package/template-vue/src/experiences/views/threes/worlds/components/actors/TemplateMesh.ts +65 -0
- package/template-vue/src/experiences/views/threes/worlds/components/actors/TemplateMesh2.ts +71 -0
- package/template-vue/src/experiences/views/threes/worlds/components/actors/TemplateModel.ts +33 -0
- package/template-vue/src/experiences/views/threes/worlds/components/actors/bases/ThreeActorBase.ts +44 -0
- package/template-vue/src/experiences/views/threes/worlds/components/actors/bases/ThreeAnimatedModelBase.ts +63 -0
- package/template-vue/src/experiences/views/threes/worlds/components/actors/bases/ThreeModelBase.ts +48 -0
- package/template-vue/src/experiences/views/vues/LoaderView.vue +55 -0
- package/template-vue/src/main.ts +7 -0
- package/template-vue/tsconfig.app.json +14 -0
- package/template-vue/tsconfig.json +7 -0
- package/template-vue/tsconfig.node.json +17 -0
- package/template-vue/vite.config.ts +16 -0
package/dist/index.js
CHANGED
|
@@ -9,6 +9,10 @@ import { fileURLToPath } from 'url';
|
|
|
9
9
|
const __filename = fileURLToPath(import.meta.url);
|
|
10
10
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11
11
|
const __dirname = path.dirname(__filename);
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
13
|
+
const pkg = await fs.readJson(path.join(__dirname, '..', 'package.json'));
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
15
|
+
const version = pkg.version;
|
|
12
16
|
async function createProject(projectNameArg) {
|
|
13
17
|
console.log(chalk.cyan.bold('\n🚀 Welcome to @benjos/boilerplate!\n'));
|
|
14
18
|
const answers = await inquirer.prompt([
|
|
@@ -78,7 +82,7 @@ async function createProject(projectNameArg) {
|
|
|
78
82
|
program
|
|
79
83
|
.name('create-boilerplate')
|
|
80
84
|
.description('Create a new Three.js project with Vanilla/React/Vue')
|
|
81
|
-
.version(
|
|
85
|
+
.version(version)
|
|
82
86
|
.argument('[project-name]', 'Project name (use "." for current directory)')
|
|
83
87
|
.action((projectName) => createProject(projectName));
|
|
84
88
|
program.parse();
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,gEAAgE;AAChE,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,gEAAgE;AAChE,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;
|
|
1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iBAAiB,CAAC,CAAC,CAAC;AAChD,CAAC;AAED,OAAO;KACF,IAAI,CAAC,oBAAoB,CAAC;KAC1B,WAAW,CAAC,sDAAsD,CAAC;KACnE,OAAO,CAAC,OAAO,CAAC;KAChB,QAAQ,CAAC,gBAAgB,EAAE,8CAA8C,CAAC;KAC1E,MAAM,CAAC,CAAC,WAAoB,EAAE,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;AAElE,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@benjos/create-boilerplate",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "CLI to scaffold Three.js projects with framework support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
11
|
"template-vanilla",
|
|
12
|
-
"template-react"
|
|
12
|
+
"template-react",
|
|
13
|
+
"template-vue"
|
|
13
14
|
],
|
|
14
15
|
"scripts": {
|
|
15
16
|
"build": "tsc",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "template-react",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "template-react",
|
|
9
|
-
"version": "1.5.
|
|
9
|
+
"version": "1.5.2",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@dimforge/rapier3d": "^0.19.3",
|
|
12
12
|
"gsap": "^3.14.2",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "template-vanilla",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "template-vanilla",
|
|
9
|
-
"version": "1.5.
|
|
9
|
+
"version": "1.5.2",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@benjos/cookware": "^1.0.4",
|
|
12
12
|
"@benjos/spices": "^1.0.1",
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import eslint from '@eslint/js';
|
|
2
|
+
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended';
|
|
3
|
+
import { defineConfig } from "eslint/config";
|
|
4
|
+
import tseslint from 'typescript-eslint';
|
|
5
|
+
|
|
6
|
+
export default defineConfig(
|
|
7
|
+
{
|
|
8
|
+
ignores: ['**/dist/**', '**/build/**', '**/node_modules/**', '**/*.min.js', '**/*.js.map', '**/*.d.ts'],
|
|
9
|
+
},
|
|
10
|
+
eslint.configs.recommended,
|
|
11
|
+
tseslint.configs.recommendedTypeChecked,
|
|
12
|
+
tseslint.configs.stylisticTypeChecked,
|
|
13
|
+
eslintPluginPrettier,
|
|
14
|
+
{
|
|
15
|
+
languageOptions: {
|
|
16
|
+
parserOptions: {
|
|
17
|
+
projectService: true,
|
|
18
|
+
tsconfigRootDir: import.meta.dirname,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
rules: {
|
|
24
|
+
// Style Rules
|
|
25
|
+
'@typescript-eslint/explicit-member-accessibility': [
|
|
26
|
+
'error',
|
|
27
|
+
{
|
|
28
|
+
accessibility: 'explicit',
|
|
29
|
+
overrides: {
|
|
30
|
+
constructors: 'no-public',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
'@typescript-eslint/member-ordering': 'off',
|
|
35
|
+
'@typescript-eslint/naming-convention': [
|
|
36
|
+
'error',
|
|
37
|
+
// Variables
|
|
38
|
+
{
|
|
39
|
+
selector: 'variable',
|
|
40
|
+
modifiers: ['const'],
|
|
41
|
+
format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
|
|
42
|
+
},
|
|
43
|
+
// Parameters
|
|
44
|
+
{
|
|
45
|
+
selector: 'parameter',
|
|
46
|
+
format: ['camelCase', 'PascalCase'],
|
|
47
|
+
leadingUnderscore: 'allow',
|
|
48
|
+
},
|
|
49
|
+
// Object properties (constants like DomEvent.MOUSE_DOWN)
|
|
50
|
+
{
|
|
51
|
+
selector: 'objectLiteralProperty',
|
|
52
|
+
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
|
|
53
|
+
},
|
|
54
|
+
// Public members (instance or static) : camelCase or PascalCase
|
|
55
|
+
{
|
|
56
|
+
selector: ['method', 'property'],
|
|
57
|
+
modifiers: ['public'],
|
|
58
|
+
format: ['camelCase', 'PascalCase'],
|
|
59
|
+
leadingUnderscore: 'forbid',
|
|
60
|
+
},
|
|
61
|
+
// Private static members : _PascalCase or _UPPER_CASE
|
|
62
|
+
{
|
|
63
|
+
selector: ['method', 'property'],
|
|
64
|
+
modifiers: ['private', 'static'],
|
|
65
|
+
format: ['PascalCase', 'UPPER_CASE'],
|
|
66
|
+
leadingUnderscore: 'require',
|
|
67
|
+
},
|
|
68
|
+
// Protected static members : _PascalCase or _UPPER_CASE
|
|
69
|
+
{
|
|
70
|
+
selector: ['method', 'property'],
|
|
71
|
+
modifiers: ['protected', 'static'],
|
|
72
|
+
format: ['PascalCase', 'UPPER_CASE'],
|
|
73
|
+
leadingUnderscore: 'require',
|
|
74
|
+
},
|
|
75
|
+
// Private instance members : _camelCase or _UPPER_CASE
|
|
76
|
+
{
|
|
77
|
+
selector: ['method', 'property'],
|
|
78
|
+
modifiers: ['private'],
|
|
79
|
+
format: ['camelCase', 'UPPER_CASE'],
|
|
80
|
+
leadingUnderscore: 'require',
|
|
81
|
+
},
|
|
82
|
+
// Protected instance members : _camelCase or _UPPER_CASE
|
|
83
|
+
{
|
|
84
|
+
selector: ['method', 'property'],
|
|
85
|
+
modifiers: ['protected'],
|
|
86
|
+
format: ['camelCase', 'UPPER_CASE'],
|
|
87
|
+
leadingUnderscore: 'require',
|
|
88
|
+
},
|
|
89
|
+
// Types
|
|
90
|
+
{
|
|
91
|
+
selector: 'typeLike',
|
|
92
|
+
format: ['PascalCase'],
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
'@typescript-eslint/no-unused-vars': [
|
|
96
|
+
'warn',
|
|
97
|
+
{
|
|
98
|
+
argsIgnorePattern: '^_',
|
|
99
|
+
varsIgnorePattern: '^_',
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
|
|
103
|
+
// Best Practices
|
|
104
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
105
|
+
'@typescript-eslint/no-floating-promises': 'error',
|
|
106
|
+
'@typescript-eslint/no-misused-promises': 'error',
|
|
107
|
+
'@typescript-eslint/await-thenable': 'error',
|
|
108
|
+
'@typescript-eslint/no-empty-function': 'off',
|
|
109
|
+
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
110
|
+
'@typescript-eslint/prefer-nullish-coalescing': 'warn',
|
|
111
|
+
'@typescript-eslint/no-empty-object-type': 'off',
|
|
112
|
+
'@typescript-eslint/require-await': 'warn',
|
|
113
|
+
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
114
|
+
'@typescript-eslint/explicit-function-return-type': [
|
|
115
|
+
'error',
|
|
116
|
+
{
|
|
117
|
+
allowExpressions: false,
|
|
118
|
+
allowTypedFunctionExpressions: true,
|
|
119
|
+
allowHigherOrderFunctions: true,
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
|
|
123
|
+
// Prettier integration
|
|
124
|
+
'prettier/prettier': 'warn',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
ignores: ['dist/**', 'node_modules/**', '*.config.js', '*.config.ts', 'public/**'],
|
|
129
|
+
}
|
|
130
|
+
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8" />
|
|
6
|
+
<link rel="icon" type="image/svg+xml" href="./assets/icons/benjosLogoBlack.svg" />
|
|
7
|
+
<meta name="viewport"
|
|
8
|
+
content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1, height=device-height, user-scalable=no, viewport-fit=cover, shrink-to-fit=no, minimal-ui" />
|
|
9
|
+
<title>Boilerplate + Vue</title>
|
|
10
|
+
</head>
|
|
11
|
+
|
|
12
|
+
<body>
|
|
13
|
+
<div id="app"></div>
|
|
14
|
+
<script type="module" src="/src/main.ts"></script>
|
|
15
|
+
</body>
|
|
16
|
+
|
|
17
|
+
</html>
|