add a devcontainer and common VS Code task definitions
This commit is contained in:
parent
bf6a7ca7df
commit
32cf78b843
18
.devcontainer/devcontainer.json
Normal file
18
.devcontainer/devcontainer.json
Normal 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
3
.gitignore
vendored
@ -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
41
.vscode/tasks.json
vendored
Normal 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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user