-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
954 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [22.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- run: corepack enable && pnpm i --frozen-lockfile | ||
- run: pnpm lint | ||
- run: pnpm ts-check | ||
- run: pnpm compile | ||
|
||
publish-vscode-openvsx: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/main' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '22.x' | ||
|
||
- run: corepack enable && pnpm i --frozen-lockfile | ||
- run: npm run package | ||
|
||
- name: Publish to Open VSX Registry | ||
uses: HaaLeo/publish-vscode-extension@v1 | ||
with: | ||
pat: ${{ secrets.OPEN_VSX_TOKEN }} | ||
dependencies: false | ||
|
||
publish-vscode-marketplace: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/main' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '22.x' | ||
|
||
- run: corepack enable && pnpm i --frozen-lockfile | ||
- run: npm run package | ||
|
||
- name: Publish to Visual Studio Marketplace | ||
uses: HaaLeo/publish-vscode-extension@v1 | ||
with: | ||
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} | ||
registryUrl: https://marketplace.visualstudio.com | ||
dependencies: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.idea | ||
.vscode/** | ||
.vscode-test/** | ||
node_modules | ||
mise.local.toml | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.vscode/** | ||
.vscode-test/** | ||
src/** | ||
node_modules/** | ||
.gitignore | ||
.yarnrc | ||
webpack.config.js | ||
vsc-extension-quickstart.md | ||
**/tsconfig.json | ||
**/.eslintrc.json | ||
**/*.map | ||
**/*.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"vcs": { | ||
"enabled": false, | ||
"clientKind": "git", | ||
"useIgnoreFile": true | ||
}, | ||
"files": { | ||
"ignoreUnknown": false, | ||
"ignore": ["node_modules", "dist", ".vscode"] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "tab" | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
"suspicious": { | ||
"noConfusingVoidType": "off" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "double" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[tools] | ||
node = '22' | ||
|
||
[tasks.dev] | ||
run = 'pnpm dev' | ||
|
||
[tasks.ts-check] | ||
run = 'pnpm ts-check' | ||
sources = ['src/**/*.ts'] | ||
|
||
[tasks.biome-lint] | ||
run = 'pnpm lint' | ||
sources = ['src/**/*.ts'] | ||
|
||
[tasks.lint] | ||
depends = ['ts-check', 'biome-lint'] | ||
|
||
[tasks.lint-fix] | ||
run = 'pnpm lint-fix' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"name": "mise-vscode", | ||
"displayName": "Mise VSCode", | ||
"publisher": "hverlin", | ||
"description": "VSCode extension for mise (manged dev tools, tasks and environment variables)", | ||
"version": "0.0.2", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/hverlin/mise-vscode" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/hverlin/mise-vscode/issues" | ||
}, | ||
"license": "MIT", | ||
"engines": { | ||
"vscode": "^1.85.0" | ||
}, | ||
"categories": ["Other"], | ||
"keywords": [ | ||
"mise", | ||
"mise-en-place", | ||
"rtx", | ||
"devtools", | ||
"tasks", | ||
"envs", | ||
"environment variables", | ||
"scripts" | ||
], | ||
"icon": "resources/icon.png", | ||
"main": "./dist/extension.js", | ||
"contributes": { | ||
"viewsContainers": { | ||
"activitybar": [ | ||
{ | ||
"id": "mise-panel", | ||
"title": "Mise panel", | ||
"icon": "$(terminal)" | ||
} | ||
] | ||
}, | ||
"views": { | ||
"mise-panel": [ | ||
{ | ||
"id": "miseTasksView", | ||
"name": "Mise Tasks" | ||
}, | ||
{ | ||
"id": "miseToolsView", | ||
"name": "Mise Tools" | ||
}, | ||
{ | ||
"id": "miseEnvsView", | ||
"name": "Environment Variables" | ||
} | ||
] | ||
}, | ||
"commands": [ | ||
{ | ||
"command": "mise.refreshEntry", | ||
"title": "Refresh", | ||
"icon": "$(refresh)" | ||
} | ||
], | ||
"menus": { | ||
"view/title": [ | ||
{ | ||
"command": "mise.refreshEntry", | ||
"when": "view == miseTasksView || view == miseToolsView || view == miseEnvsView", | ||
"group": "navigation" | ||
} | ||
] | ||
} | ||
}, | ||
"scripts": { | ||
"vscode:prepublish": "npm run package --no-optional", | ||
"compile": "rsbuild build", | ||
"dev": "rsbuild dev", | ||
"ts-check": "tsc --noEmit", | ||
"lint-fix": "biome check --fix", | ||
"lint": "biome ci", | ||
"package": "rsbuild build" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.9.4", | ||
"@rsbuild/core": "^1.1.0", | ||
"@types/node": "^22.9.0", | ||
"@types/vscode": "^1.85.0", | ||
"typescript": "^5.6.3" | ||
}, | ||
"packageManager": "[email protected]+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228" | ||
} |
Oops, something went wrong.