vaderjs-native 1.0.36 → 1.0.38

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/package.json CHANGED
@@ -1,18 +1,18 @@
1
- {
2
- "name": "vaderjs-native",
3
- "version": "1.0.36",
4
- "binaryVersion": "1.0.26",
5
- "description": "Build Native Applications using Vaderjs framework.",
6
- "bin": {
7
- "vaderjs": "./main.ts"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/Postr-Inc/Vaderjs-Native"
12
- },
13
- "license": "MIT",
14
- "dependencies": {
15
- "vaderjs-types": "latest",
16
- "extract-zip": "latest"
17
- }
18
- }
1
+ {
2
+ "name": "vaderjs-native",
3
+ "version": "1.0.38",
4
+ "binaryVersion": "1.0.26",
5
+ "description": "Build Native Applications using Vaderjs framework.",
6
+ "bin": {
7
+ "vaderjs": "./main.ts"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/Postr-Inc/Vaderjs-Native"
12
+ },
13
+ "license": "MIT",
14
+ "dependencies": {
15
+ "vaderjs-types": "latest",
16
+ "extract-zip": "latest"
17
+ }
18
+ }
package/plugins/index.ts CHANGED
@@ -1,63 +1,63 @@
1
- // vaderPlugin.d.ts
2
-
3
- /** The API object passed to plugin hooks */
4
- export interface VaderAPI {
5
- /** Run a shell command (string or string[]) and wait for it to finish */
6
- runCommand(cmd: string | string[]): Promise<void>;
7
-
8
- /** Inject arbitrary HTML into the <head> of generated index.html files */
9
- injectHTML(content: string): void;
10
-
11
- /** Log a message prefixed with [Vader Plugin] */
12
- log(msg: string): void;
13
-
14
- /** Get absolute path to the project root */
15
- getProjectRoot(): string;
16
-
17
- /** Get absolute path to the dist output directory */
18
- getDistDir(): string;
19
-
20
- /** Get absolute path to the public assets directory */
21
- getPublicDir(): string;
22
- }
23
-
24
- /** Supported plugin hook names */
25
- export type PluginHookName =
26
- | "onBuildStart"
27
- | "onBuildFinish"
28
- | "onWatchStart"
29
- | "onWatchStop"
30
- | "onServeStart"
31
- | "onServeStop"
32
- | "onFileChange";
33
-
34
- /** Interface for a single plugin */
35
- export interface VaderPlugin {
36
- /** Called before build starts */
37
- onBuildStart?(api: VaderAPI): Promise<void> | void;
38
-
39
- /** Called after build finishes */
40
- onBuildFinish?(api: VaderAPI): Promise<void> | void;
41
-
42
- /** Called when watcher starts (dev mode) */
43
- onWatchStart?(api: VaderAPI): Promise<void> | void;
44
-
45
- /** Called when watcher stops (dev mode) */
46
- onWatchStop?(api: VaderAPI): Promise<void> | void;
47
-
48
- /** Called when dev server starts */
49
- onServeStart?(api: VaderAPI): Promise<void> | void;
50
-
51
- /** Called when dev server stops */
52
- onServeStop?(api: VaderAPI): Promise<void> | void;
53
-
54
- /** Called on file change during watch, with changed file path */
55
- onFileChange?(api: VaderAPI, filePath: string): Promise<void> | void;
56
- }
57
-
58
- /** User config type */
59
- export interface VaderConfig {
60
- port?: number;
61
- host_provider?: string;
62
- plugins?: VaderPlugin[];
63
- }
1
+ // vaderPlugin.d.ts
2
+
3
+ /** The API object passed to plugin hooks */
4
+ export interface VaderAPI {
5
+ /** Run a shell command (string or string[]) and wait for it to finish */
6
+ runCommand(cmd: string | string[]): Promise<void>;
7
+
8
+ /** Inject arbitrary HTML into the <head> of generated index.html files */
9
+ injectHTML(content: string): void;
10
+
11
+ /** Log a message prefixed with [Vader Plugin] */
12
+ log(msg: string): void;
13
+
14
+ /** Get absolute path to the project root */
15
+ getProjectRoot(): string;
16
+
17
+ /** Get absolute path to the dist output directory */
18
+ getDistDir(): string;
19
+
20
+ /** Get absolute path to the public assets directory */
21
+ getPublicDir(): string;
22
+ }
23
+
24
+ /** Supported plugin hook names */
25
+ export type PluginHookName =
26
+ | "onBuildStart"
27
+ | "onBuildFinish"
28
+ | "onWatchStart"
29
+ | "onWatchStop"
30
+ | "onServeStart"
31
+ | "onServeStop"
32
+ | "onFileChange";
33
+
34
+ /** Interface for a single plugin */
35
+ export interface VaderPlugin {
36
+ /** Called before build starts */
37
+ onBuildStart?(api: VaderAPI): Promise<void> | void;
38
+
39
+ /** Called after build finishes */
40
+ onBuildFinish?(api: VaderAPI): Promise<void> | void;
41
+
42
+ /** Called when watcher starts (dev mode) */
43
+ onWatchStart?(api: VaderAPI): Promise<void> | void;
44
+
45
+ /** Called when watcher stops (dev mode) */
46
+ onWatchStop?(api: VaderAPI): Promise<void> | void;
47
+
48
+ /** Called when dev server starts */
49
+ onServeStart?(api: VaderAPI): Promise<void> | void;
50
+
51
+ /** Called when dev server stops */
52
+ onServeStop?(api: VaderAPI): Promise<void> | void;
53
+
54
+ /** Called on file change during watch, with changed file path */
55
+ onFileChange?(api: VaderAPI, filePath: string): Promise<void> | void;
56
+ }
57
+
58
+ /** User config type */
59
+ export interface VaderConfig {
60
+ port?: number;
61
+ host_provider?: string;
62
+ plugins?: VaderPlugin[];
63
+ }
File without changes