Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ExEr7um/vue3-vscode-snippets
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.6.0
Choose a base ref
...
head repository: ExEr7um/vue3-vscode-snippets
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.7.0
Choose a head ref
  • 12 commits
  • 19 files changed
  • 2 contributors

Commits on May 11, 2024

  1. chore: Setup Prettier

    ExEr7um committed May 11, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    ExEr7um Vasily Kuzin
    Copy the full SHA
    71525f2 View commit details
  2. chore: Setup ESLint

    ExEr7um committed May 11, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    ExEr7um Vasily Kuzin
    Copy the full SHA
    4ac649a View commit details
  3. Verified

    This commit was signed with the committer’s verified signature.
    ExEr7um Vasily Kuzin
    Copy the full SHA
    33fe21f View commit details
  4. chore: Migrate to ExEr7um/workflows for CI (#65)

    Migration to `ExEr7um/workflows` for CI.
    ExEr7um authored May 11, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0eae3d3 View commit details
  5. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    adfaef2 View commit details
  6. Verified

    This commit was signed with the committer’s verified signature.
    ExEr7um Vasily Kuzin
    Copy the full SHA
    4587bff View commit details

Commits on May 13, 2024

  1. feat(vitest): Add base Vitest snippets (#67)

    Add base snippets for Vitest files:
    - Simple JS/TS
    - Vue components
    - Nuxt components
    ExEr7um authored May 13, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6a14adc View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    ExEr7um Vasily Kuzin
    Copy the full SHA
    dd5410c View commit details
  3. chore: Setup pre-commit hooks

    ExEr7um committed May 13, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    ExEr7um Vasily Kuzin
    Copy the full SHA
    b8d5d39 View commit details
  4. chore: Setup CI (#68)

    ExEr7um authored May 13, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e07adbd View commit details
  5. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    34d7a28 View commit details
  6. release: v0.7.0

    github-actions[bot] committed May 13, 2024
    Copy the full SHA
    a20beae View commit details
14 changes: 0 additions & 14 deletions .github/release.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Release

on:
workflow_dispatch:
inputs:
version:
description: Release version
required: true
type: string

jobs:
changelog:
uses: ExEr7um/workflows/.github/workflows/changelog.yml@v0.7.0
with:
version: ${{ inputs.version }}
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: CI

on:
pull_request:
branches:
- main

jobs:
lint:
uses: ExEr7um/workflows/.github/workflows/frontend-lint.yml@v0.7.0
12 changes: 12 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Publish to VSCode Marketplace

on:
workflow_run:
workflows: [Release]
types: [completed]

jobs:
publish:
uses: ExEr7um/workflows/.github/workflows/publish-vscode.yml@v0.7.0
secrets:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
39 changes: 0 additions & 39 deletions .github/workflows/release.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/semantic-pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Семантический заголовок PR

on:
pull_request:
branches:
- main
types:
- opened
- edited
- synchronize

jobs:
semantic-pr-title:
uses: ExEr7um/workflows/.github/workflows/semantic-pr-title.yml@v0.7.0
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bun run lint-staged
13 changes: 12 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
*.code-snippets
*.code-snippets
bun.lockb
bunfig.toml
CHANGELOG.md
LICENSE

# From .gitignore
.env
*.log*
.eslintcache
*.DS_Store
node_modules
26 changes: 10 additions & 16 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
// A launch configuration that launches the extension inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
]
}
]
}
"configurations": [
{
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"name": "Extension",
"request": "launch",
"type": "extensionHost"
}
],
"version": "0.2.0"
}
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,38 @@

All notable changes to the "vue3-vscode-snippets" extension will be documented in this file.

## v0.7.0

[compare changes](https://github.com/ExEr7um/vue3-vscode-snippets/compare/v0.6.0...v0.7.0)

### 🚀 Enhancements

- **Vitest:** Add function to Vitest `todo` snippets ([#66](https://github.com/ExEr7um/vue3-vscode-snippets/pull/66))
- **Vitest:** Add base Vitest snippets ([#67](https://github.com/ExEr7um/vue3-vscode-snippets/pull/67))

### 🩹 Fixes

- **Vitest:** ⚠️ Remove config snippets ([dd5410c](https://github.com/ExEr7um/vue3-vscode-snippets/commit/dd5410c))

### 🏡 Chore

- Setup Prettier ([71525f2](https://github.com/ExEr7um/vue3-vscode-snippets/commit/71525f2))
- Setup ESLint ([4ac649a](https://github.com/ExEr7um/vue3-vscode-snippets/commit/4ac649a))
- Remove unused `release.yml` file ([33fe21f](https://github.com/ExEr7um/vue3-vscode-snippets/commit/33fe21f))
- Migrate to `ExEr7um/workflows` for CI ([#65](https://github.com/ExEr7um/vue3-vscode-snippets/pull/65))
- Add `scopeMap` to Changelogen config ([4587bff](https://github.com/ExEr7um/vue3-vscode-snippets/commit/4587bff))
- Setup pre-commit hooks ([b8d5d39](https://github.com/ExEr7um/vue3-vscode-snippets/commit/b8d5d39))
- Setup CI ([#68](https://github.com/ExEr7um/vue3-vscode-snippets/pull/68))
- Setup semantic PR title check ([#69](https://github.com/ExEr7um/vue3-vscode-snippets/pull/69))

#### ⚠️ Breaking Changes

- **Vitest:** ⚠️ Remove config snippets ([dd5410c](https://github.com/ExEr7um/vue3-vscode-snippets/commit/dd5410c))

### ❤️ Contributors

- Vasily Kuzin ([@ExEr7um](http://github.com/ExEr7um))

## v0.6.0

[compare changes](https://github.com/ExEr7um/vue3-vscode-snippets/compare/v0.5.1...v0.6.0)
37 changes: 19 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -164,24 +164,25 @@ These snippets were made to speed up Vue 3 development. With it you can write bo

### Vitest

| Snippet | Purpose |
| ------------------------- | ------------------------------ |
| `viconfig` | Vitest config for Vue 3 |
| `viconfig-nuxt` | Vitest config for Nuxt 3 |
| `videscribe` | Vitest Describe |
| `videscribe-concurrent` | Vitest Describe - Concurrent |
| `viit` | Vitest It |
| `viit-concurrent` | Vitest It - Concurrent |
| `viit-async` | Vitest It - Async |
| `viit-async-concurrent` | Vitest It - Async Concurrent |
| `viit-todo` | Vitest It - Todo |
| `vitest` | Vitest Test |
| `vitest-concurrent` | Vitest Test - Concurrent |
| `vitest-async` | Vitest Test - Async |
| `vitest-async-concurrent` | Vitest Test - Async Concurrent |
| `vitest-todo` | Vitest Test - Todo |
| `visnapshot` | Vitest Match Snapshot |
| `visnapshot-inline` | Vitest Match Snapshot - Inline |
| Snippet | Purpose |
| ------------------------- | --------------------------------------- |
| `vibase` | Base for Vitest file |
| `vibase-vue` | Base for Vitest file for Vue component |
| `vibase-nuxt` | Base for Vitest file for Nuxt component |
| `videscribe` | Vitest Describe |
| `videscribe-concurrent` | Vitest Describe - Concurrent |
| `viit` | Vitest It |
| `viit-concurrent` | Vitest It - Concurrent |
| `viit-async` | Vitest It - Async |
| `viit-async-concurrent` | Vitest It - Async Concurrent |
| `viit-todo` | Vitest It - Todo |
| `vitest` | Vitest Test |
| `vitest-concurrent` | Vitest Test - Concurrent |
| `vitest-async` | Vitest Test - Async |
| `vitest-async-concurrent` | Vitest Test - Async Concurrent |
| `vitest-todo` | Vitest Test - Todo |
| `visnapshot` | Vitest Match Snapshot |
| `visnapshot-inline` | Vitest Match Snapshot - Inline |

### Vitest Vue

Binary file added bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[install]
exact = true
7 changes: 7 additions & 0 deletions changelog.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"scopeMap": {
"histoire": "Histoire",
"nuxt": "Nuxt",
"pinia": "Pinia",
"vitest": "Vitest",
"vue": "Vue"
},
"templates": {
"commitMessage": "release: `v{{newVersion}}`"
}
3 changes: 3 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import exer7umConfig from "@exer7um/eslint-config"

export default exer7umConfig
65 changes: 42 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
{
"name": "vue-3-vscode-snippets",
"displayName": "Vue 3 VS Code Snippets",
"version": "0.7.0",
"description": "Vue 3 snippets for VS Code",
"icon": "images/vue-logo.png",
"version": "0.6.0",
"publisher": "exer7um",
"categories": [
"Snippets"
],
"keywords": [
"Vue",
"Vue 3",
"Nuxt",
"Nuxt 3",
"Pinia",
"Vue Snippets",
"Vue 3 snippets",
"Nuxt snippets",
"Nuxt 3 snippets",
"Pinia snippets",
"Composition API"
],
"repository": {
"type": "git",
"url": "https://github.com/ExEr7um/vue3-vscode-snippets.git"
@@ -31,25 +45,15 @@
"url": "https://github.com/pixel-fabian"
}
],
"engines": {
"vscode": "^1.69.0"
"publisher": "exer7um",
"type": "module",
"scripts": {
"eslint": "eslint . --max-warnings=0",
"eslint:fix": "eslint . --max-warnings=0 --fix",
"postinstall": "husky",
"prettier": "prettier --check --ignore-unknown --no-error-on-unmatched-pattern *",
"prettier:write": "prettier --write --ignore-unknown --no-error-on-unmatched-pattern *"
},
"keywords": [
"Vue",
"Vue 3",
"Nuxt",
"Nuxt 3",
"Pinia",
"Vue Snippets",
"Vue 3 snippets",
"Nuxt snippets",
"Nuxt 3 snippets",
"Pinia snippets",
"Composition API"
],
"categories": [
"Snippets"
],
"contributes": {
"snippets": [
{
@@ -149,5 +153,20 @@
"path": "./snippets/vitest/nuxt.code-snippets"
}
]
}
}
},
"lint-staged": {
"*.{vue,js,jsx,cjs,mjs,ts,json}": "eslint --cache --fix",
"*": "prettier --write --ignore-unknown"
},
"prettier": "@exer7um/prettier-config",
"devDependencies": {
"@exer7um/eslint-config": "1.1.1",
"@exer7um/prettier-config": "0.4.2",
"husky": "9.0.11",
"lint-staged": "15.2.2"
},
"engines": {
"vscode": "^1.69.0"
},
"icon": "images/vue-logo.png"
}
36 changes: 23 additions & 13 deletions snippets/vitest/nuxt.code-snippets
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
{
"Vitest Config - Nuxt 3": {
"prefix": "viconfig-nuxt",
"body": [
"import { defineVitestConfig } from 'nuxt-vitest/config'",
"",
"export default defineVitestConfig({",
"\ttest: {",
"\t\tenvironment: 'nuxt'",
"\t}",
"})"
],
"description": "Vitest config for Nuxt 3"
},
"Vitest Nuxt Mount Suspended": {
"prefix": "vimount-suspended",
"body": [
@@ -46,4 +33,27 @@
],
"description": "nuxt-vitest registerEndpoint"
},
"Vitest Nuxt Base": {
"prefix": "vibase-nuxt",
"body": [
"// @vitest-environment nuxt",
"import type { VueWrapper } from '@vue/test-utils'",
"import { mountSuspended } from '@nuxt/test-utils/runtime'",
"import { afterEach, beforeEach, describe, expect } from 'vitest'",
"import ${TM_FILENAME/\\..*//} from '~/components/${TM_FILENAME/\\..*//}.vue'",
"",
"describe('${TM_FILENAME/\\..*//}', () => {",
"\tlet wrapper: VueWrapper",
"\t",
"\tbeforeEach(async () => {",
"\t\twrapper = await mountSuspended(${TM_FILENAME/\\..*//})",
"\t})",
"\t",
"\tafterEach(() => {",
"\t\twrapper.unmount()",
"\t})",
"})"
],
"description": "Base for Vitest file for Vue component"
}
}
Loading