This extension helps run the freeCodeCamp courses found here: ./resources/courses.json
- Press
Ctrl + Shift + P
and selectfreeCodeCamp: Open Course
- Select a course from the list
-
Ctrl + Shift + P
and selectRemote-Containers: Rebuild and Reopen in Container
-
Ctrl + Shift + P
and selectfreeCodeCamp: Run Course
Create a freecodecamp.conf.json
file somewhere within the workspace.
See up-to-date example here: ./src/fixture.ts
// This should be in JSON
const exampleConfig = {
bashrc: {
// The .bashrc file to be sourced
enabled: true, // Whether or not to source .bashrc file
path: "./.freeCodeCamp/.bashrc", // Relative path to .bashrc file
},
path: ".freeCodeCamp", // Relative path to tooling directory where scripts will be run
prepare: "npm ci",
scripts: {
// Scripts linked to extension commands
"develop-course": "npm run develop", // Run when `Develop Course` command is executed
"run-course": "npm run start", // Run when `Run Course` command is executed
test: {
// Run when `Test` command is executed
functionName: "handleMessage", // Name of the function to be called
arguments: [
{
message: "Hello World!",
type: "info",
},
], // Arguments to be passed to the function
},
}
workspace: {
// Workspace settings
files: [
// Files to be opened in workspace
{
path: "README.md", // Relative path to file
},
],
previews: [
// Previews to be opened in workspace
{
open: true, // Whether or not to open preview
showLoader: true, // Whilst packages are being installed, show loader
url: "https://www.freecodecamp.org/", // URL to open
},
],
terminals: [
// Terminals to be opened in workspace
{
directory: ".", // Relative path to open terminal with
message: "'Hello World!'", // Message to display in terminal
name: "Camper", // Name of terminal
show: true, // Whether or not to show terminal
},
],
},
};