@@ -7,31 +7,42 @@ import {lift, questionNames, scaffold} from './lib/index.js';
7
7
8
8
// #### Execute
9
9
10
- // remark-usage-ignore-next 2
11
- ( async ( ) => {
12
- stubbedFs ( { templates : { 'editorconfig.ini' : await fs . readFile ( resolve ( 'templates' , 'editorconfig.ini' ) ) } } ) ;
10
+ // remark-usage-ignore-next 4
11
+ stubbedFs ( {
12
+ templates : { 'editorconfig.ini' : await fs . readFile ( resolve ( 'templates' , 'editorconfig.ini' ) ) } ,
13
+ node_modules : stubbedFs . load ( 'node_modules' )
14
+ } ) ;
13
15
14
- await scaffold ( {
15
- decisions : {
16
- [ questionNames . PROJECT_NAME ] : 'my-project' ,
17
- [ questionNames . LICENSE ] : 'MIT' ,
18
- [ questionNames . VISIBILITY ] : 'Public' ,
19
- [ questionNames . DESCRIPTION ] : 'My project' ,
20
- [ questionNames . GIT_REPO ] : false ,
21
- [ questionNames . COPYRIGHT_HOLDER ] : 'John Smith' ,
22
- [ questionNames . COPYRIGHT_YEAR ] : '2022' ,
23
- [ questionNames . PROJECT_LANGUAGE ] : 'foo'
16
+ await scaffold ( {
17
+ decisions : {
18
+ [ questionNames . PROJECT_NAME ] : 'my-project' ,
19
+ [ questionNames . LICENSE ] : 'MIT' ,
20
+ [ questionNames . VISIBILITY ] : 'Public' ,
21
+ [ questionNames . DESCRIPTION ] : 'My project' ,
22
+ [ questionNames . GIT_REPO ] : false ,
23
+ [ questionNames . COPYRIGHT_HOLDER ] : 'John Smith' ,
24
+ [ questionNames . COPYRIGHT_YEAR ] : '2022' ,
25
+ [ questionNames . PROJECT_LANGUAGE ] : 'foo'
26
+ } ,
27
+ plugins : {
28
+ dependencyUpdaters : {
29
+ bar : { scaffold : options => options }
24
30
} ,
25
31
languages : {
26
- foo : options => options
32
+ foo : { scaffold : options => options }
33
+ } ,
34
+ vcsHosts : {
35
+ baz : {
36
+ scaffold : options => options ,
37
+ prompt : ( ) => ( { repoOwner : 'form8ion' } )
38
+ }
27
39
}
28
- } ) ;
40
+ }
41
+ } ) ;
29
42
30
- await lift ( {
31
- projectRoot : process . cwd ( ) ,
32
- results : { } ,
33
- enhancers : { foo : { test : ( ) => true , lift : ( ) => ( { } ) } } ,
34
- vcs : { }
35
- } ) ;
36
- // remark-usage-ignore-next
37
- } ) ( ) ;
43
+ await lift ( {
44
+ projectRoot : process . cwd ( ) ,
45
+ results : { } ,
46
+ enhancers : { foo : { test : ( ) => true , lift : ( ) => ( { } ) } } ,
47
+ vcs : { }
48
+ } ) ;
0 commit comments