create-juisy 2.0.0-beta.15 → 2.0.0-beta.16
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-juisy",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.16",
|
|
4
4
|
"description": "Juisy boilerplate for npm init",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"homepage": "https://hperchec.gitlab.io/juisy",
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"execa": "^9.5.2",
|
|
45
|
-
"juisy": "2.0.0-beta.
|
|
45
|
+
"juisy": "2.0.0-beta.16",
|
|
46
46
|
"mri": "^1.2.0"
|
|
47
47
|
},
|
|
48
48
|
"release-it": {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Private commands
|
|
2
2
|
import docs from './private/docs/index.js'
|
|
3
|
-
import
|
|
3
|
+
import TestCommand from './private/test.js'
|
|
4
4
|
|
|
5
5
|
export const commands = [
|
|
6
6
|
// Private commands
|
|
7
7
|
docs,
|
|
8
|
-
|
|
8
|
+
TestCommand
|
|
9
9
|
// Public commands
|
|
10
10
|
// ...
|
|
11
11
|
]
|
|
@@ -1,19 +1,38 @@
|
|
|
1
|
-
/** @type {import('juisy/cli').Command} */
|
|
2
|
-
export default
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/** @type {import('#juisy/cli').Command} */
|
|
2
|
+
export default class TestCommand extends CLI.Command {
|
|
3
|
+
/**
|
|
4
|
+
* The command signature
|
|
5
|
+
*/
|
|
6
|
+
command = 'test'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The command description
|
|
10
|
+
*/
|
|
11
|
+
describe = 'Run project tests with vitest. Accepts all arguments of vitest command.'
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The command meta
|
|
15
|
+
*/
|
|
16
|
+
meta = {
|
|
6
17
|
private: true
|
|
7
|
-
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Command builder
|
|
22
|
+
*/
|
|
8
23
|
builder (cli) {
|
|
9
24
|
cli.strict(false) // to forward all arguments
|
|
10
25
|
return cli
|
|
11
|
-
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Command handler
|
|
30
|
+
*/
|
|
12
31
|
async handler (args) {
|
|
13
32
|
const { run } = CLI.InterfaceUtils
|
|
14
33
|
|
|
15
34
|
// Forward arguments to vitest command
|
|
16
|
-
const testCommandArgs =
|
|
35
|
+
const testCommandArgs = this.getProcessArgv().slice(1)
|
|
17
36
|
|
|
18
37
|
/**
|
|
19
38
|
* Run tests
|
|
@@ -27,4 +46,4 @@ export default new CLI.Command({
|
|
|
27
46
|
if (err.exitCode !== 130) throw err
|
|
28
47
|
})
|
|
29
48
|
}
|
|
30
|
-
}
|
|
49
|
+
}
|