sandstone-cli 0.6.5 → 1.0.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.
@@ -0,0 +1,4 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: [MulverineX]
4
+ custom: ['https://paypal.me/FlorianErnst0']
@@ -0,0 +1,27 @@
1
+ name: Node.js Publish
2
+
3
+ on:
4
+ release:
5
+ types: [created]
6
+ # Allows you to run this workflow manually from the Actions tab
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v1
14
+ - uses: actions/setup-node@v1
15
+ with:
16
+ node-version: 16
17
+ - uses: pnpm/action-setup@v2
18
+ with:
19
+ version: 8
20
+ - run: pnpm install -f
21
+ - run: pnpm install @types/node
22
+ - run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ./.npmrc
23
+ env:
24
+ NPM_TOKEN: ${{secrets.npm_token}}
25
+ - run: pnpm run build && npm publish
26
+ env:
27
+ NPM_TOKEN: ${{secrets.npm_token}}
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 SandstoneMC
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 CHANGED
@@ -3,7 +3,6 @@ sandstone-cli
3
3
 
4
4
  The CLI for Sandstone - the datapack creation library.
5
5
 
6
- [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
7
6
  [![Version](https://img.shields.io/npm/v/sandstone-cli.svg)](https://npmjs.org/package/sandstone-cli)
8
7
  [![Downloads/week](https://img.shields.io/npm/dw/sandstone-cli.svg)](https://npmjs.org/package/sandstone-cli)
9
8
  [![License](https://img.shields.io/npm/l/sandstone-cli.svg)](https://github.com/TheMrZZ/sandstone-cli/blob/master/package.json)
@@ -18,8 +17,8 @@ The CLI for Sandstone - the datapack creation library.
18
17
  $ npm install -g sandstone-cli
19
18
  $ sand COMMAND
20
19
  running command...
21
- $ sand (-v|--version|version)
22
- sandstone-cli/0.6.5 linux-x64 node-v16.19.1
20
+ $ sand (--version)
21
+ sandstone-cli/0.6.7 win32-x64 node-v18.15.0
23
22
  $ sand --help [COMMAND]
24
23
  USAGE
25
24
  $ sand COMMAND
@@ -28,193 +27,5 @@ USAGE
28
27
  <!-- usagestop -->
29
28
  # Commands
30
29
  <!-- commands -->
31
- * [`sand build PATH CONFIG-PATH`](#sand-build-path-config-path)
32
- * [`sand create PROJECT-NAME`](#sand-create-project-name)
33
- * [`sand help [COMMAND]`](#sand-help-command)
34
- * [`sand update`](#sand-update)
35
- * [`sand watch PATH CONFIG-PATH`](#sand-watch-path-config-path)
36
30
 
37
- ## `sand build PATH CONFIG-PATH`
38
-
39
- Build the packs. ⛏
40
-
41
- ```
42
- USAGE
43
- $ sand build PATH CONFIG-PATH
44
-
45
- ARGUMENTS
46
- PATH [default: ./src] Path of the folder containing source files.
47
- CONFIG-PATH [default: .] Path of the sandstone.config.ts folder.
48
-
49
- OPTIONS
50
- -d, --dry Do not save the pack. Mostly useful with `verbose`.
51
- -h, --help show CLI help
52
- -p, --production Runs Sandstone in production mode. This sets process.env.SANDSTONE_ENV to "production".
53
- -v, --verbose Log all resulting resources: functions, advancements...
54
-
55
- --autoReload=port Automatically reload your datapack in-game. Requires to open the world to LAN with
56
- cheats enabled, and to specify the port.
57
-
58
- --clientPath=clientPath Path of the client folder. Override the value specified in the configuration file.
59
-
60
- --description=description Description of the datapack. Override the value specified in the configuration file.
61
-
62
- --formatVersion=formatVersion Pack format version. Override the value specified in the configuration file.
63
-
64
- --fullTrace Show the full stack trace on errors.
65
-
66
- --name=name Name of the datapack. Override the value specified in the configuration file.
67
-
68
- --namespace=namespace The default namespace. Override the value specified in the configuration file.
69
-
70
- --root Save the datapack & resource pack in the .minecraft/datapacks &
71
- .minecraft/resource_packs folders. Override the value specified in the configuration
72
- file.
73
-
74
- --serverPath=serverPath Path of the server folder. Override the value specified in the configuration file.
75
-
76
- --strictErrors Stop datapack compilation on type errors.
77
-
78
- --world=world The world to save the datapack in. Override the value specified in the configuration
79
- file.
80
-
81
- EXAMPLES
82
- $ sand build
83
- $ sand build --verbose
84
- $ sand build --verbose --dry
85
- ```
86
-
87
- _See code: [src/commands/build.ts](https://github.com/TheMrZZ/sandstone-cli/blob/v0.6.5/src/commands/build.ts)_
88
-
89
- ## `sand create PROJECT-NAME`
90
-
91
- Create a new Sandstone project.
92
-
93
- ```
94
- USAGE
95
- $ sand create PROJECT-NAME
96
-
97
- ARGUMENTS
98
- PROJECT-NAME Name of the project folder. This is not the name of the output pack(s).
99
-
100
- OPTIONS
101
- -c, --client-path=client-path The client path to write packs at.
102
- -d, --pack-name=pack-name The name of the pack(s).
103
- -h, --help show CLI help
104
- -n, --namespace=namespace The default namespace that will be used.
105
-
106
- -r, --save-root Save the datapack & resource pack in the .minecraft/datapacks &
107
- .minecraft/resource_packs folders. Not compatible with --world.
108
-
109
- -s, --server-path=server-path The server path to write the server-side packs at. Not compatible with --world.
110
-
111
- -t, --library Whether the project will be a library for use in other Sandstone projects.
112
-
113
- -v, --version=version What version of Sandstone you'd like to create a project for.
114
-
115
- -w, --world=world The world to save the packs in. Not compatible with --save-root or --server
116
-
117
- --npm Use npm.
118
-
119
- --yarn Use yarn instead of npm.
120
-
121
- EXAMPLE
122
- $ sand create my-pack
123
- ```
124
-
125
- _See code: [src/commands/create.ts](https://github.com/TheMrZZ/sandstone-cli/blob/v0.6.5/src/commands/create.ts)_
126
-
127
- ## `sand help [COMMAND]`
128
-
129
- display help for sand
130
-
131
- ```
132
- USAGE
133
- $ sand help [COMMAND]
134
-
135
- ARGUMENTS
136
- COMMAND command to show help for
137
-
138
- OPTIONS
139
- --all see all commands in CLI
140
- ```
141
-
142
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.1/src/commands/help.ts)_
143
-
144
- ## `sand update`
145
-
146
- Update Sandstone & Sandstone-CLI.
147
-
148
- ```
149
- USAGE
150
- $ sand update
151
-
152
- OPTIONS
153
- -h, --help show CLI help
154
- --cli Update the Sandstone CLI without asking.
155
- --npm Use npm to install the updates.
156
- --sandstone Update the current Sandstone version without asking.
157
- --skip Skip all interactive prompts and refuse them.
158
- --yarn Use yarn to install the updates.
159
-
160
- EXAMPLES
161
- $ sand update
162
- $ sand update --cli
163
- $ sand update --sandstone
164
- $ sand update --cli --sandstone --skip
165
- ```
166
-
167
- _See code: [src/commands/update.ts](https://github.com/TheMrZZ/sandstone-cli/blob/v0.6.5/src/commands/update.ts)_
168
-
169
- ## `sand watch PATH CONFIG-PATH`
170
-
171
- Build the packs, and rebuild them on file change. ⛏
172
-
173
- ```
174
- USAGE
175
- $ sand watch PATH CONFIG-PATH
176
-
177
- ARGUMENTS
178
- PATH [default: ./src] Path of the folder containing source files.
179
- CONFIG-PATH [default: .] Path of the sandstone.config.ts folder.
180
-
181
- OPTIONS
182
- -d, --dry Do not save the pack. Mostly useful with `verbose`.
183
- -h, --help show CLI help
184
- -p, --production Runs Sandstone in production mode. This sets process.env.SANDSTONE_ENV to "production".
185
- -v, --verbose Log all resulting resources: functions, advancements...
186
-
187
- --autoReload=port Automatically reload your datapack in-game. Requires to open the world to LAN with
188
- cheats enabled, and to specify the port.
189
-
190
- --clientPath=clientPath Path of the client folder. Override the value specified in the configuration file.
191
-
192
- --description=description Description of the datapack. Override the value specified in the configuration file.
193
-
194
- --formatVersion=formatVersion Pack format version. Override the value specified in the configuration file.
195
-
196
- --fullTrace Show the full stack trace on errors.
197
-
198
- --name=name Name of the datapack. Override the value specified in the configuration file.
199
-
200
- --namespace=namespace The default namespace. Override the value specified in the configuration file.
201
-
202
- --root Save the datapack & resource pack in the .minecraft/datapacks &
203
- .minecraft/resource_packs folders. Override the value specified in the configuration
204
- file.
205
-
206
- --serverPath=serverPath Path of the server folder. Override the value specified in the configuration file.
207
-
208
- --strictErrors Stop datapack compilation on type errors.
209
-
210
- --world=world The world to save the datapack in. Override the value specified in the configuration
211
- file.
212
-
213
- EXAMPLES
214
- $ sand watch
215
- $ sand watch --verbose
216
- $ sand watch --verbose --dry
217
- ```
218
-
219
- _See code: [src/commands/watch.ts](https://github.com/TheMrZZ/sandstone-cli/blob/v0.6.5/src/commands/watch.ts)_
220
31
  <!-- commandsstop -->
@@ -1,18 +1,19 @@
1
- import { ProjectFolders } from '../utils';
2
- export declare type BuildOptions = {
3
- world?: string;
4
- root?: boolean;
5
- clientPath?: string;
6
- serverPath?: string;
7
- ssh?: string;
8
- namespace?: string;
9
- name?: string;
10
- description?: string;
11
- formatVersion?: number;
1
+ import { ProjectFolders } from '../utils.js';
2
+ type BuildOptions = {
12
3
  dry?: boolean;
13
4
  verbose?: boolean;
5
+ root?: boolean;
14
6
  fullTrace?: boolean;
7
+ strictErrors?: boolean;
15
8
  production?: boolean;
9
+ path: string;
10
+ configPath: string;
11
+ name?: string;
12
+ namespace?: string;
13
+ world?: string;
14
+ clientPath?: string;
15
+ serverPath?: string;
16
+ ssh?: any;
16
17
  };
17
18
  /**
18
19
  * Build the project. Will log errors and never throw any.
@@ -20,7 +21,6 @@ export declare type BuildOptions = {
20
21
  * @param options The options to build the project with.
21
22
  *
22
23
  * @param projectFolder The folder of the project. It needs a sandstone.config.ts, and it or one of its parent needs a package.json.
23
- *
24
- * @param changedFiles The files that changed since the last build.
25
24
  */
26
- export declare function buildProject(options: BuildOptions, folders: ProjectFolders, changedFiles?: string[]): Promise<void>;
25
+ export declare function buildProject(options: BuildOptions, folders: ProjectFolders): Promise<void>;
26
+ export {};