1
- const fs (suglify (import "$fs" ) ;
1
+ const fs (espress (import "$fs" ) ;
2
2
const path (import "$path" ) ;
3
3
const shell (import "$shelljs" ) ;
4
4
const profile (import "./profile" ) ;
5
5
6
6
const app - name (path basename (env "home" ) ;
7
7
8
8
(const repo - of (= (template)
9
- 'https://github.com/NirlStudio/sugly -npm-template-$(template ?* " default ")'
9
+ 'https://github.com/NirlStudio/es -npm-template-$(template ?* " default ")'
10
10
).
11
11
12
12
(const clone (=> (repo)
13
13
log info "Downloading template ..." ;
14
14
shell exec 'git clone $repo .' ;
15
15
shell rm "-rf" , ".git/" ;
16
- ( fs exists - sync "package.json" ) and ( fs exists - sync "sugly /" ) ;
16
+ ( fs exists - sync "package.json" ) and ( fs exists - sync "es /" ) ;
17
17
).
18
18
19
19
(const update - info (=> (pkg)
@@ -34,7 +34,7 @@ const app-name (path basename (env "home");
34
34
(app - name): 'bin/$app-name'
35
35
).
36
36
pkg "repository" , "" ;
37
- pkg "keywords" , (@ "sugly " ) ;
37
+ pkg "keywords" , (@ "eslang" , "espresso" , "espressolang" , "espresso-lang ") ;
38
38
).
39
39
40
40
(const compact (=> (pkg)
@@ -54,9 +54,11 @@ const app-name (path basename (env "home");
54
54
shell mv "bin/hello.cmd" , 'bin/$(app-name).cmd' ;
55
55
).
56
56
57
- # without this , a sugly dependency will not be linked.
58
- log info "Creating sugly/modules ..." ;
59
- shell mkdir "sugly/modules" ;
57
+ # without this , an Espresso dependency will not be linked.
58
+ (if ( fs exists - sync "bin/hello" :: is - not true)
59
+ log info "Creating es/modules ..." ;
60
+ shell mkdir "es/modules" ;
61
+ ).
60
62
61
63
log info "Generating README.md ..." ;
62
64
fs write - file - sync "README.md" , '# $app-name\n\n**UPDATE ME**' ;
@@ -78,7 +80,7 @@ const app-name (path basename (env "home");
78
80
79
81
update - info pkg ;
80
82
(if (options contains "--dev" )
81
- pkg dependencies:: "sugly " , "github:NirlStudio/sugly-lang #development" ;
83
+ pkg dependencies:: "es " , "github:NirlStudio/eslang #development" ;
82
84
).
83
85
(if (options contains "--compact" )
84
86
compact pkg ;
@@ -109,6 +111,6 @@ const app-name (path basename (env "home");
109
111
return false ;
110
112
).
111
113
112
- printf 'Project $app-name has been initialized. Enjoy the sugliness .\n' , "green" ;
114
+ printf 'Project $app-name has been initialized. Enjoy the Espresso .\n' , "green" ;
113
115
return true ;
114
116
).
0 commit comments