@ibyar/cli 2.1.0 → 2.1.1
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/bin/cli.js +6 -7
- package/bin/cli.js.map +1 -1
- package/package.json +8 -8
package/bin/cli.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { exit } from 'process';
|
|
3
|
-
const CLI_VERSION = '2.1.
|
|
3
|
+
const CLI_VERSION = '2.1.1';
|
|
4
4
|
const args = process.argv;
|
|
5
5
|
const inputs = args.slice(2);
|
|
6
|
-
const showHelp = inputs
|
|
7
|
-
const printVersion = inputs
|
|
8
|
-
const runBuild = inputs
|
|
9
|
-
const generateTypes = inputs
|
|
6
|
+
const showHelp = inputs.includes('-h') || inputs.includes('--help');
|
|
7
|
+
const printVersion = inputs.includes('-v') || inputs.includes('--version');
|
|
8
|
+
const runBuild = inputs.includes('-b') || inputs.includes('--build');
|
|
9
|
+
const generateTypes = inputs.includes('-gt') || inputs.includes('--generate-types');
|
|
10
10
|
if (showHelp) {
|
|
11
11
|
const help = `
|
|
12
12
|
Version ${CLI_VERSION}
|
|
@@ -35,11 +35,10 @@ Options:
|
|
|
35
35
|
}
|
|
36
36
|
if (printVersion) {
|
|
37
37
|
console.log(CLI_VERSION);
|
|
38
|
-
exit();
|
|
39
38
|
}
|
|
40
39
|
if (runBuild) {
|
|
41
40
|
import('../compiler/compiler.js').then(module => {
|
|
42
|
-
if (
|
|
41
|
+
if (inputs.includes('-w') || inputs.includes('--watch')) {
|
|
43
42
|
module.compileAndWatchArgs();
|
|
44
43
|
}
|
|
45
44
|
else {
|
package/bin/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/cli/bin/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,MAAM,WAAW,GA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,yBAAyB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;QAC/C,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;YACzD,MAAM,CAAC,mBAAmB,EAAE,CAAC;QAC9B,CAAC;aAAM,CAAC;YACP,MAAM,CAAC,WAAW,EAAE,CAAC;QACtB,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,IAAI,aAAa,EAAE,CAAC;IACnB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;AAClD,CAAC","sourcesContent":["#!/usr/bin/env node\n\nimport { exit } from 'process';\n\nconst CLI_VERSION = '2.1.1';\n\nconst args = process.argv;\nconst inputs = args.slice(2);\n\nconst showHelp = inputs.includes('-h') || inputs.includes('--help');\nconst printVersion = inputs.includes('-v') || inputs.includes('--version');\n\nconst runBuild = inputs.includes('-b') || inputs.includes('--build');\nconst generateTypes = inputs.includes('-gt') || inputs.includes('--generate-types');\n\nif (showHelp) {\n\tconst help =\n\t\t`\nVersion ${CLI_VERSION}\nUsage: ibyar [options]\n\nExamples:\n ibyar\n ibyar -b\n ibyar -b -w\n ibyar -gt\n ibyar -v\n ibyar --help\n\nOptions:\n -b --build compile the project source code with ibyar transformers\n\t-w\t\t--watch\t\t\t\tcompile and watch source files, used with --build\n -gt --generate-types generate \"web-types.json\" files, and typescript\n\t definitions '.d.ts' files. \n\t you can import this file later in your \"index.ts\" \n\t\t\t\t\t\t\t\tor \"polyfills.ts\" file, so any editor \"VS Code\" can\n\t\t\t\t\t\t\t\tsupport autocomplete easily,\n -h --help print help message\n -v --version output the version number`;\n\tconsole.log(help);\n\texit();\n}\n\n\nif (printVersion) {\n\tconsole.log(CLI_VERSION);\n}\n\nif (runBuild) {\n\timport('../compiler/compiler.js').then(module => {\n\t\tif (inputs.includes('-w') || inputs.includes('--watch')) {\n\t\t\tmodule.compileAndWatchArgs();\n\t\t} else {\n\t\t\tmodule.compileArgs();\n\t\t}\n\t});\n}\n\nif (generateTypes) {\n\tconsole.log('generate types not supported yet.');\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibyar/cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "The Ibyar/Aurora CLI tool",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ibyar/aurora",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@ibyar/core": "^2.1.
|
|
40
|
-
"@ibyar/decorators": "^2.1.
|
|
41
|
-
"@ibyar/directives": "^2.1.
|
|
42
|
-
"@ibyar/elements": "^2.1.
|
|
43
|
-
"@ibyar/expressions": "^2.1.
|
|
44
|
-
"@ibyar/pipes": "^2.1.
|
|
39
|
+
"@ibyar/core": "^2.1.1",
|
|
40
|
+
"@ibyar/decorators": "^2.1.1",
|
|
41
|
+
"@ibyar/directives": "^2.1.1",
|
|
42
|
+
"@ibyar/elements": "^2.1.1",
|
|
43
|
+
"@ibyar/expressions": "^2.1.1",
|
|
44
|
+
"@ibyar/pipes": "^2.1.1",
|
|
45
45
|
"tslib": "^2.6.3",
|
|
46
46
|
"typescript": "^5.5.2"
|
|
47
47
|
},
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"shadow-dom",
|
|
75
75
|
"typescript"
|
|
76
76
|
],
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "fe5f9e549067991c34ef34d6f5aeac7ce1e8f253"
|
|
78
78
|
}
|