Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
hverlin committed Nov 11, 2024
1 parent 357484d commit 2baf640
Show file tree
Hide file tree
Showing 18 changed files with 954 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/ci.yml
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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.idea
.vscode/**
.vscode-test/**
node_modules
mise.local.toml
dist/
12 changes: 12 additions & 0 deletions .vscodeignore
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
33 changes: 33 additions & 0 deletions biome.json
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"
}
}
}
19 changes: 19 additions & 0 deletions mise.toml
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'
91 changes: 91 additions & 0 deletions package.json
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"
}
Loading

0 comments on commit 2baf640

Please sign in to comment.