Skip to content

Commit 05aaaef

Browse files
committed
readme improvements
1 parent 5c13149 commit 05aaaef

File tree

3 files changed

+7
-45
lines changed

3 files changed

+7
-45
lines changed

CHANGELOG.md

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 0.7.0-dev.1
1+
## 0.7.0-dev.4
22

33
### BREAKING CHANGES
44

@@ -39,6 +39,7 @@
3939
clear: $c
4040
delete: $clear
4141
```
42+
4243
This is just a simple proxy example, but you can also use it in `$before` and `$after` hooks to chain multiple scripts together.
4344

4445
- ⚠️ The `before-` and `after-` hooks has been removed. Instead use the `$before` and `$after` keys. This will help keep hook scripts grouped in a project with multiple scripts defined.
@@ -51,27 +52,7 @@
5152
$after: echo "after"
5253
```
5354

54-
Execute as always.
55-
56-
```
57-
user@MacBook-Pro Desktop % rps hooks
58-
> hooks $before
59-
$ echo "before"
60-
61-
before
62-
63-
> hooks
64-
$ echo "script"
65-
66-
script
67-
68-
> hooks $after
69-
$ echo "after"
70-
71-
after
72-
73-
user@MacBook-Pro Desktop %
74-
```
55+
Execute by calling the `rps hooks`.
7556

7657
It is also possible to link multiple scripts together!
7758

README.md

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Define and use scripts from your _pubspec.yaml_ file.
3636
# too long command? no problem! define alias using reference syntax!
3737
bab: $build android appbundle
3838
# as simple as typing "rps baa"
39-
baa: $build android apk
39+
baa: $build android apk
4040
# some commands may vary from platform to platform
4141
# but that's not a problem
4242
clear:
@@ -48,8 +48,7 @@ Define and use scripts from your _pubspec.yaml_ file.
4848
$windows: rd /s /q ./cache
4949
# now "rps clear" will work on any platform!
5050

51-
52-
# the rest of your pubspec file...
51+
# the rest of your pubspec file...
5352
dependencies:
5453
path: ^1.7.0
5554
```
@@ -124,25 +123,7 @@ scripts:
124123
$after: echo "hello after" # executed after $script
125124
```
126125
127-
Execute as always.
128-
129-
```
130-
user@MacBook-Pro Desktop % rps hooks
131-
> hooks $before
132-
$ echo "hello before"
133-
134-
hello before
135-
136-
> hooks
137-
$ echo "hello script"
138-
139-
hello script
140-
141-
> hooks $after
142-
$ echo "hello after"
143-
144-
hello after
145-
```
126+
Execute by calling the `rps hooks`.
146127

147128
You can also combine multiple scripts using references!
148129

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: rps
22
description: rps (Run Pubspec Script) allows you to define and run scripts from pubspec.yaml.
3-
version: 0.7.0-dev.1
3+
version: 0.7.0-dev.4
44
repository: https://github.com/gonuit/rps
55
homepage: https://github.com/gonuit/rps
66
issue_tracker: https://github.com/gonuit/rps/issues

0 commit comments

Comments
 (0)