create-amxts 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/index.mjs +8 -0
- package/package.json +39 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 kukson777
|
|
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
|
+
# create-amxts
|
|
2
|
+
|
|
3
|
+
Creates an [amxts](https://amxts.github.io/) project: Counter-Strike 1.6
|
|
4
|
+
plugins in TypeScript.
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
npm create amxts@latest
|
|
8
|
+
pnpm create amxts
|
|
9
|
+
yarn create amxts
|
|
10
|
+
bun create amxts
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
It asks for the package manager, the folder, the modules, oxlint and oxfmt, git
|
|
14
|
+
and the server folder `dev` deploys to - each of them is also a flag:
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
npm create amxts@latest my-server -- --pm npm --modules menu-core,config-core --no-git --server D:/hlds/cstrike/addons/amxts --yes
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
It is `amxts init` of [@amxts/cli](../cli): `npx amxts init --help` lists the flags.
|
package/index.mjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// npm create amxts@latest [folder] [options] - which is `amxts init`: the
|
|
3
|
+
// questions, the flags and the files are @amxts/cli's, so the two never
|
|
4
|
+
// drift apart.
|
|
5
|
+
import process from 'node:process';
|
|
6
|
+
import { main } from '@amxts/cli';
|
|
7
|
+
|
|
8
|
+
main(['init', ...process.argv.slice(2)]);
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-amxts",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"description": "Create an amxts project: npm create amxts@latest",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "kukson777",
|
|
8
|
+
"url": "https://github.com/kukson777"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"homepage": "https://amxts.github.io",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/amxts/amxts-cli.git",
|
|
15
|
+
"directory": "packages/create-amxts"
|
|
16
|
+
},
|
|
17
|
+
"bugs": "https://github.com/amxts/amxts-cli/issues",
|
|
18
|
+
"keywords": [
|
|
19
|
+
"amxts",
|
|
20
|
+
"amxmodx",
|
|
21
|
+
"counter-strike",
|
|
22
|
+
"create"
|
|
23
|
+
],
|
|
24
|
+
"bin": {
|
|
25
|
+
"create-amxts": "index.mjs"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"index.mjs"
|
|
29
|
+
],
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=20.12"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@amxts/cli": "^0.1.0"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
}
|
|
39
|
+
}
|