Skip to content

Commit

Permalink
chore: remove unused code, update deps and use node18 in CI (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Apr 24, 2024
1 parent 8f41ede commit 1176d6c
Show file tree
Hide file tree
Showing 18 changed files with 347 additions and 1,701 deletions.
16 changes: 0 additions & 16 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/covector-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: covector status
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/covector-version-or-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: git config
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- run: yarn
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
cache: 'yarn'
- name: install dependencies
run: yarn
- name: compile extension
Expand Down
7 changes: 3 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true
"singleQuote": true,
"semi": false,
"trailingComma": "none"
}
8 changes: 0 additions & 8 deletions .vscode/extensions.json

This file was deleted.

17 changes: 1 addition & 16 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,9 @@
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--disable-extensions"
],
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
],
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
16 changes: 0 additions & 16 deletions .vscode/settings.json

This file was deleted.

1 change: 0 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ src/**
.gitignore
vsc-extension-quickstart.md
**/tsconfig.json
**/.eslintrc.json
**/*.map
**/*.ts
71 changes: 22 additions & 49 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "tauri-vscode",
"publisher": "tauri-apps",
"displayName": "Tauri",
"version": "0.2.6",
"description": "Enhances the experience of Tauri apps development",
"license": "MIT OR Apache-2.0",
"icon": "assets/icon.png",
Expand All @@ -13,28 +14,28 @@
"type": "git",
"url": "https://github.com/tauri-apps/tauri-vscode.git"
},
"version": "0.2.6",
"engines": {
"vscode": "^1.66.0"
"vscode": "^1.75.0"
},
"categories": [
"Other",
"Snippets"
"Snippets",
"Linters",
"Other"
],
"keywords": [
"tauri",
"desktop",
"gui",
"development",
"rust"
"rust",
"javascript",
"framework"
],
"activationEvents": [
"workspaceContains:**/tauri.conf.json",
"onCommand:tauri.init",
"onCommand:tauri.deps-install",
"onCommand:tauri.deps-update",
"onCommand:tauri.dev",
"onCommand:tauri.build",
"onCommand:tauri.build-debug",
"workspaceContains:**/tauri.*.conf.json",
"workspaceContains:**/tauri.conf.json5",
"workspaceContains:**/tauri.*.conf.json5",
"onFileSystem:tauri"
],
"main": "./out/extension.js",
Expand All @@ -56,16 +57,6 @@
"title": "Init",
"category": "Tauri"
},
{
"command": "tauri.deps-install",
"title": "Install Missing Dependencies",
"category": "Tauri"
},
{
"command": "tauri.deps-update",
"title": "Update Dependencies",
"category": "Tauri"
},
{
"command": "tauri.dev",
"title": "Dev",
Expand All @@ -86,43 +77,25 @@
{
"language": "rust",
"path": "./snippets/rust.json"
},
{
"language": "markdown",
"path": "./snippets/markdown.json"
}
]
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"format": "prettier ./**/*.{json,ts,js} -w --ignore-path .gitignore",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "8.0.1",
"@types/mocha": "10.0.1",
"@types/node": "16.18.16",
"@types/vscode": "1.66.0",
"@typescript-eslint/eslint-plugin": "5.51.0",
"@typescript-eslint/parser": "5.51.0",
"@vscode/test-electron": "2.1.5",
"eslint": "8.33.0",
"mocha": "10.2.0",
"prettier": "2.8.6",
"typescript": "4.9.5"
"format": "prettier ./**/*.{json,ts,js} -w --ignore-path .gitignore"
},
"dependencies": {
"@types/semver": "^7.3.12",
"axios": "^1.0.0",
"glob": "8.1.0",
"run-in-terminal": "^0.0.3",
"strip-ansi": "^6.0.1"
"axios": "1.6.8",
"glob": "10.3.12",
"run-in-terminal": "0.0.3",
"strip-ansi": "6.0.1"
},
"resolutions": {
"brace-expansion": "^2.0.1"
"devDependencies": {
"@types/node": "18.11.9",
"@types/vscode": "1.75.0",
"prettier": "3.2.5",
"typescript": "5.4.5"
}
}
12 changes: 0 additions & 12 deletions snippets/markdown.json

This file was deleted.

Loading

0 comments on commit 1176d6c

Please sign in to comment.