@remotex-labs/xbuild 1.5.7 → 1.5.9

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
@@ -1,4 +1,8 @@
1
- # @remotex-labs/xbuild
1
+ # xBuild
2
+ [![npm version](https://img.shields.io/badge/Documentation-orange?logo=typescript&logoColor=f5f5f5)](https://remotex-labs.github.io/xBuild/)
3
+ [![npm version](https://img.shields.io/npm/v/@remotex-labs/xbuild.svg)](https://www.npmjs.com/package/@remotex-labs/xbuild)
4
+ [![License: MPL 2.0](https://img.shields.io/badge/License-MPL_2.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0)
5
+ [![Node.js CI](https://github.com/remotex-labs/xBuild/actions/workflows/node.js.yml/badge.svg)](https://github.com/remotex-labs/xBuild/actions/workflows/node.js.yml)
2
6
 
3
7
  `@remotex-labs/xbuild` is a versatile TypeScript toolchain build system
4
8
 
@@ -173,7 +177,7 @@ export default {
173
177
  format: 'esm',
174
178
  bundle: true,
175
179
  },
176
- ifdef: {
180
+ define: {
177
181
  DEBUG: true, // Enables the DEBUG section
178
182
  FEATURE_X: false, // Excludes the FEATURE_X section
179
183
  }
@@ -186,9 +190,9 @@ In this example:
186
190
  This approach helps to manage feature toggles and debug code efficiently, making it possible to build different versions of your code based on a configuration.
187
191
 
188
192
  ## Hooks
189
- The `hooks` interface provides a structure for lifecycle hooks to customize the build process.
193
+ The `HooksInterface` interface provides a structure for lifecycle hooks to customize the build process.
190
194
  ```ts
191
- export interface hooks {
195
+ export interface HooksInterface {
192
196
  onEnd: OnEndType;
193
197
  onLoad: OnLoadType;
194
198
  onStart: OnStartType;
@@ -267,3 +271,9 @@ console.log("Feature X is active");
267
271
 
268
272
  $$logger('data'); // will be deleted if $$logger does not exist
269
273
  ```
274
+
275
+ ## Links
276
+ - [Documentation](https://remotex-labs.github.io/xBuild/)
277
+ - [GitHub Repository](https://github.com/remotex-labs/xBuild)
278
+ - [Issue Tracker](https://github.com/remotex-labs/xBuild/issues)
279
+ - [npm Package](https://www.npmjs.com/package/@remotex-labs/xbuild)