Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinmcfarland committed Aug 6, 2024
1 parent cd8bd71 commit c0b866f
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,18 @@ mole.build()

## Configuration

By default `mole` will look for a file called `mole.config.js` at the root of your project.
By default, `mole` will look for a file called `mole.config.js` at the root of your project.

```js
// mole.config.js
export default {
```ts
type Config {
theme: 'theme.js',
model: ['model-name'],
template: ['template-name'],
output: [{ css: { file: 'styles.css' } }, { ios: { file: 'styles.h' } }, { android: { file: 'styles.xml' } }],
model?: ['model-name'],
template?: ['template-name'],
output: [
{ css: { file: 'styles.css' } },
{ ios: { file: 'styles.h' } },
{ android: { file: 'styles.xml' } }
],
}
```

Expand Down Expand Up @@ -81,8 +84,7 @@ mole.config('src/mole.config.js')
An object that defines where (`file`) and how (`model`, `template`) to process the output. You can set a different `template` or `model` for each output. Name each output by using a key.

```ts
// Example output
{
type Output {
file: '', // Where to output the file
model?: '', // Model(s)
template?: '' // Template(s)
Expand Down

0 comments on commit c0b866f

Please sign in to comment.