@team-supercharge/oasg 13.0.0-test-export-da29ca31.0 → 13.0.0-test-export-85bf090d.0
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/oasg +3 -0
- package/package.json +1 -1
- package/targets/.env +3 -0
- package/targets/common.sh +9 -0
package/bin/oasg
CHANGED
@@ -108,6 +108,9 @@ async function run() {
|
|
108
108
|
|
109
109
|
// generate
|
110
110
|
.command(['generate [target]', 'g'], 'generate packages', (yargs) => {
|
111
|
+
console.log('----------------------------')
|
112
|
+
console.log(JSON.stringify(process.env))
|
113
|
+
console.log('----------------------------')
|
111
114
|
yargs
|
112
115
|
.positional('target', {
|
113
116
|
describe: 'specify a target (optional)',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@team-supercharge/oasg",
|
3
|
-
"version": "13.0.0-test-export-
|
3
|
+
"version": "13.0.0-test-export-85bf090d.0",
|
4
4
|
"description": "Node-based tool to lint OpenAPI documents and generate clients, servers and documentation from them",
|
5
5
|
"author": "Supercharge",
|
6
6
|
"license": "MIT",
|
package/targets/.env
ADDED
package/targets/common.sh
CHANGED
@@ -9,6 +9,8 @@
|
|
9
9
|
# 8. preRelease - building/publishing a pre-release
|
10
10
|
# 9. templateDir - directory for merged templates
|
11
11
|
|
12
|
+
. .env
|
13
|
+
|
12
14
|
version=$1
|
13
15
|
binary=$2
|
14
16
|
configFile=$3
|
@@ -19,6 +21,13 @@ generatorId=$7
|
|
19
21
|
preRelease=$8
|
20
22
|
templateDir=$9
|
21
23
|
|
24
|
+
echo "COMMON.sh"
|
25
|
+
echo "------------------"
|
26
|
+
echo "$PATH"
|
27
|
+
echo "$DART_SDK"
|
28
|
+
echo "$TEST_VARIABLE"
|
29
|
+
echo "------------------"
|
30
|
+
|
22
31
|
echo -e "\n=====\n version:\t$version\n binary:\t$binary\n configFile:\t$configFile\n targetId:\t$targetId\n generatorId:\t$generatorId\n openApiFile:\t$openApiFile\n formatter:\t$formatterBinary\n preRelease:\t$preRelease\n templateDir:\t$templateDir\n ---"
|
23
32
|
|
24
33
|
for paramName in $(cat $configFile | jq -r ".targets[] | select(.id==\"$targetId\") | del(.id) | del(.type) | del(.source) | del(.generator) | del(.generatorId) | del(.templateDir) | keys | .[]"); do
|