@powerlines/plugin-nodejs 0.1.549 → 0.1.551
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.
|
@@ -3,9 +3,9 @@ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
|
3
3
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
4
|
let _alloy_js_core = require("@alloy-js/core");
|
|
5
5
|
let _alloy_js_typescript = require("@alloy-js/typescript");
|
|
6
|
-
let
|
|
6
|
+
let _power_plant_alloy_js_core_components_spacing = require("@power-plant/alloy-js/core/components/spacing");
|
|
7
|
+
let _power_plant_alloy_js_typescript_components_tsdoc = require("@power-plant/alloy-js/typescript/components/tsdoc");
|
|
7
8
|
let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
|
|
8
|
-
let _powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
|
|
9
9
|
let _powerlines_plugin_env_components_env_builtin = require("@powerlines/plugin-env/components/env-builtin");
|
|
10
10
|
let _stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
11
11
|
let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
@@ -35,7 +35,7 @@ function NodeJsEnvBuiltin(props) {
|
|
|
35
35
|
doc: "An indicator specifying whether the current operating system is MacOS (darwin kernel).",
|
|
36
36
|
initializer: _alloy_js_core.code`/^win/i.test(process.platform); `
|
|
37
37
|
}),
|
|
38
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
38
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
39
39
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
40
40
|
"export": true,
|
|
41
41
|
"const": true,
|
|
@@ -43,7 +43,7 @@ function NodeJsEnvBuiltin(props) {
|
|
|
43
43
|
doc: "An indicator specifying whether the current operating system is Linux.",
|
|
44
44
|
initializer: _alloy_js_core.code`/^linux/i.test(process.platform); `
|
|
45
45
|
}),
|
|
46
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
46
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
47
47
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
48
48
|
"export": true,
|
|
49
49
|
"const": true,
|
|
@@ -51,23 +51,23 @@ function NodeJsEnvBuiltin(props) {
|
|
|
51
51
|
doc: "An indicator specifying whether the current operating system is MacOS (darwin kernel).",
|
|
52
52
|
initializer: _alloy_js_core.code`/^darwin/i.test(process.platform); `
|
|
53
53
|
}),
|
|
54
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
54
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
55
55
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
56
56
|
"const": true,
|
|
57
57
|
name: "homedir",
|
|
58
58
|
initializer: _alloy_js_core.code`os.homedir(); `
|
|
59
59
|
}),
|
|
60
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
60
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
61
61
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
62
62
|
"const": true,
|
|
63
63
|
name: "tmpdir",
|
|
64
64
|
initializer: _alloy_js_core.code`os.tmpdir(); `
|
|
65
65
|
}),
|
|
66
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
67
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
66
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
67
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
|
|
68
68
|
heading: "The environment path types for storing things like data, config, logs, and cache in the current runtime environment.",
|
|
69
69
|
get children() {
|
|
70
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
70
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocRemarks, { children: `These environment path types are accessed in the {@link EnvPaths} type. ` });
|
|
71
71
|
}
|
|
72
72
|
}),
|
|
73
73
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeDeclaration, {
|
|
@@ -75,18 +75,18 @@ function NodeJsEnvBuiltin(props) {
|
|
|
75
75
|
name: "EnvPathType",
|
|
76
76
|
children: _alloy_js_core.code`"data" | "config" | "cache" | "log" | "temp"; `
|
|
77
77
|
}),
|
|
78
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
79
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
78
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
79
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "The environment paths for storing things like data, config, logs, and cache in the current runtime environment." }),
|
|
80
80
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeDeclaration, {
|
|
81
81
|
"export": true,
|
|
82
82
|
name: "EnvPaths",
|
|
83
83
|
children: _alloy_js_core.code`Record<EnvPathType, string>; `
|
|
84
84
|
}),
|
|
85
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
86
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
85
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
86
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
|
|
87
87
|
heading: "The resolved application directories based on the current operating system and environment variables.",
|
|
88
88
|
get children() {
|
|
89
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
89
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocRemarks, { children: _alloy_js_core.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):
|
|
90
90
|
- **Linux**: directories are generally created in \`~/.config/<name>\` (this is determined via the [XDG Base Directory spec](https://specifications.freedesktop.org/basedir-spec/latest/))
|
|
91
91
|
- **Windows**: directories are generally created in \`%AppData%/<name>\`
|
|
92
92
|
- **MacOS**: directories are generally created in \`~/Library/Application Support/<name>\`
|
|
@@ -162,7 +162,7 @@ function NodeJsEnvBuiltin(props) {
|
|
|
162
162
|
} as EnvPaths; `;
|
|
163
163
|
}
|
|
164
164
|
}),
|
|
165
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
165
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
166
166
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
167
167
|
get when() {
|
|
168
168
|
return Boolean(children);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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 "@
|
|
4
|
+
import { Spacing } from "@power-plant/alloy-js/core/components/spacing";
|
|
5
|
+
import { TSDoc, TSDocRemarks } from "@power-plant/alloy-js/typescript/components/tsdoc";
|
|
5
6
|
import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
|
|
6
|
-
import { TSDoc, TSDocRemarks } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
|
|
7
7
|
import { EnvBuiltin } from "@powerlines/plugin-env/components/env-builtin";
|
|
8
8
|
import { kebabCase } from "@stryke/string-format/kebab-case";
|
|
9
9
|
import { titleCase } from "@stryke/string-format/title-case";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-nodejs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.551",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for building a Node.js application.",
|
|
6
6
|
"repository": {
|
|
@@ -117,19 +117,20 @@
|
|
|
117
117
|
"files": ["dist/**/*"],
|
|
118
118
|
"keywords": ["nodejs", "powerlines", "storm-software", "powerlines-plugin"],
|
|
119
119
|
"dependencies": {
|
|
120
|
-
"@alloy-js/core": "^0.
|
|
121
|
-
"@alloy-js/typescript": "^0.
|
|
122
|
-
"@
|
|
123
|
-
"@powerlines/plugin-
|
|
124
|
-
"@powerlines/plugin-
|
|
125
|
-
"@powerlines/plugin-
|
|
126
|
-
"@
|
|
127
|
-
"@
|
|
120
|
+
"@alloy-js/core": "^0.24.1",
|
|
121
|
+
"@alloy-js/typescript": "^0.24.0",
|
|
122
|
+
"@power-plant/alloy-js": "^0.0.20",
|
|
123
|
+
"@powerlines/plugin-alloy": "^0.26.239",
|
|
124
|
+
"@powerlines/plugin-babel": "^0.13.142",
|
|
125
|
+
"@powerlines/plugin-env": "^0.16.350",
|
|
126
|
+
"@powerlines/plugin-plugin": "^0.12.558",
|
|
127
|
+
"@storm-software/config-tools": "^1.190.109",
|
|
128
|
+
"@stryke/string-format": "^0.17.38",
|
|
128
129
|
"defu": "^6.1.7",
|
|
129
|
-
"powerlines": "0.47.
|
|
130
|
+
"powerlines": "^0.47.146"
|
|
130
131
|
},
|
|
131
132
|
"devDependencies": { "@types/node": "^25.9.5" },
|
|
132
133
|
"publishConfig": { "access": "public" },
|
|
133
134
|
"types": "./dist/index.d.cts",
|
|
134
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "e86d6fab3bd4d2e2f9f6d05df8df7a07d399857e"
|
|
135
136
|
}
|