@goodie-ts/vite-plugin 0.1.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.
- package/LICENSE +21 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/options.d.ts +21 -0
- package/dist/options.d.ts.map +1 -0
- package/dist/options.js +19 -0
- package/dist/options.js.map +1 -0
- package/dist/plugin.d.ts +10 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +73 -0
- package/dist/plugin.js.map +1 -0
- package/dist/rebuild.d.ts +17 -0
- package/dist/rebuild.d.ts.map +1 -0
- package/dist/rebuild.js +25 -0
- package/dist/rebuild.js.map +1 -0
- package/package.json +39 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 GOOD Code ApS
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,yEAAyE;AAGzE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** User-facing options for the Vite DI plugin. */
|
|
2
|
+
export interface DiPluginOptions {
|
|
3
|
+
/** Path to tsconfig.json (relative to Vite root or absolute). Defaults to `"tsconfig.json"`. */
|
|
4
|
+
tsConfigPath?: string;
|
|
5
|
+
/** Path for the generated output file (relative to Vite root or absolute). Defaults to `"src/AppContext.generated.ts"`. */
|
|
6
|
+
outputPath?: string;
|
|
7
|
+
/** Source file globs to scan. Passed through to the transformer. */
|
|
8
|
+
include?: string[];
|
|
9
|
+
/** Debounce interval in ms for watch-mode rebuilds. Defaults to `100`. */
|
|
10
|
+
debounceMs?: number;
|
|
11
|
+
}
|
|
12
|
+
/** Resolved (absolute) options used internally by the plugin. */
|
|
13
|
+
export interface ResolvedOptions {
|
|
14
|
+
tsConfigPath: string;
|
|
15
|
+
outputPath: string;
|
|
16
|
+
include: string[] | undefined;
|
|
17
|
+
debounceMs: number;
|
|
18
|
+
}
|
|
19
|
+
/** Resolve user options against the Vite project root, applying defaults. */
|
|
20
|
+
export declare function resolveOptions(userOptions: DiPluginOptions | undefined, viteRoot: string): ResolvedOptions;
|
|
21
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAEA,kDAAkD;AAClD,MAAM,WAAW,eAAe;IAC9B,gGAAgG;IAChG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2HAA2H;IAC3H,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,0EAA0E;IAC1E,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,iEAAiE;AACjE,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;CACpB;AAMD,6EAA6E;AAC7E,wBAAgB,cAAc,CAC5B,WAAW,EAAE,eAAe,GAAG,SAAS,EACxC,QAAQ,EAAE,MAAM,GACf,eAAe,CAajB"}
|
package/dist/options.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
const DEFAULT_TSCONFIG = 'tsconfig.json';
|
|
3
|
+
const DEFAULT_OUTPUT = 'src/AppContext.generated.ts';
|
|
4
|
+
const DEFAULT_DEBOUNCE_MS = 100;
|
|
5
|
+
/** Resolve user options against the Vite project root, applying defaults. */
|
|
6
|
+
export function resolveOptions(userOptions, viteRoot) {
|
|
7
|
+
const opts = userOptions ?? {};
|
|
8
|
+
return {
|
|
9
|
+
tsConfigPath: opts.tsConfigPath
|
|
10
|
+
? path.resolve(viteRoot, opts.tsConfigPath)
|
|
11
|
+
: path.resolve(viteRoot, DEFAULT_TSCONFIG),
|
|
12
|
+
outputPath: opts.outputPath
|
|
13
|
+
? path.resolve(viteRoot, opts.outputPath)
|
|
14
|
+
: path.resolve(viteRoot, DEFAULT_OUTPUT),
|
|
15
|
+
include: opts.include,
|
|
16
|
+
debounceMs: opts.debounceMs ?? DEFAULT_DEBOUNCE_MS,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAsB7B,MAAM,gBAAgB,GAAG,eAAe,CAAC;AACzC,MAAM,cAAc,GAAG,6BAA6B,CAAC;AACrD,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEhC,6EAA6E;AAC7E,MAAM,UAAU,cAAc,CAC5B,WAAwC,EACxC,QAAgB;IAEhB,MAAM,IAAI,GAAG,WAAW,IAAI,EAAE,CAAC;IAE/B,OAAO;QACL,YAAY,EAAE,IAAI,CAAC,YAAY;YAC7B,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC;YAC3C,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,gBAAgB,CAAC;QAC5C,UAAU,EAAE,IAAI,CAAC,UAAU;YACzB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;YACzC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,cAAc,CAAC;QAC1C,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,mBAAmB;KACnD,CAAC;AACJ,CAAC"}
|
package/dist/plugin.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Plugin } from 'vite';
|
|
2
|
+
import type { DiPluginOptions } from './options.js';
|
|
3
|
+
/**
|
|
4
|
+
* Vite plugin that runs the @goodie compile-time DI transformer.
|
|
5
|
+
*
|
|
6
|
+
* - On `buildStart`: full transform, throws on error (aborts build).
|
|
7
|
+
* - On `handleHotUpdate`: debounced rebuild on `.ts` changes, logs errors without crashing.
|
|
8
|
+
*/
|
|
9
|
+
export declare function diPlugin(userOptions?: DiPluginOptions): Plugin;
|
|
10
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,MAAM,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,WAAW,CAAC,EAAE,eAAe,GAAG,MAAM,CAsE9D"}
|
package/dist/plugin.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { resolveOptions } from './options.js';
|
|
3
|
+
import { runRebuild } from './rebuild.js';
|
|
4
|
+
/**
|
|
5
|
+
* Vite plugin that runs the @goodie compile-time DI transformer.
|
|
6
|
+
*
|
|
7
|
+
* - On `buildStart`: full transform, throws on error (aborts build).
|
|
8
|
+
* - On `handleHotUpdate`: debounced rebuild on `.ts` changes, logs errors without crashing.
|
|
9
|
+
*/
|
|
10
|
+
export function diPlugin(userOptions) {
|
|
11
|
+
let resolved;
|
|
12
|
+
let debounceTimer;
|
|
13
|
+
return {
|
|
14
|
+
name: 'goodie',
|
|
15
|
+
enforce: 'pre',
|
|
16
|
+
configResolved(config) {
|
|
17
|
+
resolved = resolveOptions(userOptions, config.root);
|
|
18
|
+
},
|
|
19
|
+
buildStart() {
|
|
20
|
+
const outcome = runRebuild(resolved);
|
|
21
|
+
if (outcome.success) {
|
|
22
|
+
const count = outcome.result.beans.length;
|
|
23
|
+
const warnings = outcome.result.warnings;
|
|
24
|
+
console.log(`[goodie] Transform complete: ${count} bean(s) registered.`);
|
|
25
|
+
for (const w of warnings) {
|
|
26
|
+
console.warn(`[goodie] Warning: ${w}`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
throw outcome.error;
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
handleHotUpdate(ctx) {
|
|
34
|
+
const filePath = ctx.file;
|
|
35
|
+
// Only process .ts files
|
|
36
|
+
if (!filePath.endsWith('.ts'))
|
|
37
|
+
return;
|
|
38
|
+
// Skip the generated output file to prevent infinite loops
|
|
39
|
+
const normalizedOutput = path.normalize(resolved.outputPath);
|
|
40
|
+
const normalizedFile = path.normalize(filePath);
|
|
41
|
+
if (normalizedFile === normalizedOutput)
|
|
42
|
+
return;
|
|
43
|
+
// Debounced rebuild
|
|
44
|
+
if (debounceTimer !== undefined) {
|
|
45
|
+
clearTimeout(debounceTimer);
|
|
46
|
+
}
|
|
47
|
+
const { server } = ctx;
|
|
48
|
+
debounceTimer = setTimeout(() => {
|
|
49
|
+
debounceTimer = undefined;
|
|
50
|
+
const outcome = runRebuild(resolved);
|
|
51
|
+
if (outcome.success) {
|
|
52
|
+
const count = outcome.result.beans.length;
|
|
53
|
+
console.log(`[goodie] Rebuild complete: ${count} bean(s) registered.`);
|
|
54
|
+
for (const w of outcome.result.warnings) {
|
|
55
|
+
console.warn(`[goodie] Warning: ${w}`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
console.error(`[goodie] Rebuild failed: ${outcome.error.message}`);
|
|
60
|
+
server.ws.send({
|
|
61
|
+
type: 'error',
|
|
62
|
+
err: {
|
|
63
|
+
message: outcome.error.message,
|
|
64
|
+
stack: outcome.error.stack ?? '',
|
|
65
|
+
plugin: 'goodie',
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}, resolved.debounceMs);
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
//# sourceM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B,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TransformResult } from '@goodie-ts/transformer';
|
|
2
|
+
import type { ResolvedOptions } from './options.js';
|
|
3
|
+
export type RebuildSuccess = {
|
|
4
|
+
success: true;
|
|
5
|
+
result: TransformResult;
|
|
6
|
+
};
|
|
7
|
+
export type RebuildFailure = {
|
|
8
|
+
success: false;
|
|
9
|
+
error: Error;
|
|
10
|
+
};
|
|
11
|
+
export type RebuildOutcome = RebuildSuccess | RebuildFailure;
|
|
12
|
+
/**
|
|
13
|
+
* Run the full DI transform pipeline, returning a discriminated union.
|
|
14
|
+
* This is the single swap-point for incremental rebuilds later.
|
|
15
|
+
*/
|
|
16
|
+
export declare function runRebuild(options: ResolvedOptions): RebuildOutcome;
|
|
17
|
+
//# sourceMappingURL=rebuild.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rebuild.d.ts","sourceRoot":"","sources":["../src/rebuild.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,cAAc,GAAG;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AACxE,MAAM,MAAM,cAAc,GAAG;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC;AAC9D,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG,cAAc,CAAC;AAE7D;;;GAGG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,eAAe,GAAG,cAAc,CAiBnE"}
|
package/dist/rebuild.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TransformerError, transform } from '@goodie-ts/transformer';
|
|
2
|
+
/**
|
|
3
|
+
* Run the full DI transform pipeline, returning a discriminated union.
|
|
4
|
+
* This is the single swap-point for incremental rebuilds later.
|
|
5
|
+
*/
|
|
6
|
+
export function runRebuild(options) {
|
|
7
|
+
try {
|
|
8
|
+
const result = transform({
|
|
9
|
+
tsConfigFilePath: options.tsConfigPath,
|
|
10
|
+
outputPath: options.outputPath,
|
|
11
|
+
include: options.include,
|
|
12
|
+
});
|
|
13
|
+
return { success: true, result };
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
if (error instanceof TransformerError) {
|
|
17
|
+
return { success: false, error };
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
success: false,
|
|
21
|
+
error: error instanceof Error ? error : new Error(String(error)),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=rebuild.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rebuild.js","sourceRoot":"","sources":["../src/rebuild.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAOrE;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,OAAwB;IACjD,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,SAAS,CAAC;YACvB,gBAAgB,EAAE,OAAO,CAAC,YAAY;YACtC,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACnC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,gBAAgB,EAAE,CAAC;YACtC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;QACnC,CAAC;QACD,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SACjE,CAAC;IACJ,CAAC;AACH,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@goodie-ts/vite-plugin",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Vite plugin for goodie-ts compile-time dependency injection",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/GOOD-Code-ApS/goodie.git",
|
|
10
|
+
"directory": "packages/vite-plugin"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"types": "dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@goodie-ts/transformer": "0.1.0"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"vite": "^5.0.0 || ^6.0.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"vite": "^6.0.0"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsc",
|
|
37
|
+
"clean": "rm -rf dist *.tsbuildinfo"
|
|
38
|
+
}
|
|
39
|
+
}
|