amxxpack 0.0.6 → 0.0.7
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/README.md +4 -0
- package/lib/cli/program.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,6 +11,9 @@ This system will be useful for projects with multiple plugins and assets. Using
|
|
|
11
11
|
- 🔥 Hot reload
|
|
12
12
|
- 🧸 Assets builder
|
|
13
13
|
|
|
14
|
+
## 🔄Requirements
|
|
15
|
+
- Node.js 10.0.0+
|
|
16
|
+
|
|
14
17
|
## 🔧 Installation
|
|
15
18
|
**AMXXPack** is available through the npm registry.
|
|
16
19
|
Installation can be done using the `npm install` command:
|
|
@@ -29,6 +32,7 @@ npm install -g amxxpack
|
|
|
29
32
|
- Execute `npm init -y` command to init the package
|
|
30
33
|
- Execute `npm install amxxpack --save-dev` command to install `amxxpack` locally
|
|
31
34
|
- Execute `npx amxxpack init` command to create new config
|
|
35
|
+
- Extract the **Amx Mod X** compiler to the `./compiler` dir of the project (content of `scripting` folder).
|
|
32
36
|
- Use `npx amxxpack build` command to build the project
|
|
33
37
|
- Adding build scripts *(optional)*
|
|
34
38
|
|
package/lib/cli/program.js
CHANGED
|
@@ -64,7 +64,7 @@ program
|
|
|
64
64
|
program
|
|
65
65
|
.command('compile')
|
|
66
66
|
.argument('<path>', 'Script path or glob')
|
|
67
|
-
.option('--config, -c', 'Config file', '.amxxpack.json')
|
|
67
|
+
.option('--config, -c <path>', 'Config file', '.amxxpack.json')
|
|
68
68
|
.action(function (str, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
69
69
|
return __generator(this, function (_a) {
|
|
70
70
|
switch (_a.label) {
|
|
@@ -78,7 +78,7 @@ program
|
|
|
78
78
|
program
|
|
79
79
|
.command('build')
|
|
80
80
|
.option('--watch, -w', 'Watch project')
|
|
81
|
-
.option('--config, -c', 'Config file', '.amxxpack.json')
|
|
81
|
+
.option('--config, -c <path>', 'Config file', '.amxxpack.json')
|
|
82
82
|
.action(function (str, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
83
83
|
var opts;
|
|
84
84
|
return __generator(this, function (_a) {
|