Skip to content

Commit 4487af9

Browse files
committed
chore: init commit
0 parents  commit 4487af9

17 files changed

+3727
-0
lines changed

.eslintrc

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

.github/FUNDING.yml

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

.github/workflows/lint.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Install pnpm
20+
uses: pnpm/[email protected]
21+
22+
- name: Set node
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: 16.x
26+
cache: pnpm
27+
28+
- name: Setup
29+
run: npm i -g @antfu/ni
30+
31+
- name: Install
32+
run: nci
33+
34+
- name: Lint
35+
run: nr lint

.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/[email protected]
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}}

.github/workflows/test.yml

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

.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) 2021 Anthony Fu <https://github.com/antfu>
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

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# [name]
2+
3+
[![NPM version](https://img.shields.io/npm/v/[name]?color=a1b858&label=)](https://www.npmjs.com/package/[name])
4+
5+
## Sponsors
6+
7+
<p align="center">
8+
<a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg">
9+
<img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>
10+
</a>
11+
</p>
12+
13+
```ts
14+
const a = 1
15+
```
16+
17+
## License
18+
19+
[MIT](./LICENSE) License © 2021 [Anthony Fu](https://github.com/antfu)

build.config.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineBuildConfig } from 'unbuild'
2+
3+
export default defineBuildConfig({
4+
entries: [
5+
'src/index',
6+
],
7+
declaration: true,
8+
clean: true,
9+
rollup: {
10+
emitCJS: true,
11+
},
12+
})

examples.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// import type MarkdownIt from 'markdown-it'

index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Document</title>
8+
</head>
9+
<body>
10+
<div id="#app"></div>
11+
12+
<script type="module" src="/examples.ts"></script>
13+
</body>
14+
</html>

package.json

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"name": "markdown-it-plugins",
3+
"version": "0.0.0",
4+
"packageManager": "[email protected]",
5+
"description": "",
6+
"keywords": ["markdown-it", "plugins"],
7+
"homepage": "https://github.com/banlify/markdown-it-plugins#readme",
8+
"bugs": {
9+
"url": "https://github.com/banlify/markdown-it-plugins/issues"
10+
},
11+
"license": "MIT",
12+
"author": "Chestnut <[email protected]>",
13+
"repository": {
14+
"type": "git",
15+
"url": "git+https://github.com/banlify/markdown-it-plugins.git"
16+
},
17+
"sideEffects": false,
18+
"main": "./dist/index.cjs",
19+
"module": "./dist/index.mjs",
20+
"types": "./dist/index.d.ts",
21+
"exports": {
22+
".": {
23+
"require": "./dist/index.cjs",
24+
"import": "./dist/index.mjs",
25+
"types": "./dist/index.d.ts"
26+
}
27+
},
28+
"files": [
29+
"dist"
30+
],
31+
"scripts": {
32+
"build": "rimraf dist && unbuild",
33+
"dev": "unbuild --stub",
34+
"lint": "eslint .",
35+
"prepublishOnly": "nr build",
36+
"release": "bumpp --commit --push --tag && pnpm publish",
37+
"start": "esno src/index.ts",
38+
"test": "vitest"
39+
},
40+
"devDependencies": {
41+
"@antfu/eslint-config": "^0.18.5",
42+
"@antfu/ni": "^0.13.2",
43+
"@types/markdown-it": "^12.2.3",
44+
"@types/node": "^17.0.21",
45+
"bumpp": "^7.1.1",
46+
"eslint": "^8.10.0",
47+
"esno": "^0.14.1",
48+
"markdown-it": "^12.3.2",
49+
"pnpm": "^6.32.3",
50+
"rimraf": "^3.0.2",
51+
"typescript": "^4.6.2",
52+
"unbuild": "^0.7.0",
53+
"vite": "^2.8.6"
54+
}
55+
}

0 commit comments

Comments
 (0)