@oclif/plugin-test-esbuild 0.1.3
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/README.md +397 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +6 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +7 -0
- package/dist/commands/hello/index.d.ts +12 -0
- package/dist/commands/hello/index.js +22 -0
- package/dist/commands/hello/world.d.ts +8 -0
- package/dist/commands/hello/world.js +17 -0
- package/dist/hooks/init/init.d.ts +3 -0
- package/dist/hooks/init/init.js +6 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +230702 -0
- package/oclif.manifest.json +72 -0
- package/package.json +87 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"hello": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {
|
|
6
|
+
"person": {
|
|
7
|
+
"description": "Person to say hello to",
|
|
8
|
+
"name": "person",
|
|
9
|
+
"required": true
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"description": "Say hello",
|
|
13
|
+
"examples": [
|
|
14
|
+
"$ oex hello friend --from oclif\nhello friend from oclif! (./src/commands/hello/index.ts)\n"
|
|
15
|
+
],
|
|
16
|
+
"flags": {
|
|
17
|
+
"from": {
|
|
18
|
+
"char": "f",
|
|
19
|
+
"description": "Who is saying hello",
|
|
20
|
+
"name": "from",
|
|
21
|
+
"required": true,
|
|
22
|
+
"hasDynamicHelp": false,
|
|
23
|
+
"multiple": false,
|
|
24
|
+
"type": "option"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"hasDynamicHelp": false,
|
|
28
|
+
"hiddenAliases": [],
|
|
29
|
+
"id": "hello",
|
|
30
|
+
"pluginAlias": "@oclif/plugin-test-esbuild",
|
|
31
|
+
"pluginName": "@oclif/plugin-test-esbuild",
|
|
32
|
+
"pluginType": "core",
|
|
33
|
+
"strict": true,
|
|
34
|
+
"enableJsonFlag": false
|
|
35
|
+
},
|
|
36
|
+
"hello:alias": {
|
|
37
|
+
"aliases": [],
|
|
38
|
+
"args": {},
|
|
39
|
+
"description": "Say hello world",
|
|
40
|
+
"examples": [
|
|
41
|
+
"<%= config.bin %> <%= command.id %>\nhello world! (./src/commands/hello/world.ts)\n"
|
|
42
|
+
],
|
|
43
|
+
"flags": {},
|
|
44
|
+
"hasDynamicHelp": false,
|
|
45
|
+
"hiddenAliases": [],
|
|
46
|
+
"id": "hello:alias",
|
|
47
|
+
"pluginAlias": "@oclif/plugin-test-esbuild",
|
|
48
|
+
"pluginName": "@oclif/plugin-test-esbuild",
|
|
49
|
+
"pluginType": "core",
|
|
50
|
+
"strict": true,
|
|
51
|
+
"enableJsonFlag": false
|
|
52
|
+
},
|
|
53
|
+
"hello:world": {
|
|
54
|
+
"aliases": [],
|
|
55
|
+
"args": {},
|
|
56
|
+
"description": "Say hello world",
|
|
57
|
+
"examples": [
|
|
58
|
+
"<%= config.bin %> <%= command.id %>\nhello world! (./src/commands/hello/world.ts)\n"
|
|
59
|
+
],
|
|
60
|
+
"flags": {},
|
|
61
|
+
"hasDynamicHelp": false,
|
|
62
|
+
"hiddenAliases": [],
|
|
63
|
+
"id": "hello:world",
|
|
64
|
+
"pluginAlias": "@oclif/plugin-test-esbuild",
|
|
65
|
+
"pluginName": "@oclif/plugin-test-esbuild",
|
|
66
|
+
"pluginType": "core",
|
|
67
|
+
"strict": true,
|
|
68
|
+
"enableJsonFlag": false
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"version": "0.1.3"
|
|
72
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@oclif/plugin-test-esbuild",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "Bundled plugin for testing",
|
|
5
|
+
"author": "Salesforce",
|
|
6
|
+
"bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"oclif"
|
|
9
|
+
],
|
|
10
|
+
"bin": {
|
|
11
|
+
"bundle": "./bin/run.js"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@oclif/core": "3.19.2-dev.0",
|
|
15
|
+
"@oclif/plugin-help": "^6",
|
|
16
|
+
"@oclif/plugin-plugins": "^4"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@oclif/prettier-config": "^0.2.1",
|
|
20
|
+
"@oclif/test": "^3",
|
|
21
|
+
"@types/chai": "^4",
|
|
22
|
+
"@types/mocha": "^9.0.0",
|
|
23
|
+
"@types/node": "^18",
|
|
24
|
+
"chai": "^4",
|
|
25
|
+
"esbuild": "^0.20.0",
|
|
26
|
+
"eslint": "^8.56.0",
|
|
27
|
+
"eslint-config-oclif": "^5",
|
|
28
|
+
"eslint-config-oclif-typescript": "^3",
|
|
29
|
+
"eslint-config-prettier": "^9.1.0",
|
|
30
|
+
"mocha": "^10",
|
|
31
|
+
"oclif": "4.4.13-dev.0",
|
|
32
|
+
"shx": "^0.3.3",
|
|
33
|
+
"ts-node": "^10.9.2",
|
|
34
|
+
"typescript": "^5"
|
|
35
|
+
},
|
|
36
|
+
"resolutions": {
|
|
37
|
+
"@oclif/core": "3.19.2-dev.0"
|
|
38
|
+
},
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=18.0.0"
|
|
41
|
+
},
|
|
42
|
+
"files": [
|
|
43
|
+
"/bin",
|
|
44
|
+
"/dist",
|
|
45
|
+
"/oclif.manifest.json"
|
|
46
|
+
],
|
|
47
|
+
"homepage": "https://github.com/oclif/plugin-test-esbuild",
|
|
48
|
+
"license": "MIT",
|
|
49
|
+
"main": "dist/index.js",
|
|
50
|
+
"oclif": {
|
|
51
|
+
"bin": "bundle",
|
|
52
|
+
"dirname": "bundle",
|
|
53
|
+
"commands": {
|
|
54
|
+
"strategy": "explicit",
|
|
55
|
+
"target": "./dist/index.js",
|
|
56
|
+
"identifier": "COMMANDS"
|
|
57
|
+
},
|
|
58
|
+
"plugins": [
|
|
59
|
+
"@oclif/plugin-help",
|
|
60
|
+
"@oclif/plugin-plugins"
|
|
61
|
+
],
|
|
62
|
+
"topicSeparator": " ",
|
|
63
|
+
"topics": {
|
|
64
|
+
"hello": {
|
|
65
|
+
"description": "Say hello to the world and others"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"hooks": {
|
|
69
|
+
"init": {
|
|
70
|
+
"target": "./dist/index.js",
|
|
71
|
+
"identifier": "INIT_HOOK"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"repository": "oclif/plugin-test-bundle",
|
|
76
|
+
"scripts": {
|
|
77
|
+
"build": "shx rm -rf dist && tsc -b",
|
|
78
|
+
"bundle": "esbuild src/index.ts --bundle --platform=node --outfile=dist/index.js",
|
|
79
|
+
"lint": "eslint . --ext .ts",
|
|
80
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
81
|
+
"posttest": "yarn lint",
|
|
82
|
+
"prepack": "yarn bundle && oclif manifest && oclif readme",
|
|
83
|
+
"prepare": "yarn bundle",
|
|
84
|
+
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
|
|
85
|
+
"version": "oclif readme && git add README.md"
|
|
86
|
+
}
|
|
87
|
+
}
|