Skip to content

Commit 64bc4f3

Browse files
committedAug 17, 2022
first commit
0 parents  commit 64bc4f3

16 files changed

+3549
-0
lines changed
 

‎.eslintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@so1ve"
3+
}

‎.github/workflows/ci.yml

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
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@v2
17+
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v2.2.1
20+
21+
- name: Set node
22+
uses: actions/setup-node@v2
23+
with:
24+
node-version: 16.x
25+
cache: pnpm
26+
27+
- name: Setup
28+
run: npm i -g @antfu/ni
29+
30+
- name: Install
31+
run: nci
32+
33+
- name: Lint
34+
run: nr lint
35+
36+
typecheck:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v2
40+
41+
- name: Install pnpm
42+
uses: pnpm/action-setup@v2.2.1
43+
44+
- name: Set node
45+
uses: actions/setup-node@v2
46+
with:
47+
node-version: 16.x
48+
cache: pnpm
49+
50+
- name: Setup
51+
run: npm i -g @antfu/ni
52+
53+
- name: Install
54+
run: nci
55+
56+
- name: Typecheck
57+
run: nr typecheck
58+
59+
test:
60+
runs-on: ${{ matrix.os }}
61+
62+
strategy:
63+
matrix:
64+
node: [14.x, 16.x]
65+
os: [ubuntu-latest, windows-latest, macos-latest]
66+
fail-fast: false
67+
68+
steps:
69+
- uses: actions/checkout@v2
70+
71+
- name: Install pnpm
72+
uses: pnpm/action-setup@v2.2.1
73+
74+
- name: Set node version to ${{ matrix.node }}
75+
uses: actions/setup-node@v2
76+
with:
77+
node-version: ${{ matrix.node }}
78+
cache: pnpm
79+
80+
- name: Setup
81+
run: npm i -g @antfu/ni
82+
83+
- name: Install
84+
run: nci
85+
86+
- name: Build
87+
run: nr build
88+
89+
- name: Test
90+
run: nr test

‎.github/workflows/release.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Install pnpm
15+
uses: pnpm/action-setup@v2.2.1
16+
17+
- name: Set node version to v16
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: 16.x
21+
cache: pnpm
22+
23+
- run: npx conventional-github-releaser -p angular
24+
env:
25+
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}

‎.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.cache
2+
.DS_Store
3+
.idea
4+
*.log
5+
*.tgz
6+
coverage
7+
dist
8+
lib-cov
9+
logs
10+
node_modules
11+
temp

‎.npmrc

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

‎.vscode/extensions.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint"
4+
]
5+
}

‎.vscode/settings.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
"editor.codeActionsOnSave": {
4+
"source.fixAll.eslint": true
5+
}
6+
}

‎LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Ray <https://github.com/so1ve>
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

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# 🥱💤💤
2+
3+
[![NPM version](https://img.shields.io/npm/v/zzzzzz?color=a1b858&label=)](https://www.npmjs.com/package/zzzzzz)
4+
5+
## License
6+
7+
[MIT](./LICENSE) License © 2022 [Ray](https://github.com/so1ve)

‎package.json

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"name": "zzzzzz",
3+
"version": "0.0.0",
4+
"packageManager": "pnpm@7.9.0",
5+
"author": "Ray <nn_201312@163.com> (@so1ve)",
6+
"description": "",
7+
"keywords": [],
8+
"homepage": "https://github.com/so1ve/zzzzzz#readme",
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/so1ve/zzzzzz.git"
12+
},
13+
"bugs": {
14+
"url": "https://github.com/so1ve/zzzzzz/issues"
15+
},
16+
"license": "MIT",
17+
"sideEffects": false,
18+
"exports": {
19+
".": {
20+
"types": "./dist/index.d.ts",
21+
"require": "./dist/index.cjs",
22+
"import": "./dist/index.mjs"
23+
},
24+
"./worker": {
25+
"types": "./dist/worker.d.ts",
26+
"require": "./dist/worker.cjs",
27+
"import": "./dist/worker.mjs"
28+
}
29+
},
30+
"main": "./dist/index.cjs",
31+
"module": "./dist/index.mjs",
32+
"types": "./dist/index.d.ts",
33+
"typesVersions": {
34+
"*": {
35+
"*": [
36+
"./dist/*",
37+
"./dist/index.d.ts"
38+
]
39+
}
40+
},
41+
"files": [
42+
"dist"
43+
],
44+
"scripts": {
45+
"build": "rimraf dist && puild",
46+
"watch": "puild --watch",
47+
"lint": "eslint .",
48+
"lint:fix": "eslint . --fix",
49+
"prepublishOnly": "nr build",
50+
"release": "bumpp --commit --push --tag && pnpm publish",
51+
"start": "tsx src/index.ts",
52+
"test": "vitest",
53+
"typecheck": "tsc --noEmit"
54+
},
55+
"devDependencies": {
56+
"@antfu/ni": "^0.17.2",
57+
"@babel/types": "^7.18.10",
58+
"@so1ve/eslint-config": "^0.28.1",
59+
"@types/node": "^18.7.6",
60+
"bumpp": "^8.2.1",
61+
"eslint": "^8.22.0",
62+
"jiti": "^1.14.0",
63+
"pnpm": "^7.9.0",
64+
"puild": "^1.2.3",
65+
"rimraf": "^3.0.2",
66+
"tsx": "^3.8.2",
67+
"typescript": "^4.7.4",
68+
"vite": "^3.0.8",
69+
"vitest": "^0.22.0"
70+
}
71+
}

0 commit comments

Comments
 (0)