@5minds/node-red-openapi-generator 1.1.2 → 7.6.0-develop-51b534-mjy6jfpm
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 +39 -38
- package/.github/workflows/build-and-publish.yaml +0 -104
package/package.json
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
2
|
+
"name": "@5minds/node-red-openapi-generator",
|
|
3
|
+
"version": "7.6.0-develop-51b534-mjy6jfpm",
|
|
4
|
+
"description": "A set of tools for generating OpenAPI3/Swagger documentation based on the HTTP nodes deployed in a flow. An updated version of the Node-RED Swagger Documentation Generator to support OpenAPI3, based of the @digital-tvilling/node-red-openapi-generator.",
|
|
5
|
+
"license": "Apache",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/5minds/ProcessCube.LowCode.git",
|
|
9
|
+
"directory": "packages/node-red-openapi-generator"
|
|
10
|
+
},
|
|
11
|
+
"authors": [
|
|
12
|
+
{
|
|
13
|
+
"name": "Diana Stefan",
|
|
14
|
+
"email": "diana.stefan@5Minds.de"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"keywords": [
|
|
18
|
+
"node-red",
|
|
19
|
+
"swagger",
|
|
20
|
+
"open-api"
|
|
21
|
+
],
|
|
22
|
+
"node-red": {
|
|
23
|
+
"version": ">=4.2.0",
|
|
24
|
+
"nodes": {
|
|
25
|
+
"swagger": "swagger/swagger.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"conflicts": {
|
|
29
|
+
"node-red-node-swagger": "<0.3.0"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"swagger-ui-dist": "^5.29.0"
|
|
33
|
+
},
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=18.0.0"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"lint": "prettier --write --config ./.prettierrc.json \"**/*.{html,js}\""
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
name: Build and Publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- '*'
|
|
7
|
-
- '*/*'
|
|
8
|
-
|
|
9
|
-
env:
|
|
10
|
-
CI_TOOLS_VERSION: '^5.0.0'
|
|
11
|
-
# NOTE: Um den Releasezyklus von Alpha nach Beta zu ändern, einfach die nachfolgend deklarierten Env Variablen switchen.
|
|
12
|
-
CI_TOOLS_ALPHA_BRANCH: next
|
|
13
|
-
CI_TOOLS_ALPHA_NPM_TAG: next
|
|
14
|
-
# CI_TOOLS_BETA_BRANCH: next
|
|
15
|
-
# CI_TOOLS_BETA_NPM_TAG: next
|
|
16
|
-
BOX_RELEASE_TAG: 2025-1
|
|
17
|
-
|
|
18
|
-
jobs:
|
|
19
|
-
test:
|
|
20
|
-
name: 'Run Tests'
|
|
21
|
-
runs-on: ubuntu-latest
|
|
22
|
-
steps:
|
|
23
|
-
- uses: actions/checkout@v4
|
|
24
|
-
with:
|
|
25
|
-
fetch-depth: 0
|
|
26
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
27
|
-
|
|
28
|
-
- name: Use Node.js 22
|
|
29
|
-
uses: actions/setup-node@v4
|
|
30
|
-
with:
|
|
31
|
-
node-version: '22'
|
|
32
|
-
registry-url: 'https://registry.npmjs.org'
|
|
33
|
-
|
|
34
|
-
- name: Install Dependencies
|
|
35
|
-
run: npm ci
|
|
36
|
-
|
|
37
|
-
- name: Check if tests exist
|
|
38
|
-
id: check_tests
|
|
39
|
-
run: |
|
|
40
|
-
if grep -q '"test":' package.json && [ "$(npm pkg get scripts.test)" != '{}' ] && [ "$(npm pkg get scripts.test)" != 'null' ]; then
|
|
41
|
-
echo "has_tests=true" >> $GITHUB_OUTPUT
|
|
42
|
-
else
|
|
43
|
-
echo "has_tests=false" >> $GITHUB_OUTPUT
|
|
44
|
-
fi
|
|
45
|
-
|
|
46
|
-
- name: Run tests
|
|
47
|
-
if: steps.check_tests.outputs.has_tests == 'true'
|
|
48
|
-
run: npm test
|
|
49
|
-
|
|
50
|
-
build_and_publish:
|
|
51
|
-
name: 'Build and publish sources'
|
|
52
|
-
runs-on: ubuntu-latest
|
|
53
|
-
needs: test
|
|
54
|
-
if: ${{ !(contains(github.actor, 'process-engine-ci') || contains(github.actor, 'admin')) }}
|
|
55
|
-
|
|
56
|
-
steps:
|
|
57
|
-
- uses: actions/checkout@v4
|
|
58
|
-
with:
|
|
59
|
-
fetch-depth: 0
|
|
60
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
61
|
-
|
|
62
|
-
- name: Use Node.js 22
|
|
63
|
-
uses: actions/setup-node@v4
|
|
64
|
-
with:
|
|
65
|
-
node-version: '22'
|
|
66
|
-
registry-url: 'https://registry.npmjs.org'
|
|
67
|
-
|
|
68
|
-
- name: Install CI Tools
|
|
69
|
-
env:
|
|
70
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
71
|
-
run: npm i -g @5minds/product_ci_tools@${{ env.CI_TOOLS_VERSION }}
|
|
72
|
-
|
|
73
|
-
- name: 'Install Dependencies'
|
|
74
|
-
env:
|
|
75
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
76
|
-
run: npm ci
|
|
77
|
-
|
|
78
|
-
- name: 'Prepare Version'
|
|
79
|
-
if: ${{ !startsWith(github.ref_name, 'renovate') }}
|
|
80
|
-
run: ci_tools prepare-version --allow-dirty-workdir
|
|
81
|
-
|
|
82
|
-
- name: 'Commit & Tag Version'
|
|
83
|
-
if: ${{ !startsWith(github.ref_name, 'renovate') }}
|
|
84
|
-
env:
|
|
85
|
-
GH_USER: ${{ github.actor }}
|
|
86
|
-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
87
|
-
run: |
|
|
88
|
-
ci_tools commit-and-tag-version --only-on-primary-branches
|
|
89
|
-
ci_tools update-github-release --only-on-primary-branches --use-title-and-text-from-git-tag
|
|
90
|
-
|
|
91
|
-
- name: 'Publish Version'
|
|
92
|
-
if: ${{ !startsWith(github.ref_name, 'renovate') }}
|
|
93
|
-
env:
|
|
94
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
95
|
-
run: ci_tools publish-npm-package --create-tag-from-branch-name
|
|
96
|
-
|
|
97
|
-
- name: Add Box-Release Tag
|
|
98
|
-
if: github.ref == 'refs/heads/main'
|
|
99
|
-
env:
|
|
100
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
101
|
-
run: |
|
|
102
|
-
VERSION="$(ci_tools get-version)"
|
|
103
|
-
PACKAGE_NAME="$(npm pkg get name | tr -d \")"
|
|
104
|
-
npm dist-tag add $PACKAGE_NAME@$VERSION ${{ env.BOX_RELEASE_TAG }}
|