-
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
17 changed files
with
3,233 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,24 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"@typescript-eslint/naming-convention": "off", | ||
"@typescript-eslint/semi": "warn", | ||
"curly": "warn", | ||
"eqeqeq": "warn", | ||
"no-throw-literal": "warn", | ||
"semi": "off" | ||
}, | ||
"ignorePatterns": [ | ||
"out", | ||
"dist", | ||
"**/*.d.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,52 @@ | ||
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@v3 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- run: corepack enable | ||
- run: pnpm i --frozen-lockfile | ||
- run: pnpm lint | ||
- run: pnpm compile | ||
- run: xvfb-run -a pnpm test | ||
|
||
publish: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/main' | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '22.x' | ||
|
||
- run: corepack enable | ||
- run: pnpm i --frozen-lockfile | ||
- run: npm run package | ||
|
||
- name: Publish to Visual Studio Marketplace | ||
uses: HaaLeo/publish-vscode-extension@v1 | ||
with: | ||
pat: ${{ secrets.VSCE_PAT }} | ||
registryUrl: https://marketplace.visualstudio.com |
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,2 @@ | ||
[tools] | ||
node = '22' |
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,90 @@ | ||
{ | ||
"name": "vscode-mise", | ||
"displayName": "mise", | ||
"publisher": "hverlin", | ||
"description": "VSCode extension for mise (formerly rtx) - Runtime Manager", | ||
"version": "0.0.1", | ||
"engines": { | ||
"vscode": "^1.85.0" | ||
}, | ||
"categories": [ | ||
"Other" | ||
], | ||
"activationEvents": [ | ||
"onView:miseTasksView", | ||
"onView:miseToolsView", | ||
"onView:miseEnvsView" | ||
], | ||
"main": "./dist/extension.js", | ||
"contributes": { | ||
"viewsContainers": { | ||
"activitybar": [ | ||
{ | ||
"id": "mise-panel", | ||
"title": "Mise panel", | ||
"icon": "resources/icon.svg" | ||
} | ||
] | ||
}, | ||
"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", | ||
"compile": "webpack", | ||
"watch": "webpack --watch", | ||
"package": "webpack --mode production --devtool hidden-source-map", | ||
"compile-tests": "tsc -p . --outDir out", | ||
"watch-tests": "tsc -p . -w --outDir out", | ||
"pretest": "npm run compile-tests && npm run compile && npm run lint", | ||
"lint": "eslint src --ext ts", | ||
"test": "node ./out/test/runTest.js" | ||
}, | ||
"devDependencies": { | ||
"@types/vscode": "^1.85.0", | ||
"@types/glob": "^8.1.0", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "20.x", | ||
"@typescript-eslint/eslint-plugin": "^6.13.1", | ||
"@typescript-eslint/parser": "^6.13.1", | ||
"eslint": "^8.54.0", | ||
"glob": "^10.3.10", | ||
"mocha": "^10.2.0", | ||
"typescript": "^5.3.2", | ||
"ts-loader": "^9.5.1", | ||
"webpack": "^5.89.0", | ||
"webpack-cli": "^5.1.4", | ||
"@vscode/test-electron": "^2.3.8" | ||
}, | ||
"packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228" | ||
} |
Oops, something went wrong.