Skip to content

Commit

Permalink
Merge pull request #97 from fflaten/devcontainer
Browse files Browse the repository at this point in the history
Add devcontainer
  • Loading branch information
merill authored Apr 16, 2024
2 parents 9219931 + 1011d15 commit c306702
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README for image at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
{
"name": "Measter",
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-18-bullseye",
"features": {
"ghcr.io/devcontainers/features/powershell:1": {
"modules": "Microsoft.Graph.Authentication, Pester, PSFramework, PSModuleDevelopment, PSScriptAnalyzer"
}
},
"forwardPorts": [3000, 5173],
"postCreateCommand": "cd ./website && npm i && cd ../report && npm i",
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "pwsh"
},
"extensions": [
"ms-vscode.powershell",
"github.vscode-github-actions",
"dbaeumer.vscode-eslint",
"streetsidesoftware.code-spell-checker"
]
},
"codespaces": {
"openFiles": [
"website/docs/contributing.md"
]
}
}
}
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for more information:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot

version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
4 changes: 2 additions & 2 deletions website/docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ Follow this guide if you want to run the documentation locally and view changes

#### Installation

When running the documentation for the first time, you will need to install the dependencies. This can be done by running the following command in ./docs folder.
When running the documentation for the first time, you will need to install the dependencies. This can be done by running the following command in ./website folder.

```
npm install
```

#### Starting the site

While in the ./docs folder run the following command to start the site locally. This will start a local server and open the site in your default browser to http://localhost:3000/
While in the ./website folder run the following command to start the site locally. This will start a local server and open the site in your default browser to http://localhost:3000/

```
npm start
Expand Down

0 comments on commit c306702

Please sign in to comment.