Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit 02812f8

Browse files
Cleaning up for Dev Container Test
1 parent 6595d93 commit 02812f8

40 files changed

+314
-874
lines changed

.devcontainer/Dockerfile

-6
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,5 @@ RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhisto
3434
&& chown -R node /commandhistory \
3535
&& echo $SNIPPET >> /home/node/.bashrc
3636

37-
# Add Support for Live Share
38-
RUN wget -O ~/vsls-reqs https://raw.githubusercontent.com/MicrosoftDocs/live-share/master/scripts/linux-prereqs.sh \
39-
--no-check-certificate \
40-
&& chmod +x ~/vsls-reqs \
41-
&& ~/vsls-reqs
42-
4337
# Prevent Error of missing notice file ( not sure why some people get that error )
4438
RUN sudo touch /conda-notice.txt

.devcontainer/commands/postCreate

+7-22
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,22 @@ START=`date +%s`
1414
# Import Common Functions and Constants
1515
source $CWD/.devcontainer/scripts/common
1616

17-
# Add Third-Party Submodules
18-
$CWD/.devcontainer/scripts/submodules-add
19-
2017
# Run Base Installer
2118
cd $CWD
22-
output 'Installing: ./'
23-
npm clean-install > /dev/null 2>&1
24-
25-
# Look at .gitmodules for which external repos we need to initialize
26-
$CWD/.devcontainer/scripts/submodules-init
27-
28-
##################################################
29-
# COMMAND COMPLETE #
30-
##################################################
19+
output 'Installing Dependencies'
20+
npm clean-install
3121

22+
# Install Complete
3223
END=`date +%s`
33-
3424
RUNTIME=$((END-START))
3525
HOURS=$((RUNTIME / 3600))
3626
MINUTES=$(( (RUNTIME % 3600) / 60 ))
3727
SECONDS=$(( (RUNTIME % 3600) % 60 ))
3828

29+
# Notify Developer
3930
success "INSTALLATION COMPLETE: $(printf '%02d' $HOURS):$(printf '%02d' $MINUTES):$(printf '%02d' $SECONDS)"
40-
4131
notify 'Installation Complete' "Total Runtime: $(printf '%02d' $HOURS):$(printf '%02d' $MINUTES):$(printf '%02d' $SECONDS)"
4232

43-
##################################################
44-
# CREATE CONFIGURATION FILE #
45-
##################################################
46-
47-
# Initialize Instance
48-
$CWD/dependencies/b2c-tools/cli.js instance setup
49-
50-
# @TODO: Add any other scripts that need to run the very first time the virtual machine is created
33+
# Start Dev Environment
34+
output 'Running Dev Environment'
35+
npm run dev

.devcontainer/devcontainer.json

+67-31
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,15 @@
2222

2323
// Argument to pass to Docker Build's Run Command
2424
"runArgs": [
25-
// Environmental Variables ( uncomment and create file if your team needs private env variables )
26-
// "--env-file", ".devcontainer/devcontainer.env",
27-
2825
// Name of Docker Container
2926
"--name",
3027
"${containerWorkspaceFolderBasename}"
3128
],
3229

3330
// Handle Port Forwarding for VS Code Container to Local Machine Ports
3431
"portsAttributes": {
35-
// Add support for Prophet Debugger
36-
"60606": {
37-
"label": "Prophet Debugger Remote",
32+
"3000": {
33+
"label": "Node Server",
3834
"onAutoForward": "silent"
3935
}
4036
},
@@ -119,23 +115,21 @@
119115

120116
// Files to Exclude from Search results
121117
"search.exclude": {
118+
".b2c-dev-doc": true,
119+
".devcontainer": true,
120+
".github": true,
121+
".next": true,
122+
".vscode": true,
122123
"**/node_modules": true,
123124
"**/package-lock.json": true,
124-
"cartridge/static/*/css": true,
125-
"cartridge/static/*/js": true,
126-
"node_modules": true
125+
"node_modules": true,
126+
"public": true,
127+
"src/pages/**/*.md": true
127128
},
128129

129130
// Disable Recommended Extension Prompts
130131
"extensions.ignoreRecommendations": true,
131132

132-
// Prophet Debugger Extension Settings
133-
"extension.prophet.clean.on.start": false,
134-
"extension.prophet.htmlhint.enabled": true,
135-
"extension.prophet.ignore.list": ["node_modules", "\\.git", "\\.zip$"],
136-
"extension.prophet.script.server.disable.diagnostics": false,
137-
"extension.prophet.upload.enabled": true,
138-
139133
// Live Share Extension Settings
140134
"liveshare.alwaysFollowHost": true,
141135
"liveshare.anonymousGuestApproval": "reject",
@@ -149,35 +143,77 @@
149143
"liveshare.publishWorkspaceInfo": true,
150144
"liveshare.shareExternalFiles": false,
151145

146+
// Markdown Preview Enhanced Extension Settings
147+
"markdown-preview-enhanced.codeBlockTheme": "github.css",
148+
152149
// Spell Checker Words to Ignore
153-
"cSpell.words": []
150+
"cSpell.words": [
151+
"applepay",
152+
"bancontact",
153+
"bashhistory",
154+
"callout",
155+
"clsx",
156+
"commandhistory",
157+
"compareapi",
158+
"ctnr",
159+
"cybersource",
160+
"devcontainer",
161+
"esbenp",
162+
"finalizeo",
163+
"flexsearch",
164+
"frontmatter",
165+
"headlessui",
166+
"heroicons",
167+
"impex",
168+
"initiateo",
169+
"jobstep",
170+
"jobstepapi",
171+
"klarna",
172+
"lexend",
173+
"logomark",
174+
"manifestinteractive",
175+
"markdoc",
176+
"paymentapi",
177+
"paymentrequest",
178+
"pinterest",
179+
"pipelet",
180+
"pipeletapi",
181+
"pipelets",
182+
"preconfigured",
183+
"reindex",
184+
"rvest",
185+
"schmalfeldt",
186+
"scriptapi",
187+
"sepa",
188+
"sfcc",
189+
"sfccdevops",
190+
"sfccdocs",
191+
"sfra",
192+
"sindresorhus",
193+
"styleguide",
194+
"tailwindcss",
195+
"unoptimized",
196+
"venmo",
197+
"webdav"
198+
]
154199
},
155200

156201
// VS Code Extensions to Install on Container Build
157202
"extensions": [
158-
// Vue.js Extensions
159-
"Vue.volar", // Vue Language Features (Volar)
160-
161-
// Tailwind CSS Extensions
162-
"bourhaouta.tailwindshades", // Tailwind Shades
163-
"bradlc.vscode-tailwindcss", // Tailwind CSS IntelliSense
164-
"heybourn.headwind", // Headwind
165-
"stivo.tailwind-fold", // Tailwind Fold
166-
167-
// Microsoft Live Share Extensions
168-
"MS-vsliveshare.vsliveshare-audio", // Live Share Audio
169-
"MS-vsliveshare.vsliveshare", // Live Share
170-
171-
// Helpful Development Team Extensions
172203
"aaron-bond.better-comments", // Better Comments
173204
"alefragnani.Bookmarks", // Bookmarks
205+
"bradlc.vscode-tailwindcss", // Tailwind CSS IntelliSense
174206
"codezombiech.gitignore", // gitignore
207+
"DavidAnson.vscode-markdownlint", // Markdown Lint
175208
"eamodio.gitlens", // GitLens — Git supercharged
176209
"EditorConfig.EditorConfig", // EditorConfig for VS Code
177210
"HookyQR.JSDocTagComplete", // Complete JSDoc Tags
178211
"mhutchie.git-graph", // Git Graph
179212
"mikestead.dotenv", // DotENV
213+
"MS-vsliveshare.vsliveshare", // Live Share
180214
"rafamel.subtle-brackets", // Subtle Match Brackets
215+
"rvest.vs-code-prettier-eslint", // Prettier ESLint
216+
"shd101wyy.markdown-preview-enhanced", // Markdown Preview
181217
"streetsidesoftware.code-spell-checker", // Code Spell Checker
182218
"Tyriar.sort-lines", // Sort lines
183219
"wmaurer.change-case" // Change Case

.devcontainer/scripts/submodules-add

-97
This file was deleted.

.devcontainer/scripts/submodules-init

-58
This file was deleted.

0 commit comments

Comments
 (0)