@ -49,3 +49,59 @@ To re-build all of the modules, you can run the `pnpm build` command. To rebuild
## Cleaning Up
To remove all of the cloned repositories, use `pnpm clean`. **WARNING** this WILL delete ALL files in the repositories, so be sure you don't have any work you want to save.
# Common Processes
## Adding a new first-party module
1. Create the repository in `@extollo`, based on the `@extollo/_template` repo.
2. Add a `clone:module` action to the scripts in `package.json`. Something like:
3. Add the `clone:module_name` action to the `clone:all` action.
4. Add an `install:module_name` action to the scripts in `package.json`. Make sure it replaces any Extollo modules with symlink versions to the clones versions. For example:
```json
{
"scripts": {
// ...
"install:module_name": "cd modules/module_name && pnpm i --save @extollo/cli@file:../cli @extollo/di@file:../di @extollo/lib@file:../lib @extollo/util@file:../util && pnpm run build && cd ../.."
}
// ...
}
```
5. Add the `install:module_name` action to the `install:all` action.
6. Add a `build:module_name` action to the scripts ni `package.json`. For example,
```json
{
"scripts": {
// ...
"build:module_name": "cd modules/module_name && pnpm run build"
}
// ...
}
```
7. Add the `build:module_name` action to the `build:all` action.
8. Add the `modules/module_name` directory to the `clean:modules` action.