|
| 1 | +# dot-maker |
| 2 | + |
| 3 | +Programmatically generate Dotkernel project files and directories. |
| 4 | + |
| 5 | +## Documentation |
| 6 | + |
| 7 | +Documentation is available at: https://docs.dotkernel.org/dot-maker/. |
| 8 | + |
| 9 | +## Badges |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | +[](https://github.com/dotkernel/dot-maker/issues) |
| 15 | +[](https://github.com/dotkernel/dot-maker/network) |
| 16 | +[](https://github.com/dotkernel/dot-maker/stargazers) |
| 17 | +[](https://github.com/dotkernel/dot-maker/blob/1.0/LICENSE.md) |
| 18 | + |
| 19 | +[](https://github.com/dotkernel/dot-maker/actions/workflows/continuous-integration.yml) |
| 20 | +[](https://codecov.io/gh/dotkernel/dot-maker) |
| 21 | +[](https://github.com/dotkernel/dot-maker/actions/workflows/static-analysis.yml) |
| 22 | + |
| 23 | +## Installation |
| 24 | + |
| 25 | +Run the following command in your terminal: |
| 26 | + |
| 27 | +```shell |
| 28 | +composer require-dev dotkernel/dot-maker |
| 29 | +``` |
| 30 | + |
| 31 | +## Setup |
| 32 | + |
| 33 | +Once installed, `dot-maker` is ready for usage, no need for extra configurations. |
| 34 | + |
| 35 | +### (Optional) Add dot-maker to composer.json |
| 36 | + |
| 37 | +Open your project's `composer.json` and locate the `scripts` section. |
| 38 | +If it does not exist, create it at the document's root level. |
| 39 | + |
| 40 | +Register a new script by appending `"alias": "dot-maker"` to the `scripts` section, where **alias** can be any string you want; like, for example, **make**. |
| 41 | + |
| 42 | +```json |
| 43 | +{ |
| 44 | + "scripts": { |
| 45 | + "make": "dot-maker" |
| 46 | + } |
| 47 | +} |
| 48 | +``` |
| 49 | + |
| 50 | +## Usage |
| 51 | + |
| 52 | +Invoke `dot-maker` by executing: |
| 53 | + |
| 54 | +- the bin file in your vendor directory `./vendor/bin/dot-maker` |
| 55 | +- the (optional) Composer script created during [Setup](#setup): `composer make` |
| 56 | + |
| 57 | +Follow the instructions on the screen to create a specific Dotkernel project component. |
0 commit comments