@@ -3,6 +3,36 @@ import log from '../log.ts'
3
3
import { colors , ensureDir , ensureFile , fromStreamReader , path , Untar } from '../std.ts'
4
4
import util from '../util.ts'
5
5
6
+ const gitignore = [
7
+ '.DS_Store' ,
8
+ 'Thumbs.db' ,
9
+ '.aleph/' ,
10
+ 'dist/' ,
11
+ ]
12
+ const vscExtensions = {
13
+ 'recommendations' : [
14
+ 'denoland.vscode-deno'
15
+ ]
16
+ }
17
+ const vscSettings = {
18
+ 'files.eol' : '\n' ,
19
+ 'files.trimTrailingWhitespace' : true ,
20
+ 'files.exclude' : {
21
+ '**/.git' : true ,
22
+ '**/.DS_Store' : true ,
23
+ '**/Thumbs.db' : true ,
24
+ '**/.aleph' : true
25
+ } ,
26
+ 'deno.enable' : true ,
27
+ 'deno.unstable' : true ,
28
+ 'deno.import_map' : './import_map.json' ,
29
+ 'deno.import_intellisense_autodiscovery' : true ,
30
+ 'deno.import_intellisense_origins' : {
31
+ 'https://deno.land' : true ,
32
+ 'https://esm.sh' : true
33
+ }
34
+ }
35
+
6
36
export const helpMessage = `
7
37
Usage:
8
38
aleph init <dir> [...options]
@@ -38,6 +68,11 @@ export default async function (appDir: string, options: Record<string, string |
38
68
}
39
69
}
40
70
71
+ await ensureDir ( path . join ( appDir , '.vscode' ) )
72
+ await Deno . writeTextFile ( path . join ( appDir , '.vscode' , 'extensions.json' ) , JSON . stringify ( vscExtensions , undefined , 4 ) )
73
+ await Deno . writeTextFile ( path . join ( appDir , '.vscode' , 'settings.json' ) , JSON . stringify ( vscSettings , undefined , 4 ) )
74
+ await Deno . writeTextFile ( path . join ( appDir , '.gitignore' ) , gitignore . join ( '\n' ) )
75
+
41
76
log . info ( 'Done' )
42
77
log . info ( '---' )
43
78
log . info ( colors . dim ( 'Aleph App is ready to Go.' ) )
0 commit comments