Skip to content

Commit 6b43488

Browse files
committed
Add 'new.js' script
1 parent 4f8d491 commit 6b43488

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+14903
-86
lines changed

README.md

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,7 @@ This contains a registry of extensions.
99

1010
1. Fork this repository
1111
2. Add a new folder in the `registry` folder with the name `<vendorid>.<pluginid>`
12-
3. Add a `extension.json` file in your new folder with the following content:
13-
```json
14-
{
15-
"$schema": "../../schema/registry.schema.json",
16-
"extension_id": "<your-plugin-id>",
17-
"vendor_id": "<your-company-id>",
18-
"display_name": "<display name of your plugin",
19-
"display_vendor": "<dislay name of your company>",
20-
"license": "open-source",
21-
"latest": "1.0.0",
22-
"versions": {
23-
"1.0.0": {
24-
"sources": [
25-
"url": "<url to your plugin>",
26-
"sha256": "<sha256 of your plugin>"
27-
],
28-
"metadata": {
29-
// A copy of the metadata from your plugin.
30-
}
31-
}
32-
}
33-
}
34-
```
12+
3. Add your extension to the registry using `node scripts/new.js registry/<vendorid>.<pluginid> <path/to/your/extension.json>`. This will create a new folder with the name `<vendorid>.<pluginid>` and create the `extension.json` based on your extension in it. (You can also specify your lua entry script path instead)
3513
4. Run `npm run all` to validate your changes
3614
5. Run `git add .` and `git commit -m "Added <your-plugin-id>"`
3715
6. Push your changes to your fork

node_modules/.bin/luaparse

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/printj

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.package-lock.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/lua-in-js/LICENSE

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/lua-in-js/README.md

Lines changed: 103 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)