File tree Expand file tree Collapse file tree 8 files changed +132
-452
lines changed
packages/nuxt-switch-match Expand file tree Collapse file tree 8 files changed +132
-452
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @hebilicious/nuxt-switch-match " : patch
3+ " @hebilicious/vue-switch-match " : patch
4+ ---
5+
6+ Pre-Alpha release
Original file line number Diff line number Diff line change @@ -2,36 +2,33 @@ name: Release
22
33on :
44 push :
5- tags :
6- - " v* "
5+ branches :
6+ - main
77
8+ concurrency : ${{ github.workflow }}-${{ github.ref }}
89permissions :
910 id-token : write
1011 contents : write
12+ pull-requests : write
1113
1214jobs :
1315 release :
16+ name : Release
1417 runs-on : ubuntu-latest
1518 steps :
1619 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1720 with :
1821 fetch-depth : 0
1922
2023 - uses : ./.github/workflows/actions/install
21- with :
22- install : nuxt-switch-match
23-
24- - run : bun x changelogithub
25- continue-on-error : false
26- env :
27- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
2824
29- - name : Build
30- run : bun run build
31-
32- - name : Publish to NPM
33- run : bun run publish:ci
25+ - name : Create Release PR and publish to npm
26+ id : changesets
27+ uses : changesets/action@v1
28+ with :
29+ # This expects you to have a script called release which does a build for your packages and calls changeset publish
30+ publish : bun run publish:ci
3431 env :
35- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN }}
36- NPM_TOKEN : ${{secrets.NPM_TOKEN}}
37- NPM_CONFIG_PROVENANCE : true
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
34+ NPM_CONFIG_PROVENANCE : true
Original file line number Diff line number Diff line change 1- auto-install-peers = true
21//registry.npmjs.org/:_authToken = ${ NPM_TOKEN }
2+ auto-install-peers = true
Original file line number Diff line number Diff line change 55 "quickfix.biome" : " explicit" ,
66 "source.organizeImports.biome" : " explicit"
77 },
8+ "[javascript]" : {
9+ "editor.defaultFormatter" : " dprint.dprint"
10+ },
811 "dprint.path" : " ./node_modules/.bin/dprint" ,
912 "typescript.tsdk" : " node_modules/typescript/lib"
1013}
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ pipeline : {
3+ build : [ "^build" ] ,
4+ test : [ "build" ] ,
5+ lint : [ ]
6+ } ,
7+ npmClient : "pnpm"
8+ }
Original file line number Diff line number Diff line change 44 "version" : " 0.0.1" ,
55 "private" : true ,
66 "scripts" : {
7- "build" : " rimraf packages/*/dist && cd packages/nuxt-switch-match && bun run build" ,
7+ "build" : " lage build --scope '@hebilicious/vue-switch-match' '@hebilicious/nuxt-switch-match' --no-deps" ,
8+ "build:all" : " lage build" ,
89 "format" : " dprint check --verbose" ,
910 "format:fix" : " dprint fmt --verbose" ,
1011 "docs:dev" : " cd docs && vitepress dev" ,
1314 "prepare:types" : " cd packages/nuxt-switch-match && nuxi prepare" ,
1415 "typecheck" : " cd packages/nuxt-switch-match && tsc --noEmit" ,
1516 "test" : " vitest" ,
16- "publish:ci " : " pnpm -r publish --access public --no-git-checks " ,
17+ "publish:all " : " pnpm run build && pnpm publish -r " ,
1718 "test:all" : " bun run lint && bun run typecheck && bun run vitest run"
1819 },
1920 "devDependencies" : {
2324 "@types/node" : " ^22.9.1" ,
2425 "bumpp" : " ^9.8.1" ,
2526 "dprint" : " ^0.47.5" ,
27+ "lage" : " ^2.11.15" ,
2628 "lint-staged" : " ^15.2.10" ,
2729 "rimraf" : " ^6.0.1" ,
2830 "simple-git-hooks" : " ^2.11.1" ,
Original file line number Diff line number Diff line change 1- # Nuxt Switch Match
1+ # Vue Switch Match
22
3- Pattern Matching Switch Match Component for Nuxt. Inspired by Solid.js
3+ [ ![ CI] ( https://github.com/Hebilicious/vue-switch-match/actions/workflows/ci.yaml/badge.svg )] ( https://github.com/Hebilicious/vue-switch-match/actions/workflows/ci.yaml )
4+ [ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( https://opensource.org/licenses/MIT )
45
5- ## Installation
6+ π Pattern Matching Switch Match Component for Vue and Nuxt. Inspired by Solid.js
67
7- ``` bash
8- pnpm i @hebilicious/nuxt-switch-match
9- ```
10-
11- Then edit your nuxt.config.ts :
8+ ## π¦ Installation
129
13- ``` ts
14- export default defineNuxtConfig ({
15- modules: [" @hebilicious/nuxt-switch-match" ]
16- })
10+ ``` bash
11+ pnpm i @hebilicious/vue-switch-match
1712```
1813
19- ## Usage
20-
21- The module will auto-import the components.
14+ ## π Usage
2215
2316``` vue
2417<script lang="ts" setup>
@@ -40,18 +33,18 @@ const swap = () => {
4033</template>
4134```
4235
43- ## Options
36+ ## π¦ Contributing
4437
45- Pass the following options :
38+ Contributions, issues and feature requests are welcome!
4639
47- ``` ts
48- export default defineNuxtConfig ({
49- modules: [ " @hebilicious/nuxt-switch-match " ],
50- nuxtSwitchMatch: {
51- customPrefix: " My " ,
52- switchName: " Switch " ,
53- matchName: " Match " ,
54- fallbackName: " Fallback "
55- }
56- })
57- ```
40+ 1 . Fork this repo
41+
42+ 2 . [ Install ` bun ` . ] ( https://bun.sh/docs/installation )
43+
44+ 3 . Intall pnpm ` corepack enable && pnpm corepack use pnpm@latest `
45+
46+ 4 . Use ` pnpm i ` at the mono-repo root.
47+
48+ 5 . Make modifications and follow conventional commits.
49+
50+ 6 . Open a PR πππ
You canβt perform that action at this time.
0 commit comments