@hahnpro/flow-cli 2.12.0 → 2.12.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/lib/cli.mjs +1 -1
- package/package.json +13 -12
package/lib/cli.mjs
CHANGED
|
@@ -357,7 +357,7 @@ async function generateSchemasForFile(tsPath, jsonPath) {
|
|
|
357
357
|
async function clean(buildFolder) {
|
|
358
358
|
return new Promise((resolve, reject) => {
|
|
359
359
|
const spinner = getSpinner('Cleaning').start();
|
|
360
|
-
fs.
|
|
360
|
+
fs.rm(buildFolder, { recursive: true, force: true }, (error) => {
|
|
361
361
|
if (error) {
|
|
362
362
|
spinner.stop();
|
|
363
363
|
logger.error('Cleaning failed');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hahnpro/flow-cli",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.1",
|
|
4
4
|
"description": "CLI for managing Flow Modules",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,30 +27,30 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"archiver": "^5.3.0",
|
|
30
|
-
"axios": "^0.
|
|
30
|
+
"axios": "^0.25.0",
|
|
31
31
|
"chalk": "^5.0.0",
|
|
32
32
|
"class-transformer": "0.5.1",
|
|
33
33
|
"class-validator": "~0.13.2",
|
|
34
34
|
"class-validator-jsonschema": "^3.1.0",
|
|
35
|
-
"commander": "^
|
|
35
|
+
"commander": "^9.0.0",
|
|
36
36
|
"copyfiles": "^2.4.1",
|
|
37
|
-
"dotenv": "^
|
|
37
|
+
"dotenv": "^16.0.0",
|
|
38
38
|
"execa": "^6.0.0",
|
|
39
39
|
"form-data": "^4.0.0",
|
|
40
40
|
"glob": "^7.2.0",
|
|
41
41
|
"https-proxy-agent": "^5.0.0",
|
|
42
42
|
"ora": "^6.0.1",
|
|
43
43
|
"reflect-metadata": "^0.1.13",
|
|
44
|
-
"ts-node": "^10.
|
|
44
|
+
"ts-node": "^10.5.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@types/jest": "^27.0
|
|
48
|
-
"@types/node": "^16.11.
|
|
49
|
-
"eslint": "^8.
|
|
50
|
-
"eslint-plugin-unicorn": "^
|
|
51
|
-
"jest": "^27.
|
|
47
|
+
"@types/jest": "^27.4.0",
|
|
48
|
+
"@types/node": "^16.11.22",
|
|
49
|
+
"eslint": "^8.8.0",
|
|
50
|
+
"eslint-plugin-unicorn": "^40.1.0",
|
|
51
|
+
"jest": "^27.5.0",
|
|
52
52
|
"prettier": "^2.5.1",
|
|
53
|
-
"typescript": "^4.5.
|
|
53
|
+
"typescript": "^4.5.5"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": "^14.13.1 || >=16.0.0"
|
|
@@ -74,5 +74,6 @@
|
|
|
74
74
|
"format": "prettier --write .",
|
|
75
75
|
"lint": "eslint '*/**/*.{js,mjs}'",
|
|
76
76
|
"test": "jest"
|
|
77
|
-
}
|
|
77
|
+
},
|
|
78
|
+
"readme": "# `@hahnpro/flow-cli`\n\nhttps://github.com/hahnprojects/flow\n\n# Commands\n\n## `build [projectName]`\n\nBuilds specified Project.\n\n## `install [projectName]`\n\nInstalls the dependencies of the specified Project.\n\n## `format`\n\nFormats all typescript files according to prettier configuration.\n\n## `name [projectName]`\n\nInstalls Dependencies and Builds the specified Project.\n\n## `package [projectName]`\n\nBuilds specified Module and packages it as .zip File for manual upload to the platform.\n\n## `publish-module [projectName]`\n\nPublishes specified Module to Cloud Platform.\n\n- `-f`, `--functions` Publish flow functions.\n- `-u`, `--update` Update existing flow functions.\n\n## `publish-functions [projectName]`\n\nPublishes all Flow Functions inside specified Module to Cloud Platform.\n\n- `-u`, `--update` Update existing flow functions.\n\n## `serve [projectName]`\n\nBuilds and serves your Project. Rebuilding on file changes.\n\n## `start [projectName]`\n\nRuns your project.\n\n## `test [projectName]`\n\nRuns tests for your Project.\n\n## `generate-schemas [projectName]`\n\nGenerates Input, Output and Properties-Schemas for the specified project.\n\n- `--verbose` Output more information about what is being done.\n- `-h`, `--hide` Hide warnings if Input/OutputProperties classes can´t be found.\n This command generates the schemas and puts them in the `inputStreams` and `outputStreams`\n fields in the json-files of each Flow-Function. It always assumes the properties defined\n in the `Input/OutPutProperties` classes are meant for the default input/output streams.\n If your Function uses different streams you may have to change stream name manually.\n"
|
|
78
79
|
}
|