@m2c2kit/cli 0.3.13 → 0.3.14
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/dist/index.js +10 -23
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -346,34 +346,21 @@ exports.main = main;
|
|
|
346
346
|
* Get usage of the CLI tool.
|
|
347
347
|
*/
|
|
348
348
|
function getUsage() {
|
|
349
|
+
const colors = ansi_colors_1.default.create();
|
|
349
350
|
return `
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
Commands:
|
|
353
|
-
m2 new <name> create a new m2c2kit app.
|
|
354
|
-
|
|
355
|
-
Options:
|
|
356
|
-
--debug Debug mode. This is true by default if the collection is a relative
|
|
357
|
-
path (in that case, turn off with --debug=false).
|
|
358
|
-
|
|
359
|
-
--allow-private Allow private schematics to be run from the command line. Default to
|
|
360
|
-
false.
|
|
361
|
-
|
|
362
|
-
--dry-run Do not output anything, but instead just show what actions would be
|
|
363
|
-
performed. Default to true if debug is also true.
|
|
364
|
-
|
|
365
|
-
--force Force overwriting files that would otherwise be an error.
|
|
366
|
-
|
|
367
|
-
--list-schematics List all schematics from the collection, by name. A collection name
|
|
368
|
-
should be suffixed by a colon. Example: '@angular-devkit/schematics-cli:'.
|
|
351
|
+
m2c2kit CLI
|
|
369
352
|
|
|
370
|
-
|
|
353
|
+
${colors.blue("Commands:")}
|
|
354
|
+
m2 new [name] Create a new m2c2kit project.
|
|
371
355
|
|
|
372
|
-
|
|
356
|
+
Arguments:
|
|
357
|
+
name The name of the new project.
|
|
373
358
|
|
|
374
|
-
|
|
359
|
+
Options:
|
|
360
|
+
-g, --skipGit Skip initializing a git repository.
|
|
361
|
+
-m, --module Create a m2c2kit assessment module (default is application).
|
|
375
362
|
|
|
376
|
-
|
|
363
|
+
m2 zip Package a built assessment module into a zip file.
|
|
377
364
|
`;
|
|
378
365
|
}
|
|
379
366
|
/** Parse the command line. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m2c2kit/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.14",
|
|
4
4
|
"description": "Command line interface to create new m2c2kit apps",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/**"
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://m2c2-project.github.io/m2c2kit",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@angular-devkit/core": "^17.0
|
|
29
|
-
"@angular-devkit/schematics": "^17.0
|
|
30
|
-
"@m2c2kit/schematics": "^0.1.
|
|
31
|
-
"@schematics/angular": "^17.0
|
|
28
|
+
"@angular-devkit/core": "^17.3.0",
|
|
29
|
+
"@angular-devkit/schematics": "^17.3.0",
|
|
30
|
+
"@m2c2kit/schematics": "^0.1.13",
|
|
31
|
+
"@schematics/angular": "^17.3.0",
|
|
32
32
|
"ansi-colors": "4.1.3",
|
|
33
|
-
"inquirer": "9.2.
|
|
33
|
+
"inquirer": "9.2.14",
|
|
34
34
|
"symbol-observable": "4.0.0",
|
|
35
35
|
"yargs-parser": "21.1.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/inquirer": "9.0.7",
|
|
39
39
|
"rimraf": "5.0.5",
|
|
40
|
-
"typescript": "5.
|
|
40
|
+
"typescript": "5.4.2"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=18"
|