Skip to content

Commit 3e61d12

Browse files
committed
initial commit
0 parents  commit 3e61d12

12 files changed

+3588
-0
lines changed

.github/workflows/ci.yml

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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+
typecheck:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v3
35+
- name: Set node
36+
uses: actions/setup-node@v3
37+
with:
38+
node-version: 16.x
39+
40+
- name: Setup
41+
run: npm i -g @antfu/ni
42+
43+
- name: Install
44+
run: nci
45+
46+
- name: Typecheck
47+
run: nr typecheck
48+
49+
test:
50+
runs-on: ${{ matrix.os }}
51+
52+
strategy:
53+
matrix:
54+
node: [14.x, 16.x]
55+
os: [ubuntu-latest, windows-latest, macos-latest]
56+
fail-fast: false
57+
58+
steps:
59+
- uses: actions/checkout@v3
60+
- name: Set node ${{ matrix.node }}
61+
uses: actions/setup-node@v3
62+
with:
63+
node-version: ${{ matrix.node }}
64+
65+
- name: Setup
66+
run: npm i -g @antfu/ni
67+
68+
- name: Install
69+
run: nci
70+
71+
- name: Build
72+
run: nr build
73+
74+
- name: Test
75+
run: nr test

.github/workflows/release.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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@v3
13+
with:
14+
fetch-depth: 0
15+
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 16.x
19+
20+
- run: npx changelogithub
21+
env:
22+
GITHUB_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

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

LICENSE

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

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# library-starter
2+
3+
Features:
4+
5+
- Package manager [pnpm](https://pnpm.js.org/), safe and fast
6+
- Execute TypeScript with [tsx](https://github.com/esbuild-kit/tsx)
7+
- Bundle with [tsup](https://github.com/egoist/tsup)
8+
- Test with [vitest](https://vitest.dev)
9+
10+
## License
11+
12+
[MIT](./LICENSE) License © 2022 [Robert Soriano](https://github.com/wobsoriano)

package.json

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"name": "v-satori",
3+
"version": "0.0.0",
4+
"packageManager": "[email protected]",
5+
"description": "",
6+
"author": "Robert Soriano <[email protected]>",
7+
"license": "MIT",
8+
"homepage": "https://github.com/wobsoriano/v-satori#readme",
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/wobsoriano/v-satori.git"
12+
},
13+
"bugs": "https://github.com/wobsoriano/v-satori/issues",
14+
"keywords": [],
15+
"sideEffects": false,
16+
"exports": {
17+
".": {
18+
"types": "./dist/index.d.ts",
19+
"require": "./dist/index.js",
20+
"import": "./dist/index.mjs"
21+
}
22+
},
23+
"main": "./dist/index.js",
24+
"module": "./dist/index.mjs",
25+
"types": "./dist/index.d.ts",
26+
"files": [
27+
"dist"
28+
],
29+
"scripts": {
30+
"build-fast": "tsup src/index.ts --format cjs,esm",
31+
"build": "nr build-fast --dts-resolve",
32+
"lint": "eslint .",
33+
"prepublishOnly": "nr build",
34+
"release": "bumpp && npm publish",
35+
"start": "tsx src/index.ts",
36+
"test": "vitest",
37+
"typecheck": "tsc --noEmit"
38+
},
39+
"peerDependencies": {
40+
"vue": "^3.2.0"
41+
},
42+
"dependencies": {
43+
"satori-html": "^0.3.0"
44+
},
45+
"devDependencies": {
46+
"@antfu/eslint-config": "^0.27.0",
47+
"@antfu/ni": "^0.18.2",
48+
"bumpp": "^8.2.1",
49+
"eslint": "^8.26.0",
50+
"pnpm": "^7.14.0",
51+
"tsup": "6.0.1",
52+
"tsx": "^3.10.4",
53+
"typescript": "^4.7.4",
54+
"vitest": "^0.24.3",
55+
"vue": "^3.2.41"
56+
},
57+
"eslintConfig": {
58+
"extends": "@antfu"
59+
}
60+
}

0 commit comments

Comments
 (0)