@powerlines/plugin-nodejs 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.
Files changed (41) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +304 -0
  3. package/dist/components/env.cjs +3 -0
  4. package/dist/components/env.d.cts +3 -0
  5. package/dist/components/env.d.mts +3 -0
  6. package/dist/components/env.mjs +3 -0
  7. package/dist/components/index.cjs +4 -0
  8. package/dist/components/index.d.cts +4 -0
  9. package/dist/components/index.d.mts +4 -0
  10. package/dist/components/index.mjs +4 -0
  11. package/dist/components-BWLXb7a2.cjs +0 -0
  12. package/dist/components-CXZYcH4q.d.mts +1816 -0
  13. package/dist/components-kh0CpIG2.mjs +1 -0
  14. package/dist/env-CAhIy_H3.cjs +11713 -0
  15. package/dist/env-CUyFiniR.d.cts +107 -0
  16. package/dist/env-IF4XhMjG.mjs +11570 -0
  17. package/dist/env-sRb-Y8mJ.d.mts +89 -0
  18. package/dist/index-CUbWeWHc.d.mts +1 -0
  19. package/dist/index-D6CnpA_r.d.cts +1 -0
  20. package/dist/index-DL0uimUT.d.mts +1 -0
  21. package/dist/index-DWPDThxu.d.cts +1 -0
  22. package/dist/index.cjs +839 -0
  23. package/dist/index.d.cts +13 -0
  24. package/dist/index.d.mts +13 -0
  25. package/dist/index.mjs +828 -0
  26. package/dist/plugin-D7kBf19k.d.cts +2637 -0
  27. package/dist/plugin-JL1BtFku.d.mts +2637 -0
  28. package/dist/plugin-ifZVa20V.mjs +1 -0
  29. package/dist/plugin-pBKbb5K9.cjs +0 -0
  30. package/dist/resolved-zsx09G03.d.cts +1795 -0
  31. package/dist/types/index.cjs +2 -0
  32. package/dist/types/index.d.cts +4 -0
  33. package/dist/types/index.d.mts +4 -0
  34. package/dist/types/index.mjs +4 -0
  35. package/dist/types/plugin.cjs +1 -0
  36. package/dist/types/plugin.d.cts +3 -0
  37. package/dist/types/plugin.d.mts +3 -0
  38. package/dist/types/plugin.mjs +3 -0
  39. package/dist/types-U3zd8PTP.mjs +1 -0
  40. package/dist/types-o3zWarRp.cjs +0 -0
  41. package/package.json +149 -0
@@ -0,0 +1,89 @@
1
+ import { n as TypescriptFileImports, t as ComponentProps, u as StoragePreset } from "./components-CXZYcH4q.mjs";
2
+ import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
3
+ import * as _alloy_js_core0 from "@alloy-js/core";
4
+ import { Children, SourceFileProps } from "@alloy-js/core";
5
+ import { TSModuleScope } from "@alloy-js/typescript";
6
+
7
+ //#region ../plugin-alloy/src/typescript/components/tsdoc.d.ts
8
+
9
+ interface TSDocModuleProps extends ComponentProps {
10
+ /**
11
+ * the prefix for the builtin module name
12
+ *
13
+ * @defaultValue "storm"
14
+ */
15
+ prefix?: string;
16
+ /**
17
+ * The name of the module
18
+ *
19
+ * @remarks
20
+ * This will be used in the `@module` tag as well as the import path for the module, e.g. `storm:<name>`.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * import { MyModule } from "storm:my-module";
25
+ * ```
26
+ */
27
+ name: Children;
28
+ }
29
+ //#endregion
30
+ //#region ../plugin-alloy/src/core/components/source-file.d.ts
31
+ type SourceFileProps$1 = SourceFileProps & ComponentProps & {
32
+ /**
33
+ * The storage preset for the output files.
34
+ *
35
+ * @remarks
36
+ * If not specified, the output mode will be determined by the provided `output.mode` value.
37
+ */
38
+ storage?: StoragePreset;
39
+ /**
40
+ * The metadata associated with the source file.
41
+ *
42
+ * @remarks
43
+ * The values stored in the metadata will be available in the rendering context.
44
+ */
45
+ meta?: Record<string, any>;
46
+ };
47
+ //#endregion
48
+ //#region ../plugin-alloy/src/typescript/components/typescript-file.d.ts
49
+ type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
50
+ hashbang?: Children | true;
51
+ header?: Children;
52
+ imports?: TypescriptFileImports;
53
+ export?: boolean | string;
54
+ tsx?: boolean;
55
+ };
56
+ //#endregion
57
+ //#region ../plugin-alloy/src/typescript/components/builtin-file.d.ts
58
+ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
59
+ /**
60
+ * The runtime module identifier.
61
+ *
62
+ * @remarks
63
+ * This value will be included after the \`storm:\` prefix in the import statement.
64
+ */
65
+ id: string;
66
+ /**
67
+ * The description for the builtin module.
68
+ */
69
+ description?: string;
70
+ /**
71
+ * Whether the file is a TSX file.
72
+ *
73
+ * @defaultValue false
74
+ */
75
+ tsx?: boolean;
76
+ };
77
+ //#endregion
78
+ //#region ../plugin-env/src/components/env.d.ts
79
+ interface EnvBuiltinProps extends Omit<BuiltinFileProps, "id"> {
80
+ defaultConfig?: Children;
81
+ }
82
+ //#endregion
83
+ //#region src/components/env.d.ts
84
+ /**
85
+ * Generates the NodeJs environment configuration module for the Powerlines project.
86
+ */
87
+ declare function NodeJsEnvBuiltin(props: EnvBuiltinProps): _alloy_js_core0.Children;
88
+ //#endregion
89
+ export { NodeJsEnvBuiltin as t };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };