sandstone-cli 2.0.6 → 2.0.8
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/lib/commands/create.js +4 -4
- package/lib/create.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/commands/create.ts +4 -4
- package/src/create.ts +1 -1
- package/src/index.ts +1 -1
package/lib/commands/create.js
CHANGED
|
@@ -24,7 +24,7 @@ export async function createCommand(_project, opts) {
|
|
|
24
24
|
default: false,
|
|
25
25
|
})) === true ? 'library' : 'pack';
|
|
26
26
|
const sv = (v) => new SemVer(v);
|
|
27
|
-
const versions = [[sv('1.0.0-beta.1'), sv('2.0.
|
|
27
|
+
const versions = [[sv('1.0.0-beta.1'), sv('2.0.8')]];
|
|
28
28
|
const version = await select({
|
|
29
29
|
message: 'Which version of Sandstone do you want to use? These are the only supported versions for new projects.',
|
|
30
30
|
choices: versions.map((v) => {
|
|
@@ -155,8 +155,8 @@ export async function createCommand(_project, opts) {
|
|
|
155
155
|
const prefix = packageManager === 'npm' ? 'npm run' : packageManager;
|
|
156
156
|
console.log(chalk `{green Success!} Created "${projectName}" at "${projectPath}"`);
|
|
157
157
|
console.log('Inside that directory, you can run several commands:\n');
|
|
158
|
-
console.log(chalk ` {cyan ${prefix} build}:\n Builds the packs. {cyan ⛏}\n`);
|
|
159
|
-
console.log(chalk ` {cyan ${prefix} watch}:\n Builds the packs, and rebuilds on each file change. {cyan ⛏}\n`);
|
|
158
|
+
console.log(chalk ` {cyan ${prefix} dev:build}:\n Builds the packs. {cyan ⛏}\n`);
|
|
159
|
+
console.log(chalk ` {cyan ${prefix} dev:watch}:\n Builds the packs, and rebuilds on each file change. {cyan ⛏}\n`);
|
|
160
160
|
console.log('We suggest that you begin by typing:\n');
|
|
161
|
-
console.log(chalk ` {cyan cd} ${projectName}\n {cyan ${prefix} watch}`);
|
|
161
|
+
console.log(chalk ` {cyan cd} ${projectName}\n {cyan ${prefix} dev:watch}`);
|
|
162
162
|
}
|
package/lib/create.js
CHANGED
|
@@ -6,7 +6,7 @@ import { BuildDeclares } from './shared.js';
|
|
|
6
6
|
const commander = new Command();
|
|
7
7
|
console.log(figlet.textSync('Sandstone'));
|
|
8
8
|
const createCLI = commander
|
|
9
|
-
.version('2.0.
|
|
9
|
+
.version('2.0.8')
|
|
10
10
|
.description('Create a new Sandstone project. ⛏')
|
|
11
11
|
.action(createCommand)
|
|
12
12
|
.addArgument(new Argument('<projectName>', 'Not the name of the output pack'));
|
package/lib/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { BuildDeclares } from './shared.js';
|
|
|
6
6
|
const commander = new Command();
|
|
7
7
|
console.log(figlet.textSync('Sandstone'));
|
|
8
8
|
const CLI = commander
|
|
9
|
-
.version('2.0.
|
|
9
|
+
.version('2.0.8', '-v, --version')
|
|
10
10
|
.description('The CLI for Sandstone - the minecraft pack creation library.');
|
|
11
11
|
const build = CLI
|
|
12
12
|
.command('build')
|
package/package.json
CHANGED
package/src/commands/create.ts
CHANGED
|
@@ -42,7 +42,7 @@ export async function createCommand(_project: string, opts: CreateOptions) {
|
|
|
42
42
|
|
|
43
43
|
const sv = (v: string) => new SemVer(v)
|
|
44
44
|
|
|
45
|
-
const versions = [[sv('1.0.0-beta.1'), sv('2.0.
|
|
45
|
+
const versions = [[sv('1.0.0-beta.1'), sv('2.0.8')]] as const
|
|
46
46
|
|
|
47
47
|
const version = await select({
|
|
48
48
|
message: 'Which version of Sandstone do you want to use? These are the only supported versions for new projects.',
|
|
@@ -206,9 +206,9 @@ export async function createCommand(_project: string, opts: CreateOptions) {
|
|
|
206
206
|
console.log(chalk`{green Success!} Created "${projectName}" at "${projectPath}"`)
|
|
207
207
|
|
|
208
208
|
console.log('Inside that directory, you can run several commands:\n')
|
|
209
|
-
console.log(chalk` {cyan ${prefix} build}:\n Builds the packs. {cyan ⛏}\n`)
|
|
210
|
-
console.log(chalk` {cyan ${prefix} watch}:\n Builds the packs, and rebuilds on each file change. {cyan ⛏}\n`)
|
|
209
|
+
console.log(chalk` {cyan ${prefix} dev:build}:\n Builds the packs. {cyan ⛏}\n`)
|
|
210
|
+
console.log(chalk` {cyan ${prefix} dev:watch}:\n Builds the packs, and rebuilds on each file change. {cyan ⛏}\n`)
|
|
211
211
|
|
|
212
212
|
console.log('We suggest that you begin by typing:\n')
|
|
213
|
-
console.log(chalk` {cyan cd} ${projectName}\n {cyan ${prefix} watch}`)
|
|
213
|
+
console.log(chalk` {cyan cd} ${projectName}\n {cyan ${prefix} dev:watch}`)
|
|
214
214
|
}
|
package/src/create.ts
CHANGED
|
@@ -9,7 +9,7 @@ const commander = new Command()
|
|
|
9
9
|
console.log(figlet.textSync('Sandstone'));
|
|
10
10
|
|
|
11
11
|
const createCLI = commander
|
|
12
|
-
.version('2.0.
|
|
12
|
+
.version('2.0.8')
|
|
13
13
|
.description('Create a new Sandstone project. ⛏')
|
|
14
14
|
.action(createCommand)
|
|
15
15
|
.addArgument(new Argument('<projectName>', 'Not the name of the output pack'))
|
package/src/index.ts
CHANGED
|
@@ -9,7 +9,7 @@ const commander = new Command()
|
|
|
9
9
|
console.log(figlet.textSync('Sandstone'));
|
|
10
10
|
|
|
11
11
|
const CLI = commander
|
|
12
|
-
.version('2.0.
|
|
12
|
+
.version('2.0.8', '-v, --version')
|
|
13
13
|
.description('The CLI for Sandstone - the minecraft pack creation library.')
|
|
14
14
|
|
|
15
15
|
const build = CLI
|