Skip to content

Commit

Permalink
chore: Update configs and fix @types/vscode version
Browse files Browse the repository at this point in the history
  • Loading branch information
hangxingliu committed Nov 19, 2023
1 parent 1ea3b66 commit 7aece93
Show file tree
Hide file tree
Showing 6 changed files with 558 additions and 24 deletions.
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
- directory: /
package-ecosystem: npm
commit-message:
prefix: deps # the git commit message will look like: "deps: ..."
schedule:
interval: daily
ignore:
- dependency-name: '@types/vscode'
- dependency-name: '@types/node'
- directory: /
package-ecosystem: github-actions
commit-message:
prefix: deps
schedule:
interval: weekly
9 changes: 4 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ jobs:
yarn run build:syntax &&
yarn run build:web-ext &&
yarn run build:desktop-ext
- name: Build packages
run: |
bash ./scripts/build-npm-package.sh &&
yarn add --dev vsce &&
bash ./scripts/build-vscode-artifact.sh
- name: Build npm package
run: bash ./scripts/build-npm-package.sh
- name: Build Visual Studio Code package
run: bash ./scripts/build-vscode-artifact.sh
- uses: actions/upload-artifact@v3
with:
name: vscode-extension
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/vsce-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ jobs:
run: |
yarn install &&
yarn run build:web-ext &&
yarn run build:desktop-ext &&
yarn add vsce --dev
yarn run build:desktop-ext
- name: Publish VS Code extension
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
Expand Down
13 changes: 12 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,16 @@
"singleQuote": false,
"tabWidth": 4,
"trailingComma": "es5",
"printWidth": 120
"printWidth": 120,
"overrides": [
{
"files": [
"*.yml",
"*.yaml"
],
"options": {
"tabWidth": 2
}
}
]
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"dependencies": {},
"devDependencies": {
"@types/node": "latest",
"@types/vscode": "^1.84.1",
"@types/vscode": "^1.64.0",
"axios": "^1",
"cheerio": "1.0.0-rc.12",
"html-minifier": "^4.0.0",
Expand All @@ -62,10 +62,11 @@
"@typescript-eslint/parser": "^6",
"@vscode/test-web": "^0.0.48",
"eslint": "^8",
"swc-loader": "^0.2.3"
"swc-loader": "^0.2.3",
"vsce": "^2.15.0"
},
"engines": {
"vscode": "^1.1.0"
"vscode": "^1.64.0"
},
"activationEvents": [
"onLanguage:NGINX",
Expand Down
Loading

0 comments on commit 7aece93

Please sign in to comment.