Skip to content

Commit 49fac6d

Browse files
committed
chore: init
0 parents  commit 49fac6d

29 files changed

+5611
-0
lines changed

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [zhiyuanzmj]

.github/workflows/ci.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set node
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 16.x
21+
22+
- name: Setup
23+
run: npm i -g @antfu/ni
24+
25+
- name: Install
26+
run: nci
27+
28+
- name: Lint
29+
run: nr lint
30+
31+
test:
32+
runs-on: ${{ matrix.os }}
33+
34+
strategy:
35+
matrix:
36+
node: [16.x, 18.x]
37+
os: [ubuntu-latest, windows-latest, macos-latest]
38+
fail-fast: false
39+
40+
steps:
41+
- uses: actions/checkout@v3
42+
- name: Set node ${{ matrix.node }}
43+
uses: actions/setup-node@v3
44+
with:
45+
node-version: ${{ matrix.node }}
46+
47+
- name: Setup
48+
run: npm i -g @antfu/ni
49+
50+
- name: Install
51+
run: nci
52+
53+
- name: Build
54+
run: nr build
55+
56+
- name: Test
57+
run: nr test

.github/workflows/release.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: lts/*
21+
22+
- run: npx changelogithub
23+
env:
24+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitignore

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Node template
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
10+
# Runtime data
11+
pids
12+
*.pid
13+
*.seed
14+
*.pid.lock
15+
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
19+
# Coverage directory used by tools like istanbul
20+
coverage
21+
22+
# nyc test coverage
23+
.nyc_output
24+
25+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26+
.grunt
27+
28+
# Bower dependency directory (https://bower.io/)
29+
bower_components
30+
31+
# node-waf configuration
32+
.lock-wscript
33+
34+
# Compiled binary addons (https://nodejs.org/api/addons.html)
35+
build/Release
36+
37+
# Dependency directories
38+
node_modules/
39+
jspm_packages/
40+
41+
# TypeScript v1 declaration files
42+
typings/
43+
44+
# Optional npm cache directory
45+
.npm
46+
47+
# Optional eslint cache
48+
.eslintcache
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# Output of 'npm pack'
54+
*.tgz
55+
56+
# Yarn Integrity file
57+
.yarn-integrity
58+
59+
# dotenv environment variables file
60+
.env
61+
62+
# parcel-bundler cache (https://parceljs.org/)
63+
.cache
64+
65+
# next.js build output
66+
.next
67+
68+
# nuxt.js build output
69+
.nuxt
70+
71+
# Nuxt generate
72+
dist
73+
74+
# vuepress build output
75+
.vuepress/dist
76+
77+
# Serverless directories
78+
.serverless
79+
80+
# IDE
81+
.idea

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignore-workspace-root-check=true
2+
shamefully-hoist=true

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"eslint.experimental.useFlatConfig": true
3+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Anthony Fu <https://github.com/zhiyuanzmj>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+123
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# unplugin-vue-jsx-vapor
2+
3+
[![NPM version](https://img.shields.io/npm/v/unplugin-vue-jsx-vapor?color=a1b858&label=)](https://www.npmjs.com/package/unplugin-vue-jsx-vapor)
4+
5+
Starter template for [unplugin](https://github.com/unjs/unplugin).
6+
7+
## Template Usage
8+
9+
To use this template, clone it down using:
10+
11+
```bash
12+
npx degit unplugin/unplugin-vue-jsx-vapor my-unplugin
13+
```
14+
15+
And do a global replacement of `unplugin-vue-jsx-vapor` with your plugin name.
16+
17+
Then you can start developing your unplugin 🔥
18+
19+
To test your plugin, run: `pnpm run dev`
20+
To release a new version, run: `pnpm run release`
21+
22+
## Install
23+
24+
```bash
25+
npm i unplugin-vue-jsx-vapor
26+
```
27+
28+
<details>
29+
<summary>Vite</summary><br>
30+
31+
```ts
32+
// vite.config.ts
33+
import Starter from 'unplugin-vue-jsx-vapor/vite'
34+
35+
export default defineConfig({
36+
plugins: [
37+
Starter({ /* options */ }),
38+
],
39+
})
40+
```
41+
42+
Example: [`playground/`](./playground/)
43+
44+
<br></details>
45+
46+
<details>
47+
<summary>Rollup</summary><br>
48+
49+
```ts
50+
// rollup.config.js
51+
import Starter from 'unplugin-vue-jsx-vapor/rollup'
52+
53+
export default {
54+
plugins: [
55+
Starter({ /* options */ }),
56+
],
57+
}
58+
```
59+
60+
<br></details>
61+
62+
63+
<details>
64+
<summary>Webpack</summary><br>
65+
66+
```ts
67+
// webpack.config.js
68+
module.exports = {
69+
/* ... */
70+
plugins: [
71+
require('unplugin-vue-jsx-vapor/webpack')({ /* options */ })
72+
]
73+
}
74+
```
75+
76+
<br></details>
77+
78+
<details>
79+
<summary>Nuxt</summary><br>
80+
81+
```ts
82+
// nuxt.config.js
83+
export default defineNuxtConfig({
84+
modules: [
85+
['unplugin-vue-jsx-vapor/nuxt', { /* options */ }],
86+
],
87+
})
88+
```
89+
90+
> This module works for both Nuxt 2 and [Nuxt Vite](https://github.com/nuxt/vite)
91+
92+
<br></details>
93+
94+
<details>
95+
<summary>Vue CLI</summary><br>
96+
97+
```ts
98+
// vue.config.js
99+
module.exports = {
100+
configureWebpack: {
101+
plugins: [
102+
require('unplugin-vue-jsx-vapor/webpack')({ /* options */ }),
103+
],
104+
},
105+
}
106+
```
107+
108+
<br></details>
109+
110+
<details>
111+
<summary>esbuild</summary><br>
112+
113+
```ts
114+
// esbuild.config.js
115+
import { build } from 'esbuild'
116+
import Starter from 'unplugin-vue-jsx-vapor/esbuild'
117+
118+
build({
119+
plugins: [Starter()],
120+
})
121+
```
122+
123+
<br></details>

eslint.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default antfu()

0 commit comments

Comments
 (0)