Skip to content

Commit 4fd96d3

Browse files
committed
update gitignore files
1 parent afd7ce3 commit 4fd96d3

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

.vscode/source_web-delivery.zsh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
source $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

515
cd $PROJECT_WEB_DELIVERY
616

.vscode/tasks.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@
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": [

craft.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ def create_value_map(filepath:str):
5858
"""
5959

6060
template_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
}

0 commit comments

Comments
 (0)