Skip to content

Commit

Permalink
📝 prepare for 0.3.3
Browse files Browse the repository at this point in the history
📝 update readme
📝 update changelog
📝 update help manuals
⬆️ increase version

Signed-off-by: birjuvachhani <[email protected]>
  • Loading branch information
BirjuVachhani committed Feb 16, 2020
1 parent 1840d72 commit c2b808a
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 13 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.3.3

- Added smart watch feature.
- use `--smart-watch` option when running build command to enable it.

## 0.3.2

- Fix create command
Expand Down
34 changes: 28 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,20 @@ see help for more information:
spider build --help
```

### Smart Watch (Experimental)

The normal `--watch` option watches for any kind of changes that happens
in the directory. However this can be improved my smartly watching the
directory. It includes ignoring events that doesn't affect anything like
file content changes. Also, it only watches allowed file types and
rebuilds upon changes for those files only.

Run following command to watch directories smartly.

```shell
spider build --smart-watch
```

### Categorizing by File Extension

By default, Spider allows any file to be referenced in the dart code.
Expand Down Expand Up @@ -140,12 +154,6 @@ class Assets {
}
```

### Customize Configuration
To use custom configurations, Spider searches for a yaml file named
'spider.yaml' or 'spider.yml' in the
root directory of the flutter project. see default configs block for
information on available configurations.

## Advanced Configuration
Spider provides supports for multiple configurations and classifications.
If you wanna group your assets by module, type or anything, you can do
Expand Down Expand Up @@ -177,6 +185,20 @@ So when you refer to `Images` class, auto-complete suggests raster
images only and you know that you can use them with `AssetImage` and
other one with vector rendering library.

## Enable Verbose Logging

Spider prefers not to overwhelm terminal with verbose logs that are
redundant for most of the cases. However those verbose logs come quite
handy when it comes to debug anything. You can enable verbose logging by
using `--verbose` option on build command.

```shell
spider build --verbose
# watching directories with verbose logs
spider build --watch --verbose
```

## License
```
Copyright © 2020 Birju Vachhani
Expand Down
14 changes: 9 additions & 5 deletions lib/src/help_manuals.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spider create [arguments]
ARGUMENTS:
-j, --json Generates config file of type JSON rather than YAML.
-h, --help, -? Show help
-h, --help, Show help
''';

static const SPIDER_HELP = '''
Expand Down Expand Up @@ -54,9 +54,13 @@ spider build [arguments]
used by this command to generate dart code.
ARGUMENTS:
-w, --watch Watches assets directory for file changes and re-generates
dart code upon file creation, deletion or modification.
-v, --verbose Shows verbose logs
-h, --help, -? Show help
-w, --watch Watches assets directory for file changes and re-generates
dart references upon file creation, deletion
or modification.
--smart-watch Smartly watches assets directory for file changes and
re-generates dart references by ignoring events and files
that doesn't fall under the group configuration.
-v, --verbose Shows verbose logs
-h, --help Show help
''';
}
2 changes: 1 addition & 1 deletion lib/src/version.dart

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

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: spider
description: A small dart command-line tool for generating dart references of assets from the assets folder.
version: 0.3.2
version: 0.3.3
homepage: https://github.com/BirjuVachhani/spider

environment:
Expand Down

0 comments on commit c2b808a

Please sign in to comment.