File tree 3 files changed +6
-30
lines changed 3 files changed +6
-30
lines changed Original file line number Diff line number Diff line change
1
+ // https://sao.js.org/#/create?id=config-file
2
+
1
3
module . exports = {
2
4
prompts : {
3
5
name : {
@@ -14,9 +16,9 @@ module.exports = {
14
16
default : true ,
15
17
} ,
16
18
} ,
17
- data ( { username } ) {
19
+ data ( { username = 'dwarvesf' } ) {
18
20
return {
19
- website : `github.com/dwarvesf ` ,
21
+ website : `github.com/${ username } ` ,
20
22
} ;
21
23
} ,
22
24
filters : {
@@ -28,8 +30,4 @@ module.exports = {
28
30
showTip : true ,
29
31
gitInit : true ,
30
32
installDependencies : true ,
31
- post ( context , stream ) {
32
- console . log ( context )
33
- console . log ( stream )
34
- } ,
35
33
} ;
Original file line number Diff line number Diff line change 2
2
3
3
> <%= description %>
4
4
5
- ## Usage
6
-
7
- Install [ SAO] ( https://github.com/egoist/sao ) first.
8
-
9
- ``` bash
10
- yarn global add sao
11
- # or
12
- npm i -g sao
13
- ```
14
-
15
- ### From npm
16
-
17
- ``` bash
18
- sao < %= name.replace(' template-' , ' ' ) %> my-project
19
- ```
20
-
21
- ### From git
22
-
23
- ``` bash
24
- sao < %= username %> /< %= name %> my-project
25
- ```
26
-
27
5
## License
28
6
29
- MIT © ; [ <%= username %> ] ( < %= website % > )
7
+ MIT © ; Dwarves Foundation
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import './index.css';
5
5
import App from './App' ;
6
6
7
7
const render = Component => {
8
- ReactDOM . render ( < Component /> , document . getElementById ( 'root' ) )
8
+ ReactDOM . render ( < Component /> , document . getElementById ( 'root' ) ) ;
9
9
} ;
10
10
11
11
render ( App ) ;
You can’t perform that action at this time.
0 commit comments