Skip to content

Commit

Permalink
Update deps (#56)
Browse files Browse the repository at this point in the history
* Update .vscode settings

* Update naming convention rule in .eslintrc.json

* Add .vscode-test.mjs configuration file

* Remove unnecessary entries from .vscodeignore

* Update tsconfig.json compiler options

* Update package.json scripts

* Update devDependencies in package.json

* Update devDependencies in package.json

* Update Node.js and GitHub Actions versions

* Fix import statement for isWsl module

* cleanup test folder

* Add timeout to mocha configuration

* Fix path resolution in resolveTestFilePath function

* Update mocha configuration in .vscode-test.mjs

* Update Node and Ruby versions in workflows

* Add cache dependency path for npm in release and test workflows

* Update OS version in test.yaml workflow

* Update Ruby version to 2.7

* Update test.yaml to use Ruby version 3.3 and add Windows toolchain

* Update test.yaml to use bash shell for running headless tests

* debug

* debug

* debug

* Add platform and isWsl logging in HtmlBeautifier

* Fix import statement in HtmlBeautifier

* Update is-wsl dependency version

* remove debug

* Update package json

* Update package json
  • Loading branch information
aliariff authored Feb 11, 2024
1 parent ceee488 commit 5ae32bb
Show file tree
Hide file tree
Showing 13 changed files with 1,601 additions and 9,653 deletions.
11 changes: 10 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "import",
"format": [
"camelCase",
"PascalCase"
]
}
],
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "20"
cache: "npm"
cache-dependency-path: "package-lock.json"
- name: Install dependencies
run: npm install
- name: Release
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "20"
cache: "npm"
cache-dependency-path: "package-lock.json"
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
ruby-version: "3.3"
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install dependencies
run: |
Expand Down
10 changes: 10 additions & 0 deletions .vscode-test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from "@vscode/test-cli";

export default defineConfig({
files: "out/test/**/*.test.js",
mocha: {
ui: "tdd",
color: true,
timeout: "10000",
},
});
11 changes: 6 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint"
]
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint",
"ms-vscode.extension-test-runner"
]
}
14 changes: 0 additions & 14 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,6 @@
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
],
"outFiles": [
"${workspaceFolder}/out/test/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
3 changes: 1 addition & 2 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.vscode/**
.vscode-test/**
out/test/**

src/**
.gitignore
.yarnrc
Expand All @@ -10,3 +8,4 @@ vsc-extension-quickstart.md
**/.eslintrc.json
**/*.map
**/*.ts
**/.vscode-test.*
Loading

0 comments on commit 5ae32bb

Please sign in to comment.