killscript 0.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 +21 -0
- package/README.md +20 -0
- package/dist/chunk-T3XTQIWG.js +6 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +2571 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +6 -0
- package/package.json +46 -0
- package/templates/default/README.md +18 -0
- package/templates/default/gitignore +5 -0
- package/templates/default/package.json +20 -0
- package/templates/default/src/client/controls.ts +5 -0
- package/templates/default/src/client/features/module-toggle.ts +20 -0
- package/templates/default/src/client/main.ts +2 -0
- package/templates/default/src/server/features/gameplay.ts +12 -0
- package/templates/default/src/server/main.ts +1 -0
- package/templates/default/src/shared/settings.ts +7 -0
- package/templates/default/tsconfig.client.json +12 -0
- package/templates/default/tsconfig.json +7 -0
- package/templates/default/tsconfig.server.json +12 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 KILLSCRIPT contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# killscript
|
|
2
|
+
|
|
3
|
+
CLI for creating, compiling, hot-reloading and packing TypeScript KILLSCRIPT
|
|
4
|
+
modules.
|
|
5
|
+
|
|
6
|
+
Use the version-pinned command in the
|
|
7
|
+
[Getting started guide](https://silentbless.github.io/killscript/guides/getting-started/),
|
|
8
|
+
then run `npm run dev` inside the generated project.
|
|
9
|
+
|
|
10
|
+
Use `--reflex` when the module needs a server entry. The CLI provides `new`,
|
|
11
|
+
`init`, `link`, `dev`, `check`, `build`, `doctor` and `clean`. Development
|
|
12
|
+
builds are synchronized as safe managed folders; release builds are packed as
|
|
13
|
+
`dist/ModuleName.KillScript`.
|
|
14
|
+
|
|
15
|
+
The compiler targets the game's XLua/Lua 5.4 sandbox and bundles modular
|
|
16
|
+
TypeScript into the one or two scripts the game loads. Node.js 20 or newer is
|
|
17
|
+
required for the toolchain, not for the generated module.
|
|
18
|
+
|
|
19
|
+
Read the [full documentation](https://silentbless.github.io/killscript/) or
|
|
20
|
+
[source](https://github.com/SilentBless/killscript). Licensed under MIT.
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|