mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 04:51:47 +00:00
Refactor init command (#1117)
This commit is contained in:
parent
80a381dbb1
commit
6ea95d487c
16 changed files with 99 additions and 154 deletions
17
assets/project-templates/plugin/README.md
Normal file
17
assets/project-templates/plugin/README.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# {project_name}
|
||||
Generated by [Rojo](https://github.com/rojo-rbx/rojo) {rojo_version}.
|
||||
|
||||
## Getting Started
|
||||
To build this plugin to your local plugins folder, use:
|
||||
|
||||
```bash
|
||||
rojo build -p "{project_name}.rbxm"
|
||||
```
|
||||
|
||||
You can include the `watch` flag to re-build it on save:
|
||||
|
||||
```bash
|
||||
rojo build -p "{project_name}.rbxm" --watch
|
||||
```
|
||||
|
||||
For more help, check out [the Rojo documentation](https://rojo.space/docs).
|
||||
6
assets/project-templates/plugin/default.project.json
Normal file
6
assets/project-templates/plugin/default.project.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"name": "{project_name}",
|
||||
"tree": {
|
||||
"$path": "src"
|
||||
}
|
||||
}
|
||||
3
assets/project-templates/plugin/gitignore.txt
Normal file
3
assets/project-templates/plugin/gitignore.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Plugin model files
|
||||
/{project_name}.rbxmx
|
||||
/{project_name}.rbxm
|
||||
1
assets/project-templates/plugin/src/init.server.luau
Normal file
1
assets/project-templates/plugin/src/init.server.luau
Normal file
|
|
@ -0,0 +1 @@
|
|||
print("Hello world, from plugin!")
|
||||
Loading…
Add table
Add a link
Reference in a new issue