add a devcontainer and common VS Code task definitions

This commit is contained in:
Ivan Grokhotkov 2023-01-26 15:02:53 +01:00
parent bf6a7ca7df
commit 32cf78b843
No known key found for this signature in database
GPG Key ID: 1E050E141B280628
3 changed files with 61 additions and 1 deletions

View File

@ -0,0 +1,18 @@
{
"name": "esptool.js",
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18-bullseye",
"features": {
"ghcr.io/devcontainers-contrib/features/npm-package:1": {
"package": "http-server"
}
},
"forwardPorts": [ 5001 ],
"customizations": {
"vscode": {
"settings": {
"task.allowAutomaticTasks": "on"
}
}
}
}

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
node_modules
lib
bundle.js
esptool-js-*.tgz
esptool-js-*.tgz
.vscode/settings.json

41
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,41 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "build",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"label": "npm: build",
"detail": "npm run clean && tsc && rollup --config"
},
{
"type": "npm",
"script": "install",
"label": "NPM install",
"runOptions": {
"runOn": "folderOpen"
}
},
{
"type": "npm",
"script": "lint",
"problemMatcher": [
"$eslint-stylish"
],
"label": "npm: lint"
},
{
"type": "shell",
"label": "HTTP server",
"command": "http-server -p 5001",
"isBackground": true,
"runOptions": {
"runOn": "folderOpen"
}
}
]
}