@player-tools/cli 0.2.1--canary.16.289 → 0.2.1--canary.16.331
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.
|
@@ -107,15 +107,21 @@ class XLRCompile extends base_command_1.BaseCommand {
|
|
|
107
107
|
if (symbol) {
|
|
108
108
|
// look at what they implement
|
|
109
109
|
(_a = node.heritageClauses) === null || _a === void 0 ? void 0 : _a.forEach((heritage) => {
|
|
110
|
-
var _a;
|
|
111
|
-
capabilities.pluginName =
|
|
112
|
-
((_a = node.name) === null || _a === void 0 ? void 0 : _a.text) || capabilities.pluginName;
|
|
113
110
|
heritage.types.forEach((hInterface) => {
|
|
114
111
|
var _a, _b, _c;
|
|
115
112
|
// check if heritage is right one
|
|
116
113
|
if (hInterface.expression.getText() !== PLAYER_PLUGIN_INTERFACE_NAME) {
|
|
117
114
|
return;
|
|
118
115
|
}
|
|
116
|
+
// Get registration name of plugin
|
|
117
|
+
node.members.forEach((member) => {
|
|
118
|
+
var _a, _b;
|
|
119
|
+
if (typescript_1.default.isPropertyDeclaration(member) &&
|
|
120
|
+
member.name.getText() === 'name') {
|
|
121
|
+
capabilities.pluginName =
|
|
122
|
+
(_b = (_a = member.initializer) === null || _a === void 0 ? void 0 : _a.getText().replace(/['"]+/g, '')) !== null && _b !== void 0 ? _b : 'Unknown Plugin';
|
|
123
|
+
}
|
|
124
|
+
});
|
|
119
125
|
const provides = new Map();
|
|
120
126
|
const typeArgs = hInterface.typeArguments;
|
|
121
127
|
const pluginDec = (_b = (_a = checker.getTypeAtLocation(hInterface).symbol) === null || _a === void 0 ? void 0 : _a.declarations) === null || _b === void 0 ? void 0 : _b[0];
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.2.1--canary.16.
|
|
1
|
+
{"version":"0.2.1--canary.16.331","commands":{"dsl:compile":{"id":"dsl:compile","description":"Compile Player DSL files into JSON","strict":false,"pluginName":"@player-tools/cli","pluginAlias":"@player-tools/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","char":"c","description":"Path to a specific config file to load.\nBy default, will automatically search for an rc or config file to load","multiple":false},"input":{"name":"input","type":"option","char":"i","description":"An input directory to compile.\nAny jsx/ts/tsx files will be loaded via babel-require automatically.","multiple":false},"output":{"name":"output","type":"option","char":"o","description":"Output directory to write results to.","multiple":false},"skip-validation":{"name":"skip-validation","type":"boolean","description":"Option to skip validating the generated JSON","allowNo":false},"exp":{"name":"exp","type":"boolean","description":"Use experimental language features","allowNo":false}},"args":[],"_globalFlags":{}},"json:validate":{"id":"json:validate","description":"Validate Player JSON content","strict":false,"pluginName":"@player-tools/cli","pluginAlias":"@player-tools/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","char":"c","description":"Path to a specific config file to load.\nBy default, will automatically search for an rc or config file to load","multiple":false},"files":{"name":"files","type":"option","char":"f","description":"A list of files or globs to validate","multiple":true},"exp":{"name":"exp","type":"boolean","description":"Use experimental language features","allowNo":false}},"args":[],"_globalFlags":{}},"xlr:compile":{"id":"xlr:compile","description":"Compiles typescript files to XLRs format","strict":false,"pluginName":"@player-tools/cli","pluginAlias":"@player-tools/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","char":"c","description":"Path to a specific config file to load.\nBy default, will automatically search for an rc or config file to load","multiple":false},"input":{"name":"input","type":"option","char":"i","description":"An input directory to search for types to export","multiple":false,"default":"./src"},"output":{"name":"output","type":"option","char":"o","description":"Output directory to write results to.","multiple":false,"default":"./dist"},"mode":{"name":"mode","type":"option","char":"m","description":"Search strategy for types to export: plugin (default, looks for exported EnchancedPlayerPlugin classes) or type (all exported types)","helpValue":"(plugin|types)","multiple":false,"options":["plugin","types"],"default":"plugin"}},"args":[],"_globalFlags":{}},"xlr:convert":{"id":"xlr:convert","description":"Exports XLRs files to a specific language","strict":false,"pluginName":"@player-tools/cli","pluginAlias":"@player-tools/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","char":"c","description":"Path to a specific config file to load.\nBy default, will automatically search for an rc or config file to load","multiple":false},"input":{"name":"input","type":"option","char":"i","description":"An input directory to search for types to export","multiple":false,"default":"./dist"},"output":{"name":"output","type":"option","char":"o","description":"Output directory to write results to.","multiple":false},"lang":{"name":"lang","type":"option","char":"l","description":"Search strategy for types to export: plugin (default, looks for exported EnchancedPlayerPlugin classes) or type (all exported types)","helpValue":"(TypeScript)","multiple":false,"options":["TypeScript"]}},"args":[],"_globalFlags":{}}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@player-tools/cli",
|
|
3
|
-
"version": "0.2.1--canary.16.
|
|
3
|
+
"version": "0.2.1--canary.16.331",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"mkdirp": "^1.0.4",
|
|
28
28
|
"vscode-languageserver-textdocument": "^1.0.1",
|
|
29
29
|
"vscode-languageserver-types": "^3.15.1",
|
|
30
|
-
"@player-tools/dsl": "0.2.1--canary.16.
|
|
31
|
-
"@player-tools/language-service": "0.2.1--canary.16.
|
|
32
|
-
"@player-tools/xlr-sdk": "0.2.1--canary.16.
|
|
33
|
-
"@player-tools/xlr-utils": "0.2.1--canary.16.
|
|
34
|
-
"@player-tools/xlr-converters": "0.2.1--canary.16.
|
|
30
|
+
"@player-tools/dsl": "0.2.1--canary.16.331",
|
|
31
|
+
"@player-tools/language-service": "0.2.1--canary.16.331",
|
|
32
|
+
"@player-tools/xlr-sdk": "0.2.1--canary.16.331",
|
|
33
|
+
"@player-tools/xlr-utils": "0.2.1--canary.16.331",
|
|
34
|
+
"@player-tools/xlr-converters": "0.2.1--canary.16.331"
|
|
35
35
|
},
|
|
36
36
|
"main": "./dist/index.js",
|
|
37
37
|
"module": "dist/index.esm.js",
|