1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools: fix v new <name> web (#16738)

This commit is contained in:
Hitalo Souza 2023-01-09 03:37:46 -03:00 committed by GitHub
parent 956b9f650c
commit 2ec6e2b209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 881 additions and 132 deletions

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,7 @@ fn init_and_check() ! {
assert x.exit_code == 0
assert x.output.trim_space() == 'Hello World!'
assert os.read_file('test_vcreate.v')! == [
assert os.read_file('src/main.v')! == [
'module main\n',
'fn main() {',
" println('Hello World!')",
@ -51,6 +51,13 @@ fn init_and_check() ! {
'.vscode/',
'*.iml',
'',
'# ENV',
'.env',
'',
'# vweb and database',
'*.db',
'*.js',
'',
].join_lines()
assert os.read_file('.gitattributes')! == [