@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 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
- ## Usage
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 { webkitAssembly } from '@buildplease/webkit';
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
- const assemblies = webkitAssembly();
25
+ export default defineConfig(environments, {
26
+ origin: {
27
+ api: from.env('ORIGIN_API'),
28
+ },
29
+ });
17
30
  ```
18
31
 
19
32
  ## Features
@@ -1 +1 @@
1
- var e=require("@buildplease/core/node");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
+ 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
- export * from "@buildplease/core/node";
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
- export * from "@buildplease/core/node";
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 @@
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.4",
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.2"
40
+ "@buildplease/core": "1.1.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@buildplease/identity": "1.0.0"