@player-tools/cli 0.12.1-next.4 → 0.13.0-next.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.
|
@@ -75,6 +75,12 @@ class DSLCompile extends base_command_1.BaseCommand {
|
|
|
75
75
|
const context = await this.createCompilerContext();
|
|
76
76
|
/** Compile a file from the DSL format into JSON */
|
|
77
77
|
const compileFile = async (file) => {
|
|
78
|
+
// Check if any plugin wants to skip this file
|
|
79
|
+
const shouldSkipCompilation = await context.hooks.skipCompilation.call(file);
|
|
80
|
+
if (shouldSkipCompilation) {
|
|
81
|
+
this.log(`${log_symbols_1.default.info} Skipping compilation for %s`, (0, fs_2.normalizePath)(file));
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
78
84
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
79
85
|
const requiredModule = require(path_1.default.resolve(file));
|
|
80
86
|
const defaultExport = requiredModule.default;
|
|
@@ -38,6 +38,13 @@ export declare class CompilationContext {
|
|
|
38
38
|
* @returns CompilerReturn object instance or undefined
|
|
39
39
|
*/
|
|
40
40
|
compileContent: AsyncSeriesBailHook<[compileContentArgs, any, string], compilationResult, Record<string, any>>;
|
|
41
|
+
/**
|
|
42
|
+
* Function for determining if a file should be skipped during compilation
|
|
43
|
+
*
|
|
44
|
+
* @param fileName - The relative name of the file
|
|
45
|
+
* @returns true if the file should be skipped, false or undefined otherwise
|
|
46
|
+
*/
|
|
47
|
+
skipCompilation: AsyncSeriesBailHook<[string], boolean, Record<string, any>>;
|
|
41
48
|
};
|
|
42
49
|
/** A DSL compiler instance */
|
|
43
50
|
dslCompiler: DSLCompiler;
|
|
@@ -26,6 +26,13 @@ class CompilationContext {
|
|
|
26
26
|
* @returns CompilerReturn object instance or undefined
|
|
27
27
|
*/
|
|
28
28
|
compileContent: new tapable_ts_1.AsyncSeriesBailHook(),
|
|
29
|
+
/**
|
|
30
|
+
* Function for determining if a file should be skipped during compilation
|
|
31
|
+
*
|
|
32
|
+
* @param fileName - The relative name of the file
|
|
33
|
+
* @returns true if the file should be skipped, false or undefined otherwise
|
|
34
|
+
*/
|
|
35
|
+
skipCompilation: new tapable_ts_1.AsyncSeriesBailHook(),
|
|
29
36
|
};
|
|
30
37
|
/** A DSL compiler instance */
|
|
31
38
|
dslCompiler;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
7
7
|
"name": "@player-tools/cli",
|
|
8
|
-
"version": "0.
|
|
8
|
+
"version": "0.13.0-next.0",
|
|
9
9
|
"main": "./dist/index.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"oclif": {
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"player": "bin/run"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@player-tools/dsl": "0.
|
|
25
|
-
"@player-tools/json-language-service": "0.
|
|
26
|
-
"@player-tools/xlr": "0.
|
|
27
|
-
"@player-tools/xlr-converters": "0.
|
|
28
|
-
"@player-tools/xlr-sdk": "0.
|
|
29
|
-
"@player-tools/xlr-utils": "0.
|
|
24
|
+
"@player-tools/dsl": "0.13.0-next.0",
|
|
25
|
+
"@player-tools/json-language-service": "0.13.0-next.0",
|
|
26
|
+
"@player-tools/xlr": "0.13.0-next.0",
|
|
27
|
+
"@player-tools/xlr-converters": "0.13.0-next.0",
|
|
28
|
+
"@player-tools/xlr-sdk": "0.13.0-next.0",
|
|
29
|
+
"@player-tools/xlr-utils": "0.13.0-next.0",
|
|
30
30
|
"@babel/plugin-transform-react-jsx-source": "^7.23.3",
|
|
31
31
|
"@babel/preset-env": "^7.23.3",
|
|
32
32
|
"@babel/preset-react": "^7.23.3",
|