Skip to content
This repository was archived by the owner on Aug 19, 2019. It is now read-only.

Commit 73a0d34

Browse files
author
deepsweet
committed
📝 update readme
1 parent 6f12155 commit 73a0d34

File tree

1 file changed

+24
-26
lines changed

1 file changed

+24
-26
lines changed

readme.md

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010

1111
## Install
1212

13-
```
14-
npm i -D start-babel
13+
```sh
14+
npm install --save-dev start-babel
15+
# or
16+
yarn add --dev start-babel
1517
```
1618

1719
## Usage
@@ -28,30 +30,26 @@ import write from 'start-write';
2830

2931
const start = Start(reporter());
3032

31-
export function build() {
32-
return start(
33-
files('build/'),
34-
clean(),
35-
files('lib/**/*.js'),
36-
read(),
37-
babel({ sourceMaps: true }),
38-
write('build/')
39-
);
40-
}
41-
42-
export function dev() {
43-
return start(
44-
files('build/'),
45-
clean(),
46-
files('lib/**/*.js'),
47-
watch(file => start(
48-
files(file),
49-
read(),
50-
babel(),
51-
write('build/')
52-
))
53-
);
54-
}
33+
export const build = () => start(
34+
files('build/'),
35+
clean(),
36+
files('lib/**/*.js'),
37+
read(),
38+
babel({ sourceMaps: true }),
39+
write('build/')
40+
);
41+
42+
export const dev = () => start(
43+
files('build/'),
44+
clean(),
45+
files('lib/**/*.js'),
46+
watch(file => start(
47+
files(file),
48+
read(),
49+
babel(),
50+
write('build/')
51+
))
52+
);
5553
```
5654

5755
This task relies on `[{ path, data, map }]` input and provides the same, see [documentation](https://github.com/start-runner/start#readme) for details.

0 commit comments

Comments
 (0)