File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed
Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 11source $PROJECT_FOLDER /.vscode/env.zsh
22
3- mkdir -p $PROJECT_WEB_DELIVERY
3+ if [ -z " $PROJECT_WEB_DELIVERY " ]; then
4+ echo " PROJECT_WEB_DELIVERY is not set. Please set it in .vscode/env.zsh"
5+ else
6+ if [ -d " $PROJECT_WEB_DELIVERY " ]; then
7+ echo " FOLDER $PROJECT_WEB_DELIVERY exists."
8+ else
9+ mkdir -p $PROJECT_WEB_DELIVERY
10+ echo " *" > $PROJECT_WEB_DELIVERY /.gitignore
11+ echo " FOLDER $PROJECT_WEB_DELIVERY created."
12+ fi
13+ fi
414
515cd $PROJECT_WEB_DELIVERY
616
Original file line number Diff line number Diff line change 3333 "isBackground" : false ,
3434 "promptOnClose" : true ,
3535 "hide" : false ,
36+ },
37+ {
38+ "label" : " venv create" ,
39+ "type" : " shell" ,
40+ "detail" : " venv create task" ,
41+ "command" : [
42+ " python3 -m venv venv;" ,
43+ " echo '*' > venv/.gitignore;" ,
44+ ],
3645 }
3746 ],
3847 "inputs" : [
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ def create_value_map(filepath:str):
5858"""
5959
6060template_tail = """
61+ echo "source.zsh" > $1/.vscode/.gitignore
62+ echo "source*.zsh" >> $1/.vscode/.gitignore
63+
6164 echo "Generate Success" "Launched VSCode"
6265 code $1
6366}
You can’t perform that action at this time.
0 commit comments