Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dankeboy36 authored Dec 1, 2023
0 parents commit 0a304ba
Show file tree
Hide file tree
Showing 37 changed files with 24,008 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier"
],
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off",
"prettier/prettier": "warn"
},
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
}
98 changes: 98 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: Build
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
branches:
- main

jobs:
build:
name: test (${{ matrix.os }}, node-${{ matrix.node }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node: [18.x]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.config.node }}
- name: Use Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Restore CLI Binaries
uses: actions/cache/restore@v3
with:
path: test-resources/cli-releases
key: ${{ runner.os }}-cli-context-${{ hashFiles('src/test/cliContext.json') }}
- name: Restore `directories.data` folder (CLI)
uses: actions/cache/restore@v3
with:
path: test-resources/envs/cli
key: ${{ runner.os }}-cli-env-${{ hashFiles('src/test/envs.cli.json') }}
- name: Restore `directories.data` folder (Git)
uses: actions/cache/restore@v3
with:
path: test-resources/envs/git
key: ${{ runner.os }}-git-env-${{ hashFiles('src/test/envs.git.json') }}
- name: Install Dependencies
run: npm ci
- name: Check Format
run: npm run format && git diff --exit-code
- name: Test
uses: coactions/setup-xvfb@v1
with:
run: npm run test-all
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Store CLI Binaries
uses: actions/cache/save@v3
with:
path: test-resources/cli-releases
key: ${{ runner.os }}-cli-context-${{ hashFiles('src/test/cliContext.json') }}
- name: Store `directories.data` folder (CLI)
uses: actions/cache/save@v3
with:
path: test-resources/envs/cli
key: ${{ runner.os }}-cli-env-${{ hashFiles('src/test/envs.cli.json') }}
- name: Store `directories.data` folder (Git)
uses: actions/cache/save@v3
with:
path: test-resources/envs/git
key: ${{ runner.os }}-git-env-${{ hashFiles('src/test/envs.git.json') }}

release:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Release
id: release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}
OVSX_PAT: ${{ secrets.OVSX_PAT }}
outputs:
release_version: ${{ steps.release.outputs.release_version }}
19 changes: 19 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Taken from stephenh/ts-proto. Thank you!
# https://github.com/stephenh/ts-proto/blob/1f73bad91fe33c497d5168b9f0847ad596ffec39/.github/workflows/pr-title.yml
name: PR Title

on:
pull_request_target:
types:
- opened
- reopened
- edited
- synchronize

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
out
dist
node_modules
.vscode-test
*.vsix
# binary releases of the Arduino CLI for testing and the `directories.data` folder for the tests
test-resources
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
out
dist
.vscode-test
test-resources
CHANGELOG.md
15 changes: 15 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"printWidth": 80,
"endOfLine": "auto",
"overrides": [
{
"files": "*.json",
"options": {
"tabWidth": 2
}
}
]
}
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"amodio.tsl-problem-matcher",
"streetsidesoftware.code-spell-checker"
]
}
50 changes: 50 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
],
"env": {
"NO_TEST_TIMEOUT": "true",
"TEST_DEBUG": "espExceptionDecoder*"
},
"outFiles": [
"${workspaceFolder}/out/**/*.js",
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "tasks: watch-tests"
},
{
"name": "Extension Tests (Slow)",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
],
"env": {
"CLI_TEST_CONTEXT": "slow",
"NO_TEST_TIMEOUT": "true",
"TEST_DEBUG": "espExceptionDecoder*"
},
"outFiles": [
"${workspaceFolder}/out/**/*.js",
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "tasks: watch-tests"
}
]
}
15 changes: 15 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"files.exclude": {
"out": false,
"dist": false
},
"search.exclude": {
"out": true,
"dist": true
},
"typescript.tsc.autoDetect": "off",
"typescript.tsdk": "./node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
35 changes: 35 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$ts-webpack-watch",
"isBackground": true,
"presentation": {
"reveal": "never",
"group": "watchers"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "npm",
"script": "watch-tests",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never",
"group": "watchers"
},
"group": "build"
},
{
"label": "tasks: watch-tests",
"dependsOn": ["npm: watch", "npm: watch-tests"],
"problemMatcher": []
}
]
}
17 changes: 17 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.vscode/**
.vscode-test/**
out/**
node_modules/**
src/**
.gitignore
.yarnrc
webpack.config.js
vsc-extension-quickstart.md
**/tsconfig.json
**/.eslintrc.json
**/*.map
**/*.ts
test-resources/**
.prettier*
.github/**
images/**
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## [1.0.2](https://github.com/dankeboy36/esp-exception-decoder/compare/1.0.1...1.0.2) (2023-07-12)


### Bug Fixes

* **release:** OVSX publish ([#5](https://github.com/dankeboy36/esp-exception-decoder/issues/5)) ([aeb47cc](https://github.com/dankeboy36/esp-exception-decoder/commit/aeb47cc0cdeba60f983782fcabffe8e4e105a4ef))

## [1.0.1](https://github.com/dankeboy36/esp-exception-decoder/compare/v1.0.0...1.0.1) (2023-07-03)


### Bug Fixes

* **release:** undesired release behavior ([#4](https://github.com/dankeboy36/esp-exception-decoder/issues/4)) ([b581dc7](https://github.com/dankeboy36/esp-exception-decoder/commit/b581dc7d23c126ab4e551e23b765dffb578739d4))

# 1.0.0 (2023-07-03)


### Bug Fixes

* added missing `publisher` to `package.json` ([#3](https://github.com/dankeboy36/esp-exception-decoder/issues/3)) ([563c69b](https://github.com/dankeboy36/esp-exception-decoder/commit/563c69b30f5accca3be575f0673d88053ae6177b))


### Features

* ESP exception decoder tool for Arduino IDE ([227732e](https://github.com/dankeboy36/esp-exception-decoder/commit/227732e620058492466c79a512a6980291720266))

# Change Log

All notable changes to the "esp-exception-decoder" extension will be documented in this file.

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [Unreleased]

- Initial release
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 dankeboy36

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 0a304ba

Please sign in to comment.