diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..9b128fb --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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" + } + } + } +} diff --git a/.gitignore b/.gitignore index e0ba1ce..ad75e31 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules lib bundle.js -esptool-js-*.tgz \ No newline at end of file +esptool-js-*.tgz +.vscode/settings.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..b2b2b3a --- /dev/null +++ b/.vscode/tasks.json @@ -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" + } + } + ] +} \ No newline at end of file