@powerlines/plugin-nodejs 0.1.186 → 0.1.188
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/dist/components/env.cjs
CHANGED
|
@@ -2,6 +2,7 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
3
|
let __alloy_js_core = require("@alloy-js/core");
|
|
4
4
|
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
5
|
+
let __powerlines_plugin_alloy_core_components_spacing = require("@powerlines/plugin-alloy/core/components/spacing");
|
|
5
6
|
let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
|
|
6
7
|
let __powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
|
|
7
8
|
let __powerlines_plugin_env_components_env = require("@powerlines/plugin-env/components/env");
|
|
@@ -33,8 +34,7 @@ function NodeJsEnvBuiltin(props) {
|
|
|
33
34
|
doc: "An indicator specifying whether the current operating system is MacOS (darwin kernel).",
|
|
34
35
|
initializer: __alloy_js_core.code`/^win/i.test(process.platform); `
|
|
35
36
|
}),
|
|
36
|
-
(0, __alloy_js_core_jsx_runtime.
|
|
37
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
37
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
38
38
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
|
|
39
39
|
"export": true,
|
|
40
40
|
"const": true,
|
|
@@ -42,8 +42,7 @@ function NodeJsEnvBuiltin(props) {
|
|
|
42
42
|
doc: "An indicator specifying whether the current operating system is Linux.",
|
|
43
43
|
initializer: __alloy_js_core.code`/^linux/i.test(process.platform); `
|
|
44
44
|
}),
|
|
45
|
-
(0, __alloy_js_core_jsx_runtime.
|
|
46
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
45
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
47
46
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
|
|
48
47
|
"export": true,
|
|
49
48
|
"const": true,
|
|
@@ -51,22 +50,19 @@ function NodeJsEnvBuiltin(props) {
|
|
|
51
50
|
doc: "An indicator specifying whether the current operating system is MacOS (darwin kernel).",
|
|
52
51
|
initializer: __alloy_js_core.code`/^darwin/i.test(process.platform); `
|
|
53
52
|
}),
|
|
54
|
-
(0, __alloy_js_core_jsx_runtime.
|
|
55
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
53
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
56
54
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
|
|
57
55
|
"const": true,
|
|
58
56
|
name: "homedir",
|
|
59
57
|
initializer: __alloy_js_core.code`os.homedir(); `
|
|
60
58
|
}),
|
|
61
|
-
(0, __alloy_js_core_jsx_runtime.
|
|
62
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
59
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
63
60
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
|
|
64
61
|
"const": true,
|
|
65
62
|
name: "tmpdir",
|
|
66
63
|
initializer: __alloy_js_core.code`os.tmpdir(); `
|
|
67
64
|
}),
|
|
68
|
-
(0, __alloy_js_core_jsx_runtime.
|
|
69
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
65
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
70
66
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
71
67
|
heading: "The environment path types for storing things like data, config, logs, and cache in the current runtime environment.",
|
|
72
68
|
get children() {
|
|
@@ -78,16 +74,14 @@ function NodeJsEnvBuiltin(props) {
|
|
|
78
74
|
name: "EnvPathType",
|
|
79
75
|
children: __alloy_js_core.code`"data" | "config" | "cache" | "log" | "temp"; `
|
|
80
76
|
}),
|
|
81
|
-
(0, __alloy_js_core_jsx_runtime.
|
|
82
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
77
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
83
78
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "The environment paths for storing things like data, config, logs, and cache in the current runtime environment." }),
|
|
84
79
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.TypeDeclaration, {
|
|
85
80
|
"export": true,
|
|
86
81
|
name: "EnvPaths",
|
|
87
82
|
children: __alloy_js_core.code`Record<EnvPathType, string>; `
|
|
88
83
|
}),
|
|
89
|
-
(0, __alloy_js_core_jsx_runtime.
|
|
90
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
84
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
91
85
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
92
86
|
heading: "The resolved application directories based on the current operating system and environment variables.",
|
|
93
87
|
get children() {
|
|
@@ -169,8 +163,7 @@ function NodeJsEnvBuiltin(props) {
|
|
|
169
163
|
} as EnvPaths; `;
|
|
170
164
|
}
|
|
171
165
|
}),
|
|
172
|
-
(0, __alloy_js_core_jsx_runtime.
|
|
173
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
166
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
174
167
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
175
168
|
get when() {
|
|
176
169
|
return Boolean(children);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.cts","names":[],"sources":["../../src/components/env.tsx"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"env.d.cts","names":[],"sources":["../../src/components/env.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAsCgB,iBAAA,gBAAA,CAAwB,KAAA,EAAA,eAAe,CAAA,EAAA,eAAA,CAAA,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.mts","names":[],"sources":["../../src/components/env.tsx"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"env.d.mts","names":[],"sources":["../../src/components/env.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAsCgB,iBAAA,gBAAA,CAAwB,KAAA,EAAA,eAAe,CAAA,EAAA,eAAA,CAAA,QAAA"}
|
package/dist/components/env.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { createComponent,
|
|
1
|
+
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
2
2
|
import { Show, code, splitProps } from "@alloy-js/core";
|
|
3
3
|
import { TypeDeclaration, VarDeclaration } from "@alloy-js/typescript";
|
|
4
|
+
import { Spacing } from "@powerlines/plugin-alloy/core/components/spacing";
|
|
4
5
|
import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
|
|
5
6
|
import { TSDoc, TSDocRemarks } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
|
|
6
7
|
import { EnvBuiltin } from "@powerlines/plugin-env/components/env";
|
|
@@ -31,8 +32,7 @@ function NodeJsEnvBuiltin(props) {
|
|
|
31
32
|
doc: "An indicator specifying whether the current operating system is MacOS (darwin kernel).",
|
|
32
33
|
initializer: code`/^win/i.test(process.platform); `
|
|
33
34
|
}),
|
|
34
|
-
|
|
35
|
-
createIntrinsic("hbr", {}),
|
|
35
|
+
createComponent(Spacing, {}),
|
|
36
36
|
createComponent(VarDeclaration, {
|
|
37
37
|
"export": true,
|
|
38
38
|
"const": true,
|
|
@@ -40,8 +40,7 @@ function NodeJsEnvBuiltin(props) {
|
|
|
40
40
|
doc: "An indicator specifying whether the current operating system is Linux.",
|
|
41
41
|
initializer: code`/^linux/i.test(process.platform); `
|
|
42
42
|
}),
|
|
43
|
-
|
|
44
|
-
createIntrinsic("hbr", {}),
|
|
43
|
+
createComponent(Spacing, {}),
|
|
45
44
|
createComponent(VarDeclaration, {
|
|
46
45
|
"export": true,
|
|
47
46
|
"const": true,
|
|
@@ -49,22 +48,19 @@ function NodeJsEnvBuiltin(props) {
|
|
|
49
48
|
doc: "An indicator specifying whether the current operating system is MacOS (darwin kernel).",
|
|
50
49
|
initializer: code`/^darwin/i.test(process.platform); `
|
|
51
50
|
}),
|
|
52
|
-
|
|
53
|
-
createIntrinsic("hbr", {}),
|
|
51
|
+
createComponent(Spacing, {}),
|
|
54
52
|
createComponent(VarDeclaration, {
|
|
55
53
|
"const": true,
|
|
56
54
|
name: "homedir",
|
|
57
55
|
initializer: code`os.homedir(); `
|
|
58
56
|
}),
|
|
59
|
-
|
|
60
|
-
createIntrinsic("hbr", {}),
|
|
57
|
+
createComponent(Spacing, {}),
|
|
61
58
|
createComponent(VarDeclaration, {
|
|
62
59
|
"const": true,
|
|
63
60
|
name: "tmpdir",
|
|
64
61
|
initializer: code`os.tmpdir(); `
|
|
65
62
|
}),
|
|
66
|
-
|
|
67
|
-
createIntrinsic("hbr", {}),
|
|
63
|
+
createComponent(Spacing, {}),
|
|
68
64
|
createComponent(TSDoc, {
|
|
69
65
|
heading: "The environment path types for storing things like data, config, logs, and cache in the current runtime environment.",
|
|
70
66
|
get children() {
|
|
@@ -76,16 +72,14 @@ function NodeJsEnvBuiltin(props) {
|
|
|
76
72
|
name: "EnvPathType",
|
|
77
73
|
children: code`"data" | "config" | "cache" | "log" | "temp"; `
|
|
78
74
|
}),
|
|
79
|
-
|
|
80
|
-
createIntrinsic("hbr", {}),
|
|
75
|
+
createComponent(Spacing, {}),
|
|
81
76
|
createComponent(TSDoc, { heading: "The environment paths for storing things like data, config, logs, and cache in the current runtime environment." }),
|
|
82
77
|
createComponent(TypeDeclaration, {
|
|
83
78
|
"export": true,
|
|
84
79
|
name: "EnvPaths",
|
|
85
80
|
children: code`Record<EnvPathType, string>; `
|
|
86
81
|
}),
|
|
87
|
-
|
|
88
|
-
createIntrinsic("hbr", {}),
|
|
82
|
+
createComponent(Spacing, {}),
|
|
89
83
|
createComponent(TSDoc, {
|
|
90
84
|
heading: "The resolved application directories based on the current operating system and environment variables.",
|
|
91
85
|
get children() {
|
|
@@ -167,8 +161,7 @@ function NodeJsEnvBuiltin(props) {
|
|
|
167
161
|
} as EnvPaths; `;
|
|
168
162
|
}
|
|
169
163
|
}),
|
|
170
|
-
|
|
171
|
-
createIntrinsic("hbr", {}),
|
|
164
|
+
createComponent(Spacing, {}),
|
|
172
165
|
createComponent(Show, {
|
|
173
166
|
get when() {
|
|
174
167
|
return Boolean(children);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.mjs","names":["code","Show","splitProps","TypeDeclaration","VarDeclaration","usePowerlines","TSDoc","TSDocRemarks","EnvBuiltin","kebabCase","titleCase","defu","NodeJsEnvBuiltin","props","children","rest","context","_$createComponent","_$mergeProps","defaultConfig","imports","name","doc","initializer","_$createIntrinsic","heading","config","organization","when","Boolean"],"sources":["../../src/components/env.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, Show, splitProps } from \"@alloy-js/core\";\nimport { TypeDeclaration, VarDeclaration } from \"@alloy-js/typescript\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport {\n TSDoc,\n TSDocRemarks\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport {\n EnvBuiltin,\n EnvBuiltinProps\n} from \"@powerlines/plugin-env/components/env\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport defu from \"defu\";\nimport { NodeJsPluginContext } from \"../types\";\n\n/**\n * Generates the NodeJs environment configuration module for the Powerlines project.\n */\nexport function NodeJsEnvBuiltin(props: EnvBuiltinProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n const context = usePowerlines<NodeJsPluginContext>();\n\n return (\n <EnvBuiltin\n defaultConfig={code`process.env`}\n {...rest}\n imports={defu(\n {\n \"node:os\": \"os\",\n \"node:path\": [\"basename\", \"join\"]\n },\n rest.imports ?? {}\n )}>\n <VarDeclaration\n export\n const\n name=\"isWindows\"\n doc=\"An indicator specifying whether the current operating system is MacOS (darwin kernel).\"\n initializer={code`/^win/i.test(process.platform); `}\n />\n <hbr />\n <hbr />\n <VarDeclaration\n export\n const\n name=\"isLinux\"\n doc=\"An indicator specifying whether the current operating system is Linux.\"\n initializer={code`/^linux/i.test(process.platform); `}\n />\n <hbr />\n <hbr />\n <VarDeclaration\n export\n const\n name=\"isMacOS\"\n doc=\"An indicator specifying whether the current operating system is MacOS (darwin kernel).\"\n initializer={code`/^darwin/i.test(process.platform); `}\n />\n <hbr />\n <hbr />\n <VarDeclaration const name=\"homedir\" initializer={code`os.homedir(); `} />\n <hbr />\n <hbr />\n <VarDeclaration const name=\"tmpdir\" initializer={code`os.tmpdir(); `} />\n <hbr />\n <hbr />\n <TSDoc heading=\"The environment path types for storing things like data, config, logs, and cache in the current runtime environment.\">\n <TSDocRemarks>\n {`These environment path types are accessed in the {@link EnvPaths} type. `}\n </TSDocRemarks>\n </TSDoc>\n <TypeDeclaration export name=\"EnvPathType\">\n {code`\"data\" | \"config\" | \"cache\" | \"log\" | \"temp\"; `}\n </TypeDeclaration>\n <hbr />\n <hbr />\n <TSDoc heading=\"The environment paths for storing things like data, config, logs, and cache in the current runtime environment.\" />\n <TypeDeclaration export name=\"EnvPaths\">\n {code`Record<EnvPathType, string>; `}\n </TypeDeclaration>\n <hbr />\n <hbr />\n <TSDoc heading=\"The resolved application directories based on the current operating system and environment variables.\">\n <TSDocRemarks>\n {code`If the \\`DATA_DIR\\`, \\`CONFIG_DIR\\`, \\`CACHE_DIR\\`, \\`LOG_DIR\\`, or \\`TEMP_DIR\\` environment variables are set, they will be treated as overrides and used by default. If the environment variables are not set, the paths are determined based on the specific conventions for each operating system (with additional overrides available through operating system specific environment variables):\n - **Linux**: directories are generally created in \\`~/.config/<name>\\` (this is determined via the [XDG Base Directory spec](https://specifications.freedesktop.org/basedir-spec/latest/))\n - **Windows**: directories are generally created in \\`%AppData%/<name>\\`\n - **MacOS**: directories are generally created in \\`~/Library/Application Support/<name>\\`\n `}\n </TSDocRemarks>\n </TSDoc>\n <VarDeclaration\n export\n const\n name=\"paths\"\n initializer={code`isMacOS\n ? {\n data: String(env.DATA_DIR)\n ? join(String(env.DATA_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(homedir, \"Library\", \"Application Support\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n config: String(env.CONFIG_DIR)\n ? join(String(env.CONFIG_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(homedir, \"Library\", \"Preferences\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n cache: String(env.CACHE_DIR)\n ? join(String(env.CACHE_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(homedir, \"Library\", \"Caches\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n log: String(env.LOG_DIR)\n ? join(String(env.LOG_DIR), \"${titleCase(context.config.name)}\")\n : join(homedir, \"Library\", \"Logs\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n temp: String(env.TEMP_DIR)\n ? join(String(env.TEMP_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(tmpdir, \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\")\n }\n : isWindows\n ? {\n data: String(env.DATA_DIR)\n ? join(String(env.DATA_DIR), \"${titleCase(context.config.name)}\")\n : join(env.LOCALAPPDATA || join(homedir, \"AppData\", \"Local\"), \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\", \"Data\"),\n config: String(env.CONFIG_DIR)\n ? join(env.CONFIG_DIR!, \"${titleCase(context.config.name)}\")\n : join(env.APPDATA || join(homedir, \"AppData\", \"Roaming\"), \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\", \"Config\"),\n cache: String(env.CACHE_DIR)\n ? join(String(env.CACHE_DIR), \"${titleCase(context.config.name)}\")\n : join(env.LOCALAPPDATA || join(homedir, \"AppData\", \"Local\"), \"Cache\", \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\"),\n log: String(env.LOG_DIR)\n ? join(String(env.LOG_DIR), \"${titleCase(context.config.name)}\")\n : join(env.LOCALAPPDATA || join(homedir, \"AppData\", \"Local\"), \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\", \"Log\"),\n temp: String(env.TEMP_DIR)\n ? join(String(env.TEMP_DIR), \"${titleCase(context.config.name)}\")\n : join(tmpdir, \"${titleCase(context.config.organization)}\", \"${titleCase(context.config.name)}\")\n }\n :\n {\n data: String(env.DATA_DIR)\n ? join(String(env.DATA_DIR), \"${kebabCase(context.config.name)}\")\n : join(\n env.XDG_DATA_HOME || join(homedir, \".local\", \"share\"),\n \"${kebabCase(context.config.organization)}\",\n \"${kebabCase(context.config.name)}\"\n ),\n config: String(env.CONFIG_DIR)\n ? join(String(env.CONFIG_DIR), \"${kebabCase(context.config.name)}\")\n : join(\n env.XDG_CONFIG_HOME || join(homedir, \".config\"),\n \"${kebabCase(context.config.organization)}\",\n \"${kebabCase(context.config.name)}\"\n ),\n cache: String(env.CACHE_DIR)\n ? join(String(env.CACHE_DIR), \"${kebabCase(context.config.name)}\")\n : join(env.XDG_CACHE_HOME || join(homedir, \".cache\"), \"${kebabCase(context.config.organization)}\", \"${kebabCase(\n context.config.name\n )}\"),\n log: String(env.LOG_DIR)\n ? join(String(env.LOG_DIR), \"${kebabCase(context.config.name)}\")\n : join(env.XDG_STATE_HOME || join(homedir, \".local\", \"state\"), \"${kebabCase(context.config.organization)}\", \"${kebabCase(\n context.config.name\n )}\"),\n temp: String(env.TEMP_DIR)\n ? join(String(env.TEMP_DIR), \"${kebabCase(context.config.name)}\")\n : (env.DEVENV_RUNTIME || env.XDG_RUNTIME_DIR\n ? join((env.DEVENV_RUNTIME || env.XDG_RUNTIME_DIR)!, \"${kebabCase(context.config.organization)}\", \"${kebabCase(\n context.config.name\n )}\")\n : join(tmpdir, basename(homedir), \"${kebabCase(context.config.organization)}\", \"${kebabCase(context.config.name)}\"))\n } as EnvPaths; `}\n />\n <hbr />\n <hbr />\n <Show when={Boolean(children)}>{children}</Show>\n </EnvBuiltin>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAqCA,SAAgBY,iBAAiBC,OAAwB;CACvD,MAAM,CAAC,EAAEC,YAAYC,QAAQb,WAAWW,OAAO,CAAC,WAAW,CAAC;CAE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,OAAOL,KAChB,CAAA;yDACoCZ,UAAUO,QAAQU,OAAOC,aAAa,CAAA,MAAOlB,UAAUO,QAAQU,OAAOL,KAAK,CAAA;;;KAC1G,CAAA;IAAAG,gBAAA,OAAA,EAAA,CAAA;IAAAA,gBAAA,OAAA,EAAA,CAAA;IAAAP,gBAInBhB,MAAI;KAAA,IAAC2B,OAAI;AAAA,aAAEC,QAAQf,SAAS;;KAAGA;KAAQ,CAAA;IAAA;;EAAA,CAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"env.mjs","names":["code","Show","splitProps","TypeDeclaration","VarDeclaration","Spacing","usePowerlines","TSDoc","TSDocRemarks","EnvBuiltin","kebabCase","titleCase","defu","NodeJsEnvBuiltin","props","children","rest","context","_$createComponent","_$mergeProps","defaultConfig","imports","name","doc","initializer","heading","config","organization","when","Boolean"],"sources":["../../src/components/env.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, Show, splitProps } from \"@alloy-js/core\";\nimport { TypeDeclaration, VarDeclaration } from \"@alloy-js/typescript\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport {\n TSDoc,\n TSDocRemarks\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport {\n EnvBuiltin,\n EnvBuiltinProps\n} from \"@powerlines/plugin-env/components/env\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport defu from \"defu\";\nimport { NodeJsPluginContext } from \"../types\";\n\n/**\n * Generates the NodeJs environment configuration module for the Powerlines project.\n */\nexport function NodeJsEnvBuiltin(props: EnvBuiltinProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n const context = usePowerlines<NodeJsPluginContext>();\n\n return (\n <EnvBuiltin\n defaultConfig={code`process.env`}\n {...rest}\n imports={defu(\n {\n \"node:os\": \"os\",\n \"node:path\": [\"basename\", \"join\"]\n },\n rest.imports ?? {}\n )}>\n <VarDeclaration\n export\n const\n name=\"isWindows\"\n doc=\"An indicator specifying whether the current operating system is MacOS (darwin kernel).\"\n initializer={code`/^win/i.test(process.platform); `}\n />\n <Spacing />\n <VarDeclaration\n export\n const\n name=\"isLinux\"\n doc=\"An indicator specifying whether the current operating system is Linux.\"\n initializer={code`/^linux/i.test(process.platform); `}\n />\n <Spacing />\n <VarDeclaration\n export\n const\n name=\"isMacOS\"\n doc=\"An indicator specifying whether the current operating system is MacOS (darwin kernel).\"\n initializer={code`/^darwin/i.test(process.platform); `}\n />\n <Spacing />\n <VarDeclaration const name=\"homedir\" initializer={code`os.homedir(); `} />\n <Spacing />\n <VarDeclaration const name=\"tmpdir\" initializer={code`os.tmpdir(); `} />\n <Spacing />\n <TSDoc heading=\"The environment path types for storing things like data, config, logs, and cache in the current runtime environment.\">\n <TSDocRemarks>\n {`These environment path types are accessed in the {@link EnvPaths} type. `}\n </TSDocRemarks>\n </TSDoc>\n <TypeDeclaration export name=\"EnvPathType\">\n {code`\"data\" | \"config\" | \"cache\" | \"log\" | \"temp\"; `}\n </TypeDeclaration>\n <Spacing />\n <TSDoc heading=\"The environment paths for storing things like data, config, logs, and cache in the current runtime environment.\" />\n <TypeDeclaration export name=\"EnvPaths\">\n {code`Record<EnvPathType, string>; `}\n </TypeDeclaration>\n <Spacing />\n <TSDoc heading=\"The resolved application directories based on the current operating system and environment variables.\">\n <TSDocRemarks>\n {code`If the \\`DATA_DIR\\`, \\`CONFIG_DIR\\`, \\`CACHE_DIR\\`, \\`LOG_DIR\\`, or \\`TEMP_DIR\\` environment variables are set, they will be treated as overrides and used by default. If the environment variables are not set, the paths are determined based on the specific conventions for each operating system (with additional overrides available through operating system specific environment variables):\n - **Linux**: directories are generally created in \\`~/.config/<name>\\` (this is determined via the [XDG Base Directory spec](https://specifications.freedesktop.org/basedir-spec/latest/))\n - **Windows**: directories are generally created in \\`%AppData%/<name>\\`\n - **MacOS**: directories are generally created in \\`~/Library/Application Support/<name>\\`\n `}\n </TSDocRemarks>\n </TSDoc>\n <VarDeclaration\n export\n const\n name=\"paths\"\n initializer={code`isMacOS\n ? {\n data: String(env.DATA_DIR)\n ? join(String(env.DATA_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(homedir, \"Library\", \"Application Support\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n config: String(env.CONFIG_DIR)\n ? join(String(env.CONFIG_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(homedir, \"Library\", \"Preferences\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n cache: String(env.CACHE_DIR)\n ? join(String(env.CACHE_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(homedir, \"Library\", \"Caches\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n log: String(env.LOG_DIR)\n ? join(String(env.LOG_DIR), \"${titleCase(context.config.name)}\")\n : join(homedir, \"Library\", \"Logs\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n temp: String(env.TEMP_DIR)\n ? join(String(env.TEMP_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(tmpdir, \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\")\n }\n : isWindows\n ? {\n data: String(env.DATA_DIR)\n ? join(String(env.DATA_DIR), \"${titleCase(context.config.name)}\")\n : join(env.LOCALAPPDATA || join(homedir, \"AppData\", \"Local\"), \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\", \"Data\"),\n config: String(env.CONFIG_DIR)\n ? join(env.CONFIG_DIR!, \"${titleCase(context.config.name)}\")\n : join(env.APPDATA || join(homedir, \"AppData\", \"Roaming\"), \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\", \"Config\"),\n cache: String(env.CACHE_DIR)\n ? join(String(env.CACHE_DIR), \"${titleCase(context.config.name)}\")\n : join(env.LOCALAPPDATA || join(homedir, \"AppData\", \"Local\"), \"Cache\", \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\"),\n log: String(env.LOG_DIR)\n ? join(String(env.LOG_DIR), \"${titleCase(context.config.name)}\")\n : join(env.LOCALAPPDATA || join(homedir, \"AppData\", \"Local\"), \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\", \"Log\"),\n temp: String(env.TEMP_DIR)\n ? join(String(env.TEMP_DIR), \"${titleCase(context.config.name)}\")\n : join(tmpdir, \"${titleCase(context.config.organization)}\", \"${titleCase(context.config.name)}\")\n }\n :\n {\n data: String(env.DATA_DIR)\n ? join(String(env.DATA_DIR), \"${kebabCase(context.config.name)}\")\n : join(\n env.XDG_DATA_HOME || join(homedir, \".local\", \"share\"),\n \"${kebabCase(context.config.organization)}\",\n \"${kebabCase(context.config.name)}\"\n ),\n config: String(env.CONFIG_DIR)\n ? join(String(env.CONFIG_DIR), \"${kebabCase(context.config.name)}\")\n : join(\n env.XDG_CONFIG_HOME || join(homedir, \".config\"),\n \"${kebabCase(context.config.organization)}\",\n \"${kebabCase(context.config.name)}\"\n ),\n cache: String(env.CACHE_DIR)\n ? join(String(env.CACHE_DIR), \"${kebabCase(context.config.name)}\")\n : join(env.XDG_CACHE_HOME || join(homedir, \".cache\"), \"${kebabCase(context.config.organization)}\", \"${kebabCase(\n context.config.name\n )}\"),\n log: String(env.LOG_DIR)\n ? join(String(env.LOG_DIR), \"${kebabCase(context.config.name)}\")\n : join(env.XDG_STATE_HOME || join(homedir, \".local\", \"state\"), \"${kebabCase(context.config.organization)}\", \"${kebabCase(\n context.config.name\n )}\"),\n temp: String(env.TEMP_DIR)\n ? join(String(env.TEMP_DIR), \"${kebabCase(context.config.name)}\")\n : (env.DEVENV_RUNTIME || env.XDG_RUNTIME_DIR\n ? join((env.DEVENV_RUNTIME || env.XDG_RUNTIME_DIR)!, \"${kebabCase(context.config.organization)}\", \"${kebabCase(\n context.config.name\n )}\")\n : join(tmpdir, basename(homedir), \"${kebabCase(context.config.organization)}\", \"${kebabCase(context.config.name)}\"))\n } as EnvPaths; `}\n />\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </EnvBuiltin>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAsCA,SAAgBa,iBAAiBC,OAAwB;CACvD,MAAM,CAAC,EAAEC,YAAYC,QAAQd,WAAWY,OAAO,CAAC,WAAW,CAAC;CAE5D,MAAMG,UAAUX,eAAoC;AAEpD,QAAAY,gBACGT,YAAUU,WAAA,EACTC,eAAepB,IAAI,eAAa,EAC5BgB,MAAI;EAAA,IACRK,UAAO;AAAA,UAAET,KACP;IACE,WAAW;IACX,aAAa,CAAC,YAAY,OAAM;IACjC,EACDI,KAAKK,WAAW,EAClB,CAAC;;EAAA,IAAAN,WAAA;AAAA,UAAA;IAAAG,gBACAd,gBAAc;KAAA,UAAA;KAAA,SAAA;KAGbkB,MAAI;KACJC,KAAG;KACHC,aAAaxB,IAAI;KAAkC,CAAA;IAAAkB,gBAEpDb,SAAO,EAAA,CAAA;IAAAa,gBACPd,gBAAc;KAAA,UAAA;KAAA,SAAA;KAGbkB,MAAI;KACJC,KAAG;KACHC,aAAaxB,IAAI;KAAoC,CAAA;IAAAkB,gBAEtDb,SAAO,EAAA,CAAA;IAAAa,gBACPd,gBAAc;KAAA,UAAA;KAAA,SAAA;KAGbkB,MAAI;KACJC,KAAG;KACHC,aAAaxB,IAAI;KAAqC,CAAA;IAAAkB,gBAEvDb,SAAO,EAAA,CAAA;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DAGJZ,UAAUO,QAAQS,OAAOJ,KAAK,CAAA;yEACNZ,UAAUO,QAAQS,OAAOC,aAAa,CAAA,MAAOjB,UACpGO,QAAQS,OAAOJ,KAChB,CAAA;;+CAE8BZ,UAAUO,QAAQS,OAAOJ,KAAK,CAAA;kFACKZ,UAAUO,QAAQS,OAAOC,aAAa,CAAA,MAAOjB,UAC7GO,QAAQS,OAAOJ,KAChB,CAAA;;gDAE+BZ,UAAUO,QAAQS,OAAOJ,KAAK,CAAA;;4EAEFZ,UAAUO,QAAQS,OAAOC,aAAa,CAAA,MAAOjB,UACnGO,QAAQS,OAAOJ,KAChB,CAAA;yDACoCZ,UAAUO,QAAQS,OAAOC,aAAa,CAAA,MAAOjB,UAAUO,QAAQS,OAAOJ,KAAK,CAAA;;;KAC1G,CAAA;IAAAJ,gBAEnBb,SAAO,EAAA,CAAA;IAAAa,gBACPjB,MAAI;KAAA,IAAC2B,OAAI;AAAA,aAAEC,QAAQd,SAAS;;KAAGA;KAAQ,CAAA;IAAA;;EAAA,CAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-nodejs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.188",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for building a Node.js application.",
|
|
6
6
|
"repository": {
|
|
@@ -119,17 +119,17 @@
|
|
|
119
119
|
"dependencies": {
|
|
120
120
|
"@alloy-js/core": "0.23.0-dev.8",
|
|
121
121
|
"@alloy-js/typescript": "0.23.0-dev.4",
|
|
122
|
-
"@powerlines/plugin-alloy": "^0.23.
|
|
123
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
124
|
-
"@powerlines/plugin-env": "^0.15.
|
|
125
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
122
|
+
"@powerlines/plugin-alloy": "^0.23.4",
|
|
123
|
+
"@powerlines/plugin-babel": "^0.12.287",
|
|
124
|
+
"@powerlines/plugin-env": "^0.15.193",
|
|
125
|
+
"@powerlines/plugin-plugin": "^0.12.229",
|
|
126
126
|
"@storm-software/config-tools": "^1.189.0",
|
|
127
127
|
"@stryke/string-format": "^0.13.7",
|
|
128
128
|
"defu": "^6.1.4",
|
|
129
|
-
"powerlines": "^0.38.
|
|
129
|
+
"powerlines": "^0.38.45"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": { "@types/node": "^24.10.13" },
|
|
132
132
|
"publishConfig": { "access": "public" },
|
|
133
133
|
"types": "./dist/index.d.cts",
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "1eefcb765bbae3b4b0386ac52028fdf6978d961a"
|
|
135
135
|
}
|