@depup/oclif 4.22.92-depup.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/LICENSE +21 -0
- package/README.md +44 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +7 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +7 -0
- package/changes.json +62 -0
- package/lib/aws.d.ts +22 -0
- package/lib/aws.js +146 -0
- package/lib/commands/generate/command.d.ts +12 -0
- package/lib/commands/generate/command.js +44 -0
- package/lib/commands/generate/hook.d.ts +12 -0
- package/lib/commands/generate/hook.js +87 -0
- package/lib/commands/generate.d.ts +67 -0
- package/lib/commands/generate.js +269 -0
- package/lib/commands/init.d.ts +39 -0
- package/lib/commands/init.js +165 -0
- package/lib/commands/lock.d.ts +4 -0
- package/lib/commands/lock.js +70 -0
- package/lib/commands/manifest.d.ts +13 -0
- package/lib/commands/manifest.js +156 -0
- package/lib/commands/pack/deb.d.ts +13 -0
- package/lib/commands/pack/deb.js +194 -0
- package/lib/commands/pack/macos.d.ts +14 -0
- package/lib/commands/pack/macos.js +273 -0
- package/lib/commands/pack/tarballs.d.ts +15 -0
- package/lib/commands/pack/tarballs.js +77 -0
- package/lib/commands/pack/win.d.ts +16 -0
- package/lib/commands/pack/win.js +398 -0
- package/lib/commands/promote.d.ts +20 -0
- package/lib/commands/promote.js +305 -0
- package/lib/commands/readme.d.ts +19 -0
- package/lib/commands/readme.js +143 -0
- package/lib/commands/upload/deb.d.ts +10 -0
- package/lib/commands/upload/deb.js +113 -0
- package/lib/commands/upload/macos.d.ts +11 -0
- package/lib/commands/upload/macos.js +92 -0
- package/lib/commands/upload/tarballs.d.ts +12 -0
- package/lib/commands/upload/tarballs.js +135 -0
- package/lib/commands/upload/win.d.ts +11 -0
- package/lib/commands/upload/win.js +97 -0
- package/lib/generator.d.ts +57 -0
- package/lib/generator.js +184 -0
- package/lib/help-compatibility.d.ts +11 -0
- package/lib/help-compatibility.js +22 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +4 -0
- package/lib/log.d.ts +2 -0
- package/lib/log.js +13 -0
- package/lib/readme-generator.d.ts +38 -0
- package/lib/readme-generator.js +305 -0
- package/lib/tarballs/bin.d.ts +7 -0
- package/lib/tarballs/bin.js +126 -0
- package/lib/tarballs/build.d.ts +10 -0
- package/lib/tarballs/build.js +250 -0
- package/lib/tarballs/config.d.ts +45 -0
- package/lib/tarballs/config.js +132 -0
- package/lib/tarballs/index.d.ts +4 -0
- package/lib/tarballs/index.js +20 -0
- package/lib/tarballs/node.d.ts +10 -0
- package/lib/tarballs/node.js +78 -0
- package/lib/upload-util.d.ts +17 -0
- package/lib/upload-util.js +56 -0
- package/lib/util.d.ts +18 -0
- package/lib/util.js +160 -0
- package/lib/version-indexes.d.ts +9 -0
- package/lib/version-indexes.js +119 -0
- package/oclif.manifest.json +1199 -0
- package/package.json +217 -0
- package/templates/cli/commonjs/.mocharc.json.ejs +11 -0
- package/templates/cli/commonjs/.vscode/launch.json.ejs +20 -0
- package/templates/cli/commonjs/bin/dev.cmd.ejs +3 -0
- package/templates/cli/commonjs/bin/dev.js.ejs +7 -0
- package/templates/cli/commonjs/bin/run.cmd.ejs +3 -0
- package/templates/cli/commonjs/bin/run.js.ejs +7 -0
- package/templates/cli/commonjs/eslint.config.mjs.ejs +19 -0
- package/templates/cli/commonjs/tsconfig.json.ejs +11 -0
- package/templates/cli/esm/.mocharc.json.ejs +15 -0
- package/templates/cli/esm/.vscode/launch.json.ejs +22 -0
- package/templates/cli/esm/bin/dev.cmd.ejs +3 -0
- package/templates/cli/esm/bin/dev.js.ejs +5 -0
- package/templates/cli/esm/bin/run.cmd.ejs +3 -0
- package/templates/cli/esm/bin/run.js.ejs +5 -0
- package/templates/cli/esm/eslint.config.mjs.ejs +9 -0
- package/templates/cli/esm/tsconfig.json.ejs +15 -0
- package/templates/cli/shared/.github/workflows/onPushToMain.yml.ejs +56 -0
- package/templates/cli/shared/.github/workflows/onRelease.yml.ejs +21 -0
- package/templates/cli/shared/.github/workflows/test.yml.ejs +23 -0
- package/templates/cli/shared/.gitignore.ejs +27 -0
- package/templates/cli/shared/.prettierrc.json.ejs +1 -0
- package/templates/cli/shared/README.md.ejs +396 -0
- package/templates/cli/shared/package.json.ejs +73 -0
- package/templates/cli/shared/src/commands/hello/index.ts.ejs +22 -0
- package/templates/cli/shared/src/commands/hello/world.ts.ejs +16 -0
- package/templates/cli/shared/src/index.ts.ejs +1 -0
- package/templates/cli/shared/test/commands/hello/index.test.ts.ejs +9 -0
- package/templates/cli/shared/test/commands/hello/world.test.ts.ejs +9 -0
- package/templates/cli/shared/test/tsconfig.json.ejs +9 -0
- package/templates/src/command.ts.ejs +27 -0
- package/templates/src/hook.ts.ejs +7 -0
- package/templates/src/init/dev.cmd.ejs +12 -0
- package/templates/src/init/dev.js.ejs +17 -0
- package/templates/src/init/run.cmd.ejs +3 -0
- package/templates/src/init/run.js.ejs +17 -0
- package/templates/test/command.test.ts.ejs +14 -0
- package/templates/test/hook.test.ts.ejs +9 -0
package/package.json
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@depup/oclif",
|
|
3
|
+
"description": "[DepUp] oclif: create your own CLI",
|
|
4
|
+
"version": "4.22.92-depup.1",
|
|
5
|
+
"author": "Salesforce",
|
|
6
|
+
"bin": {
|
|
7
|
+
"oclif": "bin/run.js"
|
|
8
|
+
},
|
|
9
|
+
"bugs": "https://github.com/oclif/oclif/issues",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@aws-sdk/client-cloudfront": "^3.1011.0",
|
|
12
|
+
"@aws-sdk/client-s3": "^3.1011.0",
|
|
13
|
+
"@inquirer/confirm": "^6.0.10",
|
|
14
|
+
"@inquirer/input": "^5.0.10",
|
|
15
|
+
"@inquirer/select": "^5.1.2",
|
|
16
|
+
"@oclif/core": "4.9.0",
|
|
17
|
+
"@oclif/plugin-help": "^6.2.38",
|
|
18
|
+
"@oclif/plugin-not-found": "^3.2.75",
|
|
19
|
+
"@oclif/plugin-warn-if-update-available": "^3.1.55",
|
|
20
|
+
"ansis": "^4.2.0",
|
|
21
|
+
"async-retry": "^1.3.3",
|
|
22
|
+
"change-case": "^5.4.4",
|
|
23
|
+
"debug": "^4.4.3",
|
|
24
|
+
"ejs": "^5.0.1",
|
|
25
|
+
"find-yarn-workspace-root": "^2.0.0",
|
|
26
|
+
"fs-extra": "^11.3.4",
|
|
27
|
+
"github-slugger": "^2",
|
|
28
|
+
"got": "^14.6.6",
|
|
29
|
+
"lodash": "^4.17.23",
|
|
30
|
+
"normalize-package-data": "^8.0.0",
|
|
31
|
+
"semver": "^7.7.4",
|
|
32
|
+
"sort-package-json": "^3.6.1",
|
|
33
|
+
"tiny-jsonc": "^1.0.2",
|
|
34
|
+
"validate-npm-package-name": "^7.0.2"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@commitlint/config-conventional": "^19",
|
|
38
|
+
"@eslint/compat": "^1.4.1",
|
|
39
|
+
"@oclif/plugin-legacy": "^2.0.28",
|
|
40
|
+
"@oclif/prettier-config": "^0.2.1",
|
|
41
|
+
"@oclif/test": "^4",
|
|
42
|
+
"@types/async-retry": "^1.4.5",
|
|
43
|
+
"@types/chai": "^4.3.17",
|
|
44
|
+
"@types/cli-progress": "^3.11.6",
|
|
45
|
+
"@types/debug": "^4.1.12",
|
|
46
|
+
"@types/ejs": "^3.1.5",
|
|
47
|
+
"@types/fs-extra": "^9.0",
|
|
48
|
+
"@types/lodash": "4.17.24",
|
|
49
|
+
"@types/mocha": "^10.0.10",
|
|
50
|
+
"@types/node": "^18",
|
|
51
|
+
"@types/semver": "^7.7.1",
|
|
52
|
+
"@types/shelljs": "^0.10.0",
|
|
53
|
+
"@types/sinon": "^17.0.3",
|
|
54
|
+
"@types/validate-npm-package-name": "^4.0.2",
|
|
55
|
+
"chai": "^4.5.0",
|
|
56
|
+
"commitlint": "^19",
|
|
57
|
+
"eslint": "^9",
|
|
58
|
+
"eslint-config-oclif": "6.0.146",
|
|
59
|
+
"eslint-config-prettier": "^10",
|
|
60
|
+
"eslint-plugin-perfectionist": "^4",
|
|
61
|
+
"husky": "^9.1.7",
|
|
62
|
+
"lint-staged": "^15",
|
|
63
|
+
"mocha": "^11",
|
|
64
|
+
"nyc": "^15.1.0",
|
|
65
|
+
"prettier": "^3.8.1",
|
|
66
|
+
"shelljs": "^0.10.0",
|
|
67
|
+
"shx": "^0.4.0",
|
|
68
|
+
"sinon": "^18.0.1",
|
|
69
|
+
"ts-node": "^10.7.0",
|
|
70
|
+
"typescript": "^5"
|
|
71
|
+
},
|
|
72
|
+
"engines": {
|
|
73
|
+
"node": ">=18.0.0"
|
|
74
|
+
},
|
|
75
|
+
"files": [
|
|
76
|
+
"oclif.manifest.json",
|
|
77
|
+
"./bin",
|
|
78
|
+
"./lib",
|
|
79
|
+
"./templates",
|
|
80
|
+
"changes.json",
|
|
81
|
+
"README.md"
|
|
82
|
+
],
|
|
83
|
+
"homepage": "https://github.com/oclif/oclif",
|
|
84
|
+
"keywords": [
|
|
85
|
+
"depup",
|
|
86
|
+
"dependency-bumped",
|
|
87
|
+
"updated-deps",
|
|
88
|
+
"oclif",
|
|
89
|
+
"cli"
|
|
90
|
+
],
|
|
91
|
+
"license": "MIT",
|
|
92
|
+
"main": "lib/index.js",
|
|
93
|
+
"oclif": {
|
|
94
|
+
"commands": "./lib/commands",
|
|
95
|
+
"plugins": [
|
|
96
|
+
"@oclif/plugin-help",
|
|
97
|
+
"@oclif/plugin-warn-if-update-available",
|
|
98
|
+
"@oclif/plugin-not-found"
|
|
99
|
+
],
|
|
100
|
+
"bin": "oclif",
|
|
101
|
+
"dirname": "oclif",
|
|
102
|
+
"topicSeparator": " ",
|
|
103
|
+
"macos": {
|
|
104
|
+
"identifier": "com.oclif.cli"
|
|
105
|
+
},
|
|
106
|
+
"update": {
|
|
107
|
+
"autoupdate": {
|
|
108
|
+
"rollout": 50,
|
|
109
|
+
"debounce": 60
|
|
110
|
+
},
|
|
111
|
+
"node": {
|
|
112
|
+
"version": "18.17.1"
|
|
113
|
+
},
|
|
114
|
+
"s3": {
|
|
115
|
+
"bucket": "dfc-data-production",
|
|
116
|
+
"indexVersionLimit": 20,
|
|
117
|
+
"folder": "media/salesforce-cli/oclif-testing",
|
|
118
|
+
"acl": " ",
|
|
119
|
+
"host": "https://developer.salesforce.com",
|
|
120
|
+
"xz": true
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"topics": {
|
|
124
|
+
"pack": {
|
|
125
|
+
"description": "Package an oclif CLI into installable artifacts."
|
|
126
|
+
},
|
|
127
|
+
"upload": {
|
|
128
|
+
"description": "Upload installable CLI artifacts to AWS S3."
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"repository": "oclif/oclif",
|
|
133
|
+
"scripts": {
|
|
134
|
+
"build": "shx rm -rf lib && tsc",
|
|
135
|
+
"commitlint": "commitlint",
|
|
136
|
+
"compile": "tsc",
|
|
137
|
+
"format": "prettier --write \"+(src|test)/**/*.+(ts|js|json)\"",
|
|
138
|
+
"lint": "eslint",
|
|
139
|
+
"posttest": "yarn run lint",
|
|
140
|
+
"test:integration:cli": "mocha test/integration/cli.test.ts --timeout 600000",
|
|
141
|
+
"test:integration:deb": "mocha test/integration/deb.test.ts --timeout 900000",
|
|
142
|
+
"test:integration:init": "mocha test/integration/init.test.ts --timeout 600000",
|
|
143
|
+
"test:integration:macos": "mocha test/integration/macos.test.ts --timeout 900000",
|
|
144
|
+
"test:integration:publish": "mocha test/integration/publish.test.ts --timeout 900000",
|
|
145
|
+
"test:integration:sf": "mocha test/integration/sf.test.ts --timeout 600000",
|
|
146
|
+
"test:integration:win": "mocha test/integration/win.test.ts --timeout 900000",
|
|
147
|
+
"test:integration": "mocha --forbid-only \"test/integration/*.test.ts\" --timeout 900000",
|
|
148
|
+
"test": "nyc mocha --forbid-only \"test/unit/*.test.ts\"",
|
|
149
|
+
"oclif": "bin/run.js"
|
|
150
|
+
},
|
|
151
|
+
"types": "lib/index.d.ts",
|
|
152
|
+
"depup": {
|
|
153
|
+
"changes": {
|
|
154
|
+
"@aws-sdk/client-cloudfront": {
|
|
155
|
+
"from": "3.1009.0",
|
|
156
|
+
"to": "^3.1011.0"
|
|
157
|
+
},
|
|
158
|
+
"@aws-sdk/client-s3": {
|
|
159
|
+
"from": "3.1009.0",
|
|
160
|
+
"to": "^3.1011.0"
|
|
161
|
+
},
|
|
162
|
+
"@inquirer/confirm": {
|
|
163
|
+
"from": "^3.1.22",
|
|
164
|
+
"to": "^6.0.10"
|
|
165
|
+
},
|
|
166
|
+
"@inquirer/input": {
|
|
167
|
+
"from": "^2.2.4",
|
|
168
|
+
"to": "^5.0.10"
|
|
169
|
+
},
|
|
170
|
+
"@inquirer/select": {
|
|
171
|
+
"from": "^2.5.0",
|
|
172
|
+
"to": "^5.1.2"
|
|
173
|
+
},
|
|
174
|
+
"ansis": {
|
|
175
|
+
"from": "^3.16.0",
|
|
176
|
+
"to": "^4.2.0"
|
|
177
|
+
},
|
|
178
|
+
"change-case": {
|
|
179
|
+
"from": "^4",
|
|
180
|
+
"to": "^5.4.4"
|
|
181
|
+
},
|
|
182
|
+
"debug": {
|
|
183
|
+
"from": "^4.4.0",
|
|
184
|
+
"to": "^4.4.3"
|
|
185
|
+
},
|
|
186
|
+
"ejs": {
|
|
187
|
+
"from": "^3.1.10",
|
|
188
|
+
"to": "^5.0.1"
|
|
189
|
+
},
|
|
190
|
+
"fs-extra": {
|
|
191
|
+
"from": "^8.1",
|
|
192
|
+
"to": "^11.3.4"
|
|
193
|
+
},
|
|
194
|
+
"got": {
|
|
195
|
+
"from": "^13",
|
|
196
|
+
"to": "^14.6.6"
|
|
197
|
+
},
|
|
198
|
+
"normalize-package-data": {
|
|
199
|
+
"from": "^6",
|
|
200
|
+
"to": "^8.0.0"
|
|
201
|
+
},
|
|
202
|
+
"sort-package-json": {
|
|
203
|
+
"from": "^2.15.1",
|
|
204
|
+
"to": "^3.6.1"
|
|
205
|
+
},
|
|
206
|
+
"validate-npm-package-name": {
|
|
207
|
+
"from": "^5.0.1",
|
|
208
|
+
"to": "^7.0.2"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"depsUpdated": 14,
|
|
212
|
+
"originalPackage": "oclif",
|
|
213
|
+
"originalVersion": "4.22.92",
|
|
214
|
+
"processedAt": "2026-03-17T21:29:15.855Z",
|
|
215
|
+
"smokeTest": "passed"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"type": "node",
|
|
6
|
+
"request": "attach",
|
|
7
|
+
"name": "Attach",
|
|
8
|
+
"port": 9229,
|
|
9
|
+
"skipFiles": ["<node_internals>/**"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "node",
|
|
13
|
+
"request": "launch",
|
|
14
|
+
"name": "Execute Command",
|
|
15
|
+
"skipFiles": ["<node_internals>/**"],
|
|
16
|
+
"program": "${workspaceFolder}/bin/dev.js",
|
|
17
|
+
"args": ["hello", "world"]
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {includeIgnoreFile} from '@eslint/compat'
|
|
2
|
+
import oclif from 'eslint-config-oclif'
|
|
3
|
+
import prettier from 'eslint-config-prettier'
|
|
4
|
+
import path from 'node:path'
|
|
5
|
+
import {fileURLToPath} from 'node:url'
|
|
6
|
+
|
|
7
|
+
const gitignorePath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '.gitignore')
|
|
8
|
+
|
|
9
|
+
export default [
|
|
10
|
+
includeIgnoreFile(gitignorePath),
|
|
11
|
+
...oclif,
|
|
12
|
+
prettier,
|
|
13
|
+
{
|
|
14
|
+
rules: {
|
|
15
|
+
// Turn off to support Node 18. You can remove this rule if you don't need to support Node 18.
|
|
16
|
+
'unicorn/prefer-module': 'off',
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"type": "node",
|
|
6
|
+
"request": "attach",
|
|
7
|
+
"name": "Attach",
|
|
8
|
+
"port": 9229,
|
|
9
|
+
"skipFiles": ["<node_internals>/**"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "node",
|
|
13
|
+
"request": "launch",
|
|
14
|
+
"name": "Execute Command",
|
|
15
|
+
"skipFiles": ["<node_internals>/**"],
|
|
16
|
+
"runtimeExecutable": "node",
|
|
17
|
+
"runtimeArgs": ["--loader", "ts-node/esm", "--no-warnings=ExperimentalWarning"],
|
|
18
|
+
"program": "${workspaceFolder}/bin/dev.js",
|
|
19
|
+
"args": ["hello", "world"]
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {includeIgnoreFile} from '@eslint/compat'
|
|
2
|
+
import oclif from 'eslint-config-oclif'
|
|
3
|
+
import prettier from 'eslint-config-prettier'
|
|
4
|
+
import path from 'node:path'
|
|
5
|
+
import {fileURLToPath} from 'node:url'
|
|
6
|
+
|
|
7
|
+
const gitignorePath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '.gitignore')
|
|
8
|
+
|
|
9
|
+
export default [includeIgnoreFile(gitignorePath), ...oclif, prettier]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declaration": true,
|
|
4
|
+
"module": "Node16",
|
|
5
|
+
"outDir": "dist",
|
|
6
|
+
"rootDir": "src",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"target": "es2022",
|
|
9
|
+
"moduleResolution": "node16"
|
|
10
|
+
},
|
|
11
|
+
"include": ["./src/**/*"],
|
|
12
|
+
"ts-node": {
|
|
13
|
+
"esm": true
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# test
|
|
2
|
+
name: version, tag and github release
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches: [main]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
release:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: actions/setup-node@v4
|
|
14
|
+
- name: Check if version already exists
|
|
15
|
+
id: version-check
|
|
16
|
+
run: |
|
|
17
|
+
package_version=$(node -p "require('./package.json').version")
|
|
18
|
+
exists=$(gh api repos/${{ github.repository }}/releases/tags/v$package_version >/dev/null 2>&1 && echo "true" || echo "")
|
|
19
|
+
|
|
20
|
+
if [ -n "$exists" ];
|
|
21
|
+
then
|
|
22
|
+
echo "Version v$package_version already exists"
|
|
23
|
+
echo "::warning file=package.json,line=1::Version v$package_version already exists - no release will be created. If you want to create a new release, please update the version in package.json and push again."
|
|
24
|
+
echo "skipped=true" >> $GITHUB_OUTPUT
|
|
25
|
+
else
|
|
26
|
+
echo "Version v$package_version does not exist. Creating release..."
|
|
27
|
+
echo "skipped=false" >> $GITHUB_OUTPUT
|
|
28
|
+
echo "tag=v$package_version" >> $GITHUB_OUTPUT
|
|
29
|
+
fi
|
|
30
|
+
env:
|
|
31
|
+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
32
|
+
- name: Setup git
|
|
33
|
+
if: ${{ steps.version-check.outputs.skipped == 'false' }}
|
|
34
|
+
run: |
|
|
35
|
+
git config --global user.email ${{ secrets.GH_EMAIL }}
|
|
36
|
+
git config --global user.name ${{ secrets.GH_USERNAME }}
|
|
37
|
+
- name: Generate oclif README
|
|
38
|
+
if: ${{ steps.version-check.outputs.skipped == 'false' }}
|
|
39
|
+
id: oclif-readme
|
|
40
|
+
run: |
|
|
41
|
+
<%- install %>
|
|
42
|
+
<%- exec %> oclif readme
|
|
43
|
+
if [ -n "$(git status --porcelain)" ]; then
|
|
44
|
+
git add .
|
|
45
|
+
git commit -am "chore: update README.md"
|
|
46
|
+
git push -u origin ${{ github.ref_name }}
|
|
47
|
+
fi
|
|
48
|
+
- name: Create Github Release
|
|
49
|
+
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5
|
|
50
|
+
if: ${{ steps.version-check.outputs.skipped == 'false' }}
|
|
51
|
+
with:
|
|
52
|
+
name: ${{ steps.version-check.outputs.tag }}
|
|
53
|
+
tag: ${{ steps.version-check.outputs.tag }}
|
|
54
|
+
commit: ${{ github.ref_name }}
|
|
55
|
+
token: ${{ secrets.GH_TOKEN }}
|
|
56
|
+
skipIfReleaseExists: true
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [released]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
publish:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v4
|
|
12
|
+
- uses: actions/setup-node@v4
|
|
13
|
+
with:
|
|
14
|
+
node-version: latest
|
|
15
|
+
- run: <%- install %>
|
|
16
|
+
- run: <%- run %> build
|
|
17
|
+
- run: <%- run %> prepack
|
|
18
|
+
- uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c
|
|
19
|
+
with:
|
|
20
|
+
token: ${{ secrets.NPM_TOKEN }}
|
|
21
|
+
- run: <%- run %> postpack
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: tests
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches-ignore: [main]
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
unit-tests:
|
|
9
|
+
strategy:
|
|
10
|
+
matrix:
|
|
11
|
+
os: ['ubuntu-latest', 'windows-latest']
|
|
12
|
+
node_version: [lts/-1, lts/*, latest]
|
|
13
|
+
fail-fast: false
|
|
14
|
+
runs-on: ${{ matrix.os }}
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- uses: actions/setup-node@v4
|
|
18
|
+
with:
|
|
19
|
+
node-version: ${{ matrix.node_version }}
|
|
20
|
+
cache: <%- packageManager %>
|
|
21
|
+
- run: <%- install %>
|
|
22
|
+
- run: <%- run %> build
|
|
23
|
+
- run: <%- run %> test
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
*-debug.log
|
|
2
|
+
*-error.log
|
|
3
|
+
**/.DS_Store
|
|
4
|
+
/.idea
|
|
5
|
+
/dist
|
|
6
|
+
/tmp
|
|
7
|
+
/node_modules
|
|
8
|
+
oclif.manifest.json
|
|
9
|
+
<% if (packageManager === 'yarn') { %>
|
|
10
|
+
package-lock.json
|
|
11
|
+
pnpm-lock.yaml
|
|
12
|
+
.pnp.*
|
|
13
|
+
.yarn/*
|
|
14
|
+
!.yarn/patches
|
|
15
|
+
!.yarn/plugins
|
|
16
|
+
!.yarn/releases
|
|
17
|
+
!.yarn/sdks
|
|
18
|
+
!.yarn/versions
|
|
19
|
+
<% } %>
|
|
20
|
+
<% if (packageManager === 'pnpm') { %>
|
|
21
|
+
yarn.lock
|
|
22
|
+
package-lock.json
|
|
23
|
+
<% } %>
|
|
24
|
+
<% if (packageManager === 'npm') { %>
|
|
25
|
+
yarn.lock
|
|
26
|
+
pnpm-lock.yaml
|
|
27
|
+
<% } %>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"@oclif/prettier-config"
|