Skip to content

Commit

Permalink
feat: add derry
Browse files Browse the repository at this point in the history
  • Loading branch information
MahanRahmati committed Sep 17, 2023
1 parent 84ad721 commit 1f5d4e7
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ This boilerplate includes several common dependencies that you may find useful w
| [flutter_native_splash](https://pub.dev/packages/flutter_native_splash/) | Native splash screen |
| [arna_web_service](https://pub.dev/packages/arna_web_service) | Web service |
| [slang](https://pub.dev/packages/slang) | Internationalization and Localization |
| [derry](https://pub.dev/packages/derry) | Script manager |

You can add or remove dependencies as needed for your specific use case.

Expand All @@ -58,17 +59,21 @@ Remove the following lines from .gitignore:
.metadata
```

### freezed
### Models

To run the code generator, execute the following command: `dart run build_runner build`
To run the code generator, execute the following command: `derry models`

### flutter_native_splash
### Native Splash

To create splash, execute the following command: `dart run flutter_native_splash:create`
To create splash, execute the following command: `derry native_splash`

### slang
### Localization

To generate dart files: `dart run slang`
To generate localization files: `derry slang`

### Providers

To generate provider files: `derry providers`

## License

Expand Down
18 changes: 18 additions & 0 deletions derry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
clean:
- flutter clean
- flutter pub get

native_splash:
- dart run flutter_native_splash:create

native_splash_remove:
- dart run flutter_native_splash:remove

slang:
- cd packages/app_localizations/ && dart run slang

models:
- cd packages/app_models/ && dart run build_runner build --delete-conflicting-outputs

providers:
- cd packages/app_providers/ && dart run build_runner build --delete-conflicting-outputs
2 changes: 2 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ dev_dependencies:
custom_lint: ^0.5.3
riverpod_lint: ^2.1.0

scripts: derry.yaml

flutter:
uses-material-design: true
generate: true

0 comments on commit 1f5d4e7

Please sign in to comment.