@buildplease/webkit 1.0.4 → 1.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/README.md +16 -3
- package/dist/src-node/index.cjs +1 -1
- package/dist/src-node/index.d.cts +7 -1
- package/dist/src-node/index.d.mts +7 -1
- package/dist/src-node/index.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,12 +8,25 @@ WebKit is the BuildPlease application kit for browser applications. It builds on
|
|
|
8
8
|
pnpm add @buildplease/webkit
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Node configuration
|
|
12
|
+
|
|
13
|
+
WebKit reuses the Core Environment Configuration engine. Its `defineConfig()` policy requires only an object root and keeps the complete app-owned shape fully typed and free-form.
|
|
12
14
|
|
|
13
15
|
```ts
|
|
14
|
-
import {
|
|
16
|
+
import { defineConfig, defineEnvironments, defineSource } from '@buildplease/webkit/node';
|
|
17
|
+
|
|
18
|
+
const environments = defineEnvironments({
|
|
19
|
+
test: { file: '.env.test' },
|
|
20
|
+
production: { file: '.env.production' },
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const from = defineSource(environments);
|
|
15
24
|
|
|
16
|
-
|
|
25
|
+
export default defineConfig(environments, {
|
|
26
|
+
origin: {
|
|
27
|
+
api: from.env('ORIGIN_API'),
|
|
28
|
+
},
|
|
29
|
+
});
|
|
17
30
|
```
|
|
18
31
|
|
|
19
32
|
## Features
|
package/dist/src-node/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@buildplease/core/node");function t(t,n){return(0,e.defineConfig)(t,n)}exports.defineConfig=t,Object.keys(e).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})});
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { ConfigDefinition, EnvironmentRegistry } from "@buildplease/core/node";
|
|
2
|
+
export * from "@buildplease/core/node";
|
|
3
|
+
//#region src-node/configuration.d.ts
|
|
4
|
+
type WebKitConfigurationInput = Readonly<Record<string, unknown>>;
|
|
5
|
+
declare function defineWebKitConfiguration<const Environments extends EnvironmentRegistry, const Input extends WebKitConfigurationInput>(environments: Environments, input: Input): ConfigDefinition<Environments, Input>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { defineWebKitConfiguration as defineConfig };
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { ConfigDefinition, EnvironmentRegistry } from "@buildplease/core/node";
|
|
2
|
+
export * from "@buildplease/core/node";
|
|
3
|
+
//#region src-node/configuration.d.ts
|
|
4
|
+
type WebKitConfigurationInput = Readonly<Record<string, unknown>>;
|
|
5
|
+
declare function defineWebKitConfiguration<const Environments extends EnvironmentRegistry, const Input extends WebKitConfigurationInput>(environments: Environments, input: Input): ConfigDefinition<Environments, Input>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { defineWebKitConfiguration as defineConfig };
|
package/dist/src-node/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"@buildplease/core/node";export{};
|
|
1
|
+
import{defineConfig as e}from"@buildplease/core/node";export*from"@buildplease/core/node";function t(t,n){return e(t,n)}export{t as defineConfig};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buildplease/webkit",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"resources"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@buildplease/core": "1.0
|
|
40
|
+
"@buildplease/core": "1.1.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@buildplease/identity": "1.0.0"
|