Skip to content

Commit

Permalink
Merge pull request #7 from zweitag/indent-setting
Browse files Browse the repository at this point in the history
Allow custom indent
  • Loading branch information
Alex Kott authored May 8, 2019
2 parents c835507 + 22d9939 commit fdd1bd2
Show file tree
Hide file tree
Showing 15 changed files with 353 additions and 97 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,26 @@ yarn global add zwen-react
```

## Configuration
You can create a `.zwen` file in your project directory. Currently you only have a single option there.
You can create a `.zwen` file in your project directory.

### Source Directory
Especially for repositories holding both backend and frontend it might be necessary to change the default source directory.
```
// => .zwen
{
"srcDir": "frontend/src" // default: "src"
}
```

### Indentation
If you prefer tabs or any other kind of indentation you may define it here.
```
// => .zwen
{
"indent": " " // default: " " (two spaces)
}
```

## Usage
### Actions
```
Expand Down
269 changes: 232 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zwen-react",
"description": "Code generator CLI for projects using react and redux",
"version": "0.8.0",
"version": "0.8.1",
"author": "Zweitag GmbH @zweitag",
"contributors": [
"Alex Kott <[email protected]>",
Expand Down
Loading

0 comments on commit fdd1bd2

Please sign in to comment.