Skip to content

Commit 8eee1cf

Browse files
committed
feat: init
0 parents  commit 8eee1cf

23 files changed

+4675
-0
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
root = true
2+
3+
[*]
4+
indent_size = 2
5+
end_of_line = lf
6+
insert_final_newline = true

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: sxzz

.github/renovate.json5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
extends: ['github>sxzz/renovate-config'],
3+
automerge: true,
4+
}

.github/workflows/release.yml

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

.github/workflows/unit-test.yml

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

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
.DS_Store
3+
dist
4+
*.log
5+
.vercel
6+
.eslintcache

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"eslint.experimental.useFlatConfig": true
4+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright © 2024-PRESENT 三咲智子 (https://github.com/sxzz)
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

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# unplugin-isolated-decl [![npm](https://img.shields.io/npm/v/unplugin-isolated-decl.svg)](https://npmjs.com/package/unplugin-isolated-decl)
2+
3+
[![Unit Test](https://github.com/unplugin/unplugin-isolated-decl/actions/workflows/unit-test.yml/badge.svg)](https://github.com/unplugin/unplugin-isolated-decl/actions/workflows/unit-test.yml)
4+
5+
Generate isolated declaration.
6+
7+
## Installation
8+
9+
```bash
10+
npm i -D unplugin-isolated-decl
11+
```
12+
13+
<details>
14+
<summary>Vite</summary><br>
15+
16+
```ts
17+
// vite.config.ts
18+
import UnpluginIsolatedDecl from 'unplugin-isolated-decl/vite'
19+
20+
export default defineConfig({
21+
plugins: [UnpluginIsolatedDecl()],
22+
})
23+
```
24+
25+
<br></details>
26+
27+
<details>
28+
<summary>Rollup</summary><br>
29+
30+
```ts
31+
// rollup.config.js
32+
import UnpluginIsolatedDecl from 'unplugin-isolated-decl/rollup'
33+
34+
export default {
35+
plugins: [UnpluginIsolatedDecl()],
36+
}
37+
```
38+
39+
<br></details>
40+
41+
<details>
42+
<summary>esbuild</summary><br>
43+
44+
```ts
45+
// esbuild.config.js
46+
import { build } from 'esbuild'
47+
48+
build({
49+
plugins: [require('unplugin-isolated-decl/esbuild')()],
50+
})
51+
```
52+
53+
<br></details>
54+
55+
## Sponsors
56+
57+
<p align="center">
58+
<a href="https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg">
59+
<img src='https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg'/>
60+
</a>
61+
</p>
62+
63+
## License
64+
65+
[MIT](./LICENSE) License © 2023-PRESENT [三咲智子](https://github.com/sxzz)

0 commit comments

Comments
 (0)