<commit_before>kaba
====

A build system, specifically designed for the needs and requirements of [Becklyn Studios], built on top of webpack.


Installation
------------

Use npm to install kaba locally in your project:

```bash
yarn add -D kaba
# or
npm install -D kaba
```

Usage
-----

Just run the executable:

```bash
npx kaba
# or
./node_modules/.bin/kaba
```


### CLI Arguments

| Parameter            | Alias               | Meaning                                                                  |
| -------------------- | ------------------- | ------------------------------------------------------------------------ |
| `--dev`              | `-d`                | Dev mode. Equivalent to `--debug --watch --with-sourcemaps --lint`       |
| `--debug`            |                     | Builds the file in debug mode (non-minified and with env `development`). |
| `--with-source-maps` | `--with-sourcemaps` | Outputs source maps.                                                     |
| `--watch`            |                     | Starts the file watcher.                                                 |
| `--lint`             |                     | Lints all compiled files.                                                |
| `--help`             | `-h`                | Prints the help.                                                         |
| `--version`          | `-v`                | Prints the version.                                                      |
| `--verbose`          |                     | Displays all errors in the runner / config file with stack trace.        |


Configuration
-------------

First, create a `webpack.config.js` in the root of your project.
Load kaba and export the generate config:


```js
const Kaba = require("kaba");

module.exports = (new Kaba())
    .addEntries({
        app: "assets/js/app.js"
    })
    .extractSharedEntry()
    .getWebpackConfig();
```

### All of the available configuration methods

#### `.addEntries( mapping )`

Defines the entry points for the webpack builds.

*   `mapping` `Object<string,string>` required
    The mapping object defining the entry points. Similar to [`webpackConfig.entry`]:

    ```js
    kaba.addEntries({
        app: "./assets/js/app.js",
        page: "./assets/js/page.js",<commit_msg>Improve headline<commit_after>kaba
====

A build system, specifically designed for the needs and requirements of [Becklyn Studios], built on top of webpack.


Installation
------------

Use npm to install kaba locally in your project:

```bash
yarn add -D kaba
# or
npm install -D kaba
```

Usage
-----

Just run the executable:

```bash
npx kaba
# or
./node_modules/.bin/kaba
```


### CLI Arguments

| Parameter            | Alias               | Meaning                                                                  |
| -------------------- | ------------------- | ------------------------------------------------------------------------ |
| `--dev`              | `-d`                | Dev mode. Equivalent to `--debug --watch --with-sourcemaps --lint`       |
| `--debug`            |                     | Builds the file in debug mode (non-minified and with env `development`). |
| `--with-source-maps` | `--with-sourcemaps` | Outputs source maps.                                                     |
| `--watch`            |                     | Starts the file watcher.                                                 |
| `--lint`             |                     | Lints all compiled files.                                                |
| `--help`             | `-h`                | Prints the help.                                                         |
| `--version`          | `-v`                | Prints the version.                                                      |
| `--verbose`          |                     | Displays all errors in the runner / config file with stack trace.        |


Configuration
-------------

First, create a `webpack.config.js` in the root of your project.
Load kaba and export the generate config:


```js
const Kaba = require("kaba");

module.exports = (new Kaba())
    .addEntries({
        app: "assets/js/app.js"
    })
    .extractSharedEntry()
    .getWebpackConfig();
```

### Configuration Methods

#### `.addEntries( mapping )`

Defines the entry points for the webpack builds.

*   `mapping` `Object<string,string>` required
    The mapping object defining the entry points. Similar to [`webpackConfig.entry`]:

    ```js
    kaba.addEntries({
        app: "./assets/js/app.js",
        page: "./assets/js/page.js",
{'fraction_non_alphanumeric': 0.16855400696864112, 'fraction_numerical': 0.0, 'mean_word_length': 1.1049495875343722, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 32, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '694643', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1074, 'n_words': 352}