Skip to content

Commit 6c283ba

Browse files
committed
Adding workspace for messages-api-sms-v0.2
1 parent 503d5f0 commit 6c283ba

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"enabled": true,
3-
"startupfiles": [
4-
"send-sms.js"
5-
]
3+
"startupfiles": ["send-sms.js"]
64
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"files.exclude": {
33
"**/.DS_Store": true,
4+
".vscode/": true,
45
"setup.json": true,
56
"vcr.yml": true,
67
},
7-
"vs-browser.url": "https://neru-febe6726-messages-api-sms-0-1.euw1.runtime.vonage.cloud",
8+
"vs-browser.url": "https://Vonage-Community.github.io/tutorial-interactive_tutorials/tutorials/messages_api-sms/0.2",
89
"vs-browser.reload.onSave": false,
910
"workbench.startupEditor": "none"
1011
}

tutorials/messages_api-sms/ws/.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"label": "Run",
4040
"dependsOn": [
4141
"ExportEnv",
42-
"OpenBroswer",
42+
"OpenBrowser",
4343
"OpenTerminal",
4444
"CleanUp"
4545
],

tutorials/messages_api-sms/ws/createWorkspace.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ fi
1919
SLUG=$(jq -r '.slug' "$CONFIG_FILE")
2020
VERSION=$(jq -r '.version' "$CONFIG_FILE")
2121
FILES=$(jq -r '.files[]' "$CONFIG_FILE")
22-
OPEN_FILE=$(jq -r '.openFile' "$CONFIG_FILE")
2322

2423
# Create files from the "files" array
2524
for FILE in $FILES; do
@@ -45,8 +44,10 @@ fi
4544
OFOS_FILE=".vscode/ofos.json"
4645
if [ -f "$OFOS_FILE" ]; then
4746
TEMP_FILE=$(mktemp)
48-
sed "s|<FILE>|$OPEN_FILE|" "$OFOS_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$OFOS_FILE"
49-
echo "Updated $OFOS_FILE with openFile: $OPEN_FILE"
47+
FILES_ARRAY=$(printf '"%s",' $FILES)
48+
FILES_ARRAY="[${FILES_ARRAY%,}]"
49+
sed "s|<FILES>|$FILES_ARRAY|" "$OFOS_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$OFOS_FILE"
50+
echo "Updated $OFOS_FILE with files: $FILES_ARRAY"
5051
else
5152
echo "$OFOS_FILE not found."
5253
fi

tutorials/messages_api-sms/ws/tutorial-config.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
"files": [
55
"send-sms.js"
66
],
7-
"openFile": "send-sms.js",
87
"panels": [
98
"terminal",
109
"browser"
1110
],
12-
"version": "0.1"
11+
"version": "0.2"
1312
}

0 commit comments

Comments
 (0)