@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 +14 -4
- package/dist/cli.d.ts +834 -627
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +3 -3
- package/dist/index.d.ts +834 -627
- package/dist/index.js +35 -18
- package/dist/index.js.map +5 -5
- package/package.json +22 -18
- package/man/xbuild.1 +0 -95
package/README.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# xBuild
|
|
2
|
+
[](https://remotex-labs.github.io/xBuild/)
|
|
3
|
+
[](https://www.npmjs.com/package/@remotex-labs/xbuild)
|
|
4
|
+
[](https://opensource.org/licenses/MPL-2.0)
|
|
5
|
+
[](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
|
-
|
|
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 `
|
|
193
|
+
The `HooksInterface` interface provides a structure for lifecycle hooks to customize the build process.
|
|
190
194
|
```ts
|
|
191
|
-
export interface
|
|
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)
|