Skip to content

Commit

Permalink
Readme: enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan Felix Šulc committed Oct 12, 2017
1 parent f32ecc8 commit bd4a52a
Showing 1 changed file with 27 additions and 22 deletions.
49 changes: 27 additions & 22 deletions README.md
@@ -1,6 +1,6 @@
# Neonizer

Interactive NEON, JSON parameters during composer install / update
Interactive parameters (NEON/JSON) handling during composer install / update.

-----

Expand Down Expand Up @@ -33,36 +33,41 @@ composer require contributte/neonizer
Add post-install and post-update script to composer.json

```json
"scripts": {
"post-install-cmd": [
"Contributte\\Neonizer\\NeonizerExtension::process"
],
"post-update-cmd": [
"Contributte\\Neonizer\\NeonizerExtension::process"
]
}
"scripts": {
"post-install-cmd": [
"Contributte\\Neonizer\\NeonizerExtension::process"
],
"post-update-cmd": [
"Contributte\\Neonizer\\NeonizerExtension::process"
]
}
```

## Usage

Add extra.neonizer section to your composer.json
Add `extra.neonizer` section to your composer.json

```json
"extra": {
"neonizer": {
"files": [
{
"dist-file": "app/config/config.local.neon.dist"
},
{
"dist-file": "app/config/config.local.neon.dist",
"file": "app/config/config.local.json"
}
]
"extra": {
"neonizer": {
"files": [
{
"dist-file": "app/config/config.local.neon.dist"
},
{
"dist-file": "app/config/config.local.neon.dist",
"file": "app/config/config.local.json"
}
}
]
}
}
```

You can define:

- `dist-file` - Resource/template file for parameters handling.
- `file` - Destination/result file.

## Maintainers

<table>
Expand Down

0 comments on commit bd4a52a

Please sign in to comment.