@gorilla-engine-sdk/create-gorilla-engine-plugin 1.0.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.md +64 -0
- package/README.md +103 -0
- package/generator-gorilla-engine-plugin/app/index.js +338 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/SKILL.md +295 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/references/effects-filters.md +186 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/references/indexing.md +129 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/references/instrument-files.md +547 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/references/key-rules.md +81 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/references/modulation.md +210 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/references/module-control.md +217 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/references/module-reference-bus-effects.md +663 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/references/module-reference-core.md +145 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/references/module-reference-misc.md +59 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/references/module-reference-modulation.md +85 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/references/module-reference-voice-effects.md +407 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/references/note-events.md +278 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/references/properties.md +230 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/references/script-patterns.md +494 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-dsp/references/time-tempo.md +209 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-ui/SKILL.md +104 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-ui/references/advanced-controls.md +194 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-ui/references/base-props.md +167 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-ui/references/basic-controls.md +230 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-ui/references/bindings.md +183 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-ui/references/composite-components.md +258 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-ui/references/containers.md +149 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-ui/references/editors.md +191 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-ui/references/event-handlers.md +150 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-ui/references/getting-started.md +143 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-ui/references/gorilla-engine-api.md +147 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-ui/references/instrument-api.md +250 -0
- package/generator-gorilla-engine-plugin/app/templates/.agents/skills/gorilla-engine-ui/references/visualization.md +209 -0
- package/generator-gorilla-engine-plugin/app/templates/.prettierignore +13 -0
- package/generator-gorilla-engine-plugin/app/templates/.vscode/settings.json +14 -0
- package/generator-gorilla-engine-plugin/app/templates/.vscode_input/launch.json +89 -0
- package/generator-gorilla-engine-plugin/app/templates/README.md +36 -0
- package/generator-gorilla-engine-plugin/app/templates/assets/fonts/OFL.txt +93 -0
- package/generator-gorilla-engine-plugin/app/templates/assets/fonts/Roboto-Bold.otf +0 -0
- package/generator-gorilla-engine-plugin/app/templates/assets/fonts/Roboto-Medium.otf +0 -0
- package/generator-gorilla-engine-plugin/app/templates/assets/fonts/Roboto-Regular.otf +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/Presets/Factory/Category 1/Init.preset +1 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/Presets/Factory/Category 1/Three Quarters.preset +1 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/Horizontal Slider.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/Horizontal Slider@2x.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/Rotary Bipolar.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/Rotary-Bipolar@2x.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/Rotary.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/Rotary@2x.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/arrow-down-default.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/arrow-down-default@2x.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/arrow-down-hover.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/arrow-down-hover@2x.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/arrow-down-pressed.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/arrow-down-pressed@2x.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/arrow-up-default.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/arrow-up-default@2x.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/arrow-up-hover.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/arrow-up-hover@2x.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/arrow-up-pressed.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/arrow-up-pressed@2x.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/toggle-default.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/toggle-default@2x.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/toggle-pressed.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/images/toggle-pressed@2x.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/instruments/Basic Synth Example_part1.blob +0 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/assets/instruments/Basic Synth Example_part2.blob +1 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/instrument/Basic Synth Example.inst +157 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/instrument/Basic Synth Example.txt +184 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/src/app/Root.tsx +35 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/src/app/components/ErrorBoundary.tsx +138 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/src/app/components/UserInterface.tsx +338 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/src/app/pluginConfig.ts +4 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/src/dialogsCustomStyle.ts +98 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/src/index.tsx +217 -0
- package/generator-gorilla-engine-plugin/app/templates/basic-synth/src/presetBrowserCustomStyle.ts +124 -0
- package/generator-gorilla-engine-plugin/app/templates/build.ugep +173 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/assets/Presets/Factory/Category 1/01 - All The Way Down.preset +1 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/assets/Presets/Factory/Category 1/02 - About Half.preset +1 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/assets/Presets/Factory/Category 1/03 - Three Quarters.preset +1 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/assets/Presets/Factory/Category 1/04 - All The Way Up.preset +1 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/assets/images/Rotary.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/assets/images/Rotary@2x.png +0 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/assets/instruments/Reverb Example_part1.blob +0 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/assets/instruments/Reverb Example_part2.blob +1 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/instrument/Reverb Example.inst +73 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/instrument/Reverb Example.txt +21 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/src/app/Root.tsx +35 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/src/app/components/ErrorBoundary.tsx +114 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/src/app/components/UserInterface.tsx +85 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/src/app/pluginConfig.ts +4 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/src/dialogsCustomStyle.ts +101 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/src/index.tsx +214 -0
- package/generator-gorilla-engine-plugin/app/templates/effect/src/presetBrowserCustomStyle.ts +124 -0
- package/generator-gorilla-engine-plugin/app/templates/gitignore +9 -0
- package/generator-gorilla-engine-plugin/app/templates/licence.txt +0 -0
- package/generator-gorilla-engine-plugin/app/templates/package.json +38 -0
- package/generator-gorilla-engine-plugin/app/templates/prettierrc +9 -0
- package/generator-gorilla-engine-plugin/app/templates/tsconfig.json +20 -0
- package/generator-gorilla-engine-plugin/package.json +17 -0
- package/index.js +72 -0
- package/package.json +42 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { PresetBrowserSaveModalStyle, PresetBrowserStyle } from '@gorilla-engine-sdk/ge-preset-browser'
|
|
2
|
+
|
|
3
|
+
export const presetBrowserSaveModalStyle: PresetBrowserSaveModalStyle = {
|
|
4
|
+
fileNameLabel: {
|
|
5
|
+
textColor: 'E1E6F5',
|
|
6
|
+
font: 'fonts/Roboto-Medium.otf',
|
|
7
|
+
fontSize: 14,
|
|
8
|
+
},
|
|
9
|
+
fileNameInput: {
|
|
10
|
+
backgroundColor: '1d2029',
|
|
11
|
+
textColor: 'E1E6F5',
|
|
12
|
+
font: 'fonts/Roboto-Regular.otf',
|
|
13
|
+
fontSize: 14,
|
|
14
|
+
caretColor: 'E1E6F5',
|
|
15
|
+
},
|
|
16
|
+
categoryLabel: {
|
|
17
|
+
textColor: 'E1E6F5',
|
|
18
|
+
font: 'fonts/Roboto-Medium.otf',
|
|
19
|
+
fontSize: 14,
|
|
20
|
+
},
|
|
21
|
+
categoryComboBox: {
|
|
22
|
+
backgroundColor: '1d2029',
|
|
23
|
+
textColor: 'E1E6F5',
|
|
24
|
+
font: 'fonts/Roboto-Medium.otf',
|
|
25
|
+
fontSize: 14,
|
|
26
|
+
popup: {
|
|
27
|
+
backgroundColor: '1d2029',
|
|
28
|
+
itemTextColor: 'E1E6F5',
|
|
29
|
+
itemSelectedTextColor: 'E1E6F5',
|
|
30
|
+
itemHighlightedTextColor: 'E1E6F5',
|
|
31
|
+
itemSelectedBackgroundColor: '282c34',
|
|
32
|
+
itemHighlightedBackgroundColor: '5177E0',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const presetBrowserCustomStyle: PresetBrowserStyle = {
|
|
38
|
+
container: {
|
|
39
|
+
x: 57,
|
|
40
|
+
y: 25,
|
|
41
|
+
width: 300,
|
|
42
|
+
height: 100,
|
|
43
|
+
backgroundColor: '2F323D',
|
|
44
|
+
interceptsMouseClicks: false,
|
|
45
|
+
},
|
|
46
|
+
comboBox: {
|
|
47
|
+
x: 0,
|
|
48
|
+
y: 0,
|
|
49
|
+
width: 200,
|
|
50
|
+
height: 30,
|
|
51
|
+
backgroundColor: '1d2029',
|
|
52
|
+
font: "fonts/Roboto-Medium.otf",
|
|
53
|
+
textColor: 'E1E6F5',
|
|
54
|
+
padding: 7,
|
|
55
|
+
levelSeperator: '|',
|
|
56
|
+
fontSize: 18,
|
|
57
|
+
textAlign: "center",
|
|
58
|
+
popup: {
|
|
59
|
+
backgroundColor: "1d2029",
|
|
60
|
+
itemTextColor: "E1E6F5",
|
|
61
|
+
itemSelectedTextColor: "E1E6F5",
|
|
62
|
+
itemHighlightedTextColor: "E1E6F5",
|
|
63
|
+
itemSelectedBackgroundColor: "282c34",
|
|
64
|
+
itemHighlightedBackgroundColor: "5177E0",
|
|
65
|
+
separatorHeight: 0,
|
|
66
|
+
separatorPadding: 0,
|
|
67
|
+
padding: { left: 16, top: 0, right: 0, bottom: 0 },
|
|
68
|
+
},
|
|
69
|
+
images: {
|
|
70
|
+
arrowIcon: "images/transparent.png",
|
|
71
|
+
popupCheckmarkHighlightedImage: "images/transparent.png",
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
prevButton: {
|
|
75
|
+
x: 205,
|
|
76
|
+
y: 0,
|
|
77
|
+
width: 30,
|
|
78
|
+
height: 30,
|
|
79
|
+
backgroundColor: '21242E',
|
|
80
|
+
textColor: 'E1E6F5',
|
|
81
|
+
font: "fonts/Roboto-Medium.otf",
|
|
82
|
+
text: '<',
|
|
83
|
+
},
|
|
84
|
+
nextButton: {
|
|
85
|
+
x: 235,
|
|
86
|
+
y: 0,
|
|
87
|
+
width: 30,
|
|
88
|
+
height: 30,
|
|
89
|
+
backgroundColor: '21242E',
|
|
90
|
+
textColor: 'E1E6F5',
|
|
91
|
+
font: "fonts/Roboto-Medium.otf",
|
|
92
|
+
text: '>',
|
|
93
|
+
},
|
|
94
|
+
deleteButton: {
|
|
95
|
+
x: 0,
|
|
96
|
+
y: 35,
|
|
97
|
+
width: 85,
|
|
98
|
+
height: 25,
|
|
99
|
+
backgroundColor: '21242E',
|
|
100
|
+
textColor: 'E1E6F5',
|
|
101
|
+
font: "fonts/Roboto-Medium.otf",
|
|
102
|
+
text: 'Delete',
|
|
103
|
+
},
|
|
104
|
+
saveButton: {
|
|
105
|
+
x: 90,
|
|
106
|
+
y: 35,
|
|
107
|
+
width: 85,
|
|
108
|
+
height: 25,
|
|
109
|
+
backgroundColor: '21242E',
|
|
110
|
+
textColor: 'E1E6F5',
|
|
111
|
+
font: "fonts/Roboto-Medium.otf",
|
|
112
|
+
text: 'Save',
|
|
113
|
+
},
|
|
114
|
+
saveAsButton: {
|
|
115
|
+
x: 180,
|
|
116
|
+
y: 35,
|
|
117
|
+
width: 85,
|
|
118
|
+
height: 25,
|
|
119
|
+
backgroundColor: '21242E',
|
|
120
|
+
textColor: 'E1E6F5',
|
|
121
|
+
font: "fonts/Roboto-Medium.otf",
|
|
122
|
+
text: 'Save As',
|
|
123
|
+
},
|
|
124
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dist",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"postinstall": "npm run prepare:artifacts && npx tsc",
|
|
7
|
+
"beautify": "npx prettier --write .",
|
|
8
|
+
"testBeauty": "npx prettier --check .",
|
|
9
|
+
"build:ui": "npx gorilla-engine-scripts-deploy -u \"<%= ugep_filename %>\" -e ./src/index.tsx --oneshot --no-deploy --build-ui-only",
|
|
10
|
+
"sync:instruments": "npx gorilla-engine-scripts-deploy -u \"<%= ugep_filename %>\" -e ./src/index.tsx --oneshot --no-deploy --sync-instruments-only",
|
|
11
|
+
"prepare:artifacts": "npm run sync:instruments && npm run build:ui",
|
|
12
|
+
"start": "npx gorilla-engine-scripts-deploy -u \"<%= ugep_filename %>\" -e ./src/index.tsx --standalone",
|
|
13
|
+
"deploy": "npx gorilla-engine-scripts-deploy -u \"<%= ugep_filename %>\" -e ./src/index.tsx",
|
|
14
|
+
"build": "npx gorilla-engine-scripts-build --ugep \"<%= ugep_filename %>\"",
|
|
15
|
+
"buildAndInstall": "npx gorilla-engine-scripts-build --ugep \"<%= ugep_filename %>\" --install"
|
|
16
|
+
},
|
|
17
|
+
"author": "<%= plugin_manufacturer %>",
|
|
18
|
+
"license": "ISC",
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@gorilla-engine-sdk/gorilla-engine-scripts": "^1.3.4",
|
|
21
|
+
"@types/gorilla-engine": "^1.1.33",
|
|
22
|
+
"@types/node": "^18.0.6",
|
|
23
|
+
"@types/react": "^19.2.16",
|
|
24
|
+
"eslint": "^10.2.0",
|
|
25
|
+
"eslint-config-prettier": "^10.1.8",
|
|
26
|
+
"prettier": "^3.8.3",
|
|
27
|
+
"typescript": "^6.0.2"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@gorilla-engine-sdk/ge-blob-manager": "^1.0.5",
|
|
31
|
+
"@gorilla-engine-sdk/ge-dialogs-lib": "^0.5.7",
|
|
32
|
+
"@gorilla-engine-sdk/ge-labeled-components": "^0.6.0",
|
|
33
|
+
"@gorilla-engine-sdk/ge-preset-browser": "^0.5.6",
|
|
34
|
+
"@gorilla-engine-sdk/ge-session-presets-lib": "^0.5.13",
|
|
35
|
+
"@gorilla-engine-sdk/gorilla-engine-react": "^1.6.1",
|
|
36
|
+
"react": "^19.2.7"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"moduleResolution": "bundler",
|
|
4
|
+
"jsx": "react",
|
|
5
|
+
"noImplicitAny": false,
|
|
6
|
+
"noEmitOnError": true,
|
|
7
|
+
"removeComments": false,
|
|
8
|
+
"sourceMap": false,
|
|
9
|
+
"inlineSourceMap": true,
|
|
10
|
+
"target": "ES2022",
|
|
11
|
+
"outDir": "build",
|
|
12
|
+
"rootDir": "src",
|
|
13
|
+
"allowJs": true,
|
|
14
|
+
"allowSyntheticDefaultImports": true,
|
|
15
|
+
"module": "commonjs",
|
|
16
|
+
"noEmit": true,
|
|
17
|
+
"types": ["node", "gorilla-engine"]
|
|
18
|
+
},
|
|
19
|
+
"include": ["src/**/*"]
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "generator-gorilla-engine-plugin",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"files": [
|
|
6
|
+
"app"
|
|
7
|
+
],
|
|
8
|
+
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"yeoman-generator"
|
|
14
|
+
],
|
|
15
|
+
"author": "UJAM Inc.",
|
|
16
|
+
"license": "GORILLA ENGINE FREE TIER LICENSE"
|
|
17
|
+
}
|
package/index.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { createEnv } from 'yeoman-environment';
|
|
4
|
+
const yeoenv = createEnv();
|
|
5
|
+
import meow from 'meow';
|
|
6
|
+
import readline from 'readline/promises';
|
|
7
|
+
import { fileURLToPath } from 'url';
|
|
8
|
+
import {
|
|
9
|
+
getGorillaCompilerNotFoundMessage,
|
|
10
|
+
findInstalledGorillaCompilerPath,
|
|
11
|
+
} from '@gorilla-engine-sdk/gorilla-engine-scripts/compiler-detection.js';
|
|
12
|
+
|
|
13
|
+
const isPromptCancellationError = (error) =>
|
|
14
|
+
error?.name === 'ExitPromptError' ||
|
|
15
|
+
error?.name === 'AbortError' ||
|
|
16
|
+
error?.code === 'ABORT_ERR' ||
|
|
17
|
+
(typeof error?.message === 'string' && error.message.includes('SIGINT'));
|
|
18
|
+
|
|
19
|
+
const cli = meow(
|
|
20
|
+
`
|
|
21
|
+
Usage
|
|
22
|
+
create-gorilla-engine-plugin [options] [folder]
|
|
23
|
+
|
|
24
|
+
Arguments
|
|
25
|
+
folder output folder (defaults to a folder named after the plugin)
|
|
26
|
+
|
|
27
|
+
Options
|
|
28
|
+
--manufacturer, -m manufacturer name
|
|
29
|
+
--name, -n plugin name
|
|
30
|
+
--effect, -f is this an effect plugin
|
|
31
|
+
`,
|
|
32
|
+
{
|
|
33
|
+
importMeta: import.meta, // This is required
|
|
34
|
+
booleanDefault: undefined,
|
|
35
|
+
flags: {
|
|
36
|
+
manufacturer: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
shortFlag: 'm',
|
|
39
|
+
},
|
|
40
|
+
name: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
shortFlag: 'n',
|
|
43
|
+
},
|
|
44
|
+
effect: {
|
|
45
|
+
type: 'boolean',
|
|
46
|
+
shortFlag: 'f',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
const generatorPath = fileURLToPath(
|
|
53
|
+
new URL('./generator-gorilla-engine-plugin/app', import.meta.url),
|
|
54
|
+
);
|
|
55
|
+
yeoenv.register(generatorPath, 'gorilla-engine-plugin:app');
|
|
56
|
+
|
|
57
|
+
try {
|
|
58
|
+
if (!findInstalledGorillaCompilerPath()) {
|
|
59
|
+
console.error(getGorillaCompilerNotFoundMessage());
|
|
60
|
+
console.error('Aborted.');
|
|
61
|
+
process.exit(1);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
await yeoenv.run('gorilla-engine-plugin:app', { cli: { ...cli.flags, folder: cli.input[0] } });
|
|
65
|
+
} catch (error) {
|
|
66
|
+
if (isPromptCancellationError(error)) {
|
|
67
|
+
console.error('cancelled by user input');
|
|
68
|
+
process.exitCode = 130;
|
|
69
|
+
} else {
|
|
70
|
+
throw error;
|
|
71
|
+
}
|
|
72
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gorilla-engine-sdk/create-gorilla-engine-plugin",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Create gorilla engine based plugins",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"create-gorilla-engine-plugin": "index.js"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"test": "mocha",
|
|
12
|
+
"ci:publish": "node ../../scripts/ci-publish.js"
|
|
13
|
+
},
|
|
14
|
+
"author": "UJAM Inc.",
|
|
15
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@gorilla-engine-sdk/gorilla-engine-scripts": "^1.3.4",
|
|
18
|
+
"meow": "^14.1.0",
|
|
19
|
+
"uuid": "^14.0.0",
|
|
20
|
+
"yeoman-environment": "^6.1.0",
|
|
21
|
+
"yeoman-generator": "^8.2.2"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"mocha": "^11.7.6",
|
|
25
|
+
"yeoman-test": "11.5.2"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://www.gorilla-engine.com/",
|
|
28
|
+
"keywords": [
|
|
29
|
+
"gorilla-engine",
|
|
30
|
+
"UJAM"
|
|
31
|
+
],
|
|
32
|
+
"files": [
|
|
33
|
+
"index.js",
|
|
34
|
+
"generator-gorilla-engine-plugin",
|
|
35
|
+
"README.md",
|
|
36
|
+
"LICENSE.md"
|
|
37
|
+
],
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public",
|
|
40
|
+
"registry": "https://registry.npmjs.org/"
|
|
41
|
+
}
|
|
42
|
+
}
|