chore: use lerna

This commit is contained in:
Rongjian Zhang 2021-02-22 15:50:30 +08:00
parent 9975cf2a0a
commit 8e78e6fe85
48 changed files with 9089 additions and 1645 deletions

View File

@ -1,8 +0,0 @@
# Changesets
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/master/docs/common-questions.md)

View File

@ -1,10 +0,0 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.5.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": true,
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}

View File

@ -1,24 +0,0 @@
name: changesets
on:
push:
branches:
- main
env:
CI: true
jobs:
version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm i pnpm@latest -g && pnpm install
- uses: changesets/action@master
with:
publish: npm run build:ci && npx changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

14
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: test
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm i pnpm@latest -g
- run: pnpm install
- run: npm test

3
.npmrc Normal file
View File

@ -0,0 +1,3 @@
save-workspace-protocol=false
prefer-workspace-packages=true
registry=https://registry.npmjs.org

View File

@ -10,15 +10,15 @@
"@rollup/plugin-commonjs": "^16.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^10.0.0",
"@rollup/plugin-replace": "^2.3.4",
"rollup": "^2.3.4",
"@rollup/plugin-replace": "^2.4.0",
"rollup": "^2.39.0",
"rollup-plugin-livereload": "^2.0.0",
"rollup-plugin-postcss": "^3.1.8",
"rollup-plugin-svelte": "^7.0.0",
"rollup-plugin-terser": "^7.0.0",
"svelte": "^3.0.0"
"rollup-plugin-svelte": "^7.1.0",
"rollup-plugin-terser": "^7.0.2",
"svelte": "^3.32.3"
},
"dependencies": {
"sirv-cli": "^1.0.0"
"sirv-cli": "^1.0.11"
}
}

View File

@ -0,0 +1 @@
../../svelte/public/example.md

View File

@ -9,18 +9,28 @@
"start": "node __sapper__/build"
},
"dependencies": {
"compression": "^1.7.1",
"compression": "^1.7.4",
"polka": "next",
"sirv": "^0.4.0"
"sirv": "^0.4.6"
},
"devDependencies": {
"@bytemd/plugin-breaks": "^1.4.0",
"@bytemd/plugin-footnotes": "^1.4.0",
"@bytemd/plugin-frontmatter": "^1.4.0",
"@bytemd/plugin-gemoji": "^1.4.0",
"@bytemd/plugin-gfm": "^1.4.0",
"@bytemd/plugin-highlight": "^1.4.0",
"@bytemd/plugin-math": "^1.4.0",
"@bytemd/plugin-medium-zoom": "^1.4.0",
"@bytemd/plugin-mermaid": "^1.4.0",
"bytemd": "^1.4.0",
"css-loader": "^3.6.0",
"file-loader": "^6.0.0",
"file-loader": "^6.2.0",
"npm-run-all": "^4.1.5",
"sapper": "^0.27.0",
"style-loader": "^1.2.1",
"svelte": "^3.0.0",
"svelte-loader": "^2.9.0",
"webpack": "^4.7.0"
"sapper": "^0.27.16",
"style-loader": "^1.3.0",
"svelte": "^3.32.3",
"svelte-loader": "^2.13.6",
"webpack": "^4.46.0"
}
}

View File

@ -0,0 +1 @@
../../svelte/src/App.svelte

View File

@ -1,5 +1,5 @@
<script>
import App from '../../../svelte/src/App.svelte';
import App from '../App.svelte';
</script>
<App />

View File

@ -3,18 +3,30 @@
"private": true,
"version": "0.0.1",
"devDependencies": {
"cross-env": "^5.2.0",
"@bytemd/plugin-breaks": "^1.4.0",
"@bytemd/plugin-footnotes": "^1.4.0",
"@bytemd/plugin-frontmatter": "^1.4.0",
"@bytemd/plugin-gemoji": "^1.4.0",
"@bytemd/plugin-gfm": "^1.4.0",
"@bytemd/plugin-highlight": "^1.4.0",
"@bytemd/plugin-math": "^1.4.0",
"@bytemd/plugin-medium-zoom": "^1.4.0",
"@bytemd/plugin-mermaid": "^1.4.0",
"bytemd": "^1.4.0",
"cross-env": "^5.2.1",
"css-loader": "^2.1.1",
"file-loader": "^6.0.0",
"file-loader": "^6.2.0",
"github-markdown-css": "^4.0.0",
"juejin-markdown-themes": "^1.17.0",
"juejin-markdown-themes": "^1.17.1",
"normalize.css": "^8.0.1",
"style-loader": "^0.23.1",
"svelte": "^3.32.3",
"svelte-loader": "2.13.6",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.0",
"webpack-dev-server": "^3.3.1"
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.2",
"highlight.js": "^10.6.0",
"katex": "^0.12.0"
},
"scripts": {
"build": "cross-env NODE_ENV=production webpack",

View File

@ -1,14 +1,14 @@
<script>
import { onMount } from 'svelte';
import { Editor } from 'bytemd';
import breaks from '@bytemd/plugin-breaks';
import footnotes from '@bytemd/plugin-footnotes';
import frontmatter from '@bytemd/plugin-frontmatter';
import gfm from '@bytemd/plugin-gfm';
import highlight from '@bytemd/plugin-highlight';
import math from '@bytemd/plugin-math';
import breaks from '@bytemd/plugin-breaks';
import mermaid from '@bytemd/plugin-mermaid';
import footnotes from '@bytemd/plugin-footnotes';
import frontmatter from '@bytemd/plugin-frontmatter';
import mediumZoom from '@bytemd/plugin-medium-zoom';
import mermaid from '@bytemd/plugin-mermaid';
import gemoji from '@bytemd/plugin-gemoji';
import en from 'bytemd/lib/locales/en-US';

View File

@ -9,7 +9,6 @@
"generate": "nuxt generate"
},
"dependencies": {
"nuxt": "^2.13.0"
},
"devDependencies": {}
"nuxt": "^2.15.1"
}
}

9
lerna.json Normal file
View File

@ -0,0 +1,9 @@
{
"packages": ["packages/*"],
"version": "1.4.0",
"command": {
"publish": {
"conventionalCommits": true
}
}
}

View File

@ -2,4 +2,4 @@
[build]
publish = "examples/svelte/public"
command = "npm run build && cd examples/svelte && npm install && npm run build"
command = "npm run build && cd examples/svelte && npm run build"

View File

@ -11,20 +11,20 @@
"dev:process": "node -r esm scripts/process.js --watch",
"test": "BABEL_ENV=test jest",
"test:watch": "BABEL_ENV=test npm run test -- --watch",
"postinstall": "node -r esm scripts/postinstall.js"
"postinstall": "node -r esm scripts/postinstall.js",
"pub": "lerna publish --yes"
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/plugin-transform-runtime": "^7.12.15",
"@babel/preset-env": "^7.12.16",
"@changesets/cli": "^2.14.1",
"@babel/core": "^7.12.17",
"@babel/plugin-transform-runtime": "^7.12.17",
"@babel/preset-env": "^7.12.17",
"@icon-park/svg": "^1.2.7",
"@primer/css": "^15.2.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.2.0",
"@rollup/plugin-replace": "^2.3.4",
"@rollup/plugin-replace": "^2.4.0",
"@testing-library/jest-dom": "^5.11.9",
"@testing-library/svelte": "^3.0.3",
"@types/jest": "^26.0.20",
@ -33,7 +33,8 @@
"fs-extra": "^9.1.0",
"glob": "^7.1.6",
"jest": "^26.6.3",
"lodash": "^4.17.20",
"lerna": "^3.22.1",
"lodash": "^4.17.21",
"mustache": "^4.1.0",
"node-sass": "^5.0.0",
"npm-run-all": "^4.1.5",

View File

@ -1,11 +0,0 @@
# bytemd
## 1.4.0
### Minor Changes
- 753eba3: Minor version up
- fd7dc5f: - Markdown cheatsheet and shortcuts
- Table of content
- Auto switch mode
- Refine toolbar actions
- Supports i18n locales

View File

@ -25,13 +25,13 @@
"lib"
],
"dependencies": {
"@popperjs/core": "^2.7.0",
"@popperjs/core": "^2.8.2",
"@types/classnames": "^2.2.11",
"@types/codemirror": "^0.0.108",
"@types/lodash.debounce": "^4.0.6",
"@types/lodash.throttle": "^4.1.6",
"classnames": "^2.2.6",
"codemirror": "^5.59.2",
"codemirror": "^5.59.3",
"hast-util-sanitize": "^3.0.2",
"lodash.debounce": "^4.0.8",
"lodash.throttle": "^4.1.1",

View File

@ -1,12 +0,0 @@
# @bytemd/mp
## 1.4.0
### Minor Changes
- 753eba3: Minor version up
### Patch Changes
- Updated dependencies [753eba3]
- Updated dependencies [fd7dc5f]
- bytemd@1.4.0

View File

@ -20,7 +20,7 @@
"lib"
],
"dependencies": {
"bytemd": "workspace:^1.4.0"
"bytemd": "^1.4.0"
},
"devDependencies": {
"miniprogram-api-typings": "^3.2.2"

View File

@ -1,6 +0,0 @@
# @bytemd/plugin-breaks
## 1.4.0
### Minor Changes
- 753eba3: Minor version up

View File

@ -22,6 +22,6 @@
"remark-breaks": "^2.0.1"
},
"devDependencies": {
"bytemd": "workspace:^1.4.0"
"bytemd": "^1.4.0"
}
}

View File

@ -1,6 +0,0 @@
# @bytemd/plugin-footnotes
## 1.4.0
### Minor Changes
- 753eba3: Minor version up

View File

@ -22,6 +22,6 @@
"remark-footnotes": "^3.0.0"
},
"devDependencies": {
"bytemd": "workspace:^1.4.0"
"bytemd": "^1.4.0"
}
}

View File

@ -1,6 +0,0 @@
# @bytemd/plugin-frontmatter
## 1.4.0
### Minor Changes
- 753eba3: Minor version up

View File

@ -24,7 +24,7 @@
"remark-frontmatter": "^3.0.0"
},
"devDependencies": {
"bytemd": "workspace:^1.4.0",
"bytemd": "^1.4.0",
"vfile": "^4.2.1"
}
}

View File

@ -1,6 +0,0 @@
# @bytemd/plugin-gemoji
## 1.4.0
### Minor Changes
- 753eba3: Minor version up

View File

@ -22,6 +22,6 @@
"remark-gemoji": "^6.0.0"
},
"devDependencies": {
"bytemd": "workspace:^1.4.0"
"bytemd": "^1.4.0"
}
}

View File

@ -1,6 +0,0 @@
# @bytemd/plugin-gfm
## 1.4.0
### Minor Changes
- 753eba3: Minor version up

View File

@ -22,6 +22,6 @@
"remark-gfm": "^1.0.0"
},
"devDependencies": {
"bytemd": "workspace:^1.4.0"
"bytemd": "^1.4.0"
}
}

View File

@ -1,6 +0,0 @@
# @bytemd/plugin-highlight-ssr
## 1.4.0
### Minor Changes
- 753eba3: Minor version up

View File

@ -19,9 +19,9 @@
"lib"
],
"dependencies": {
"rehype-highlight": "^4.0.1"
"rehype-highlight": "^4.1.0"
},
"devDependencies": {
"bytemd": "workspace:^1.4.0"
"bytemd": "^1.4.0"
}
}

View File

@ -1,6 +0,0 @@
# @bytemd/plugin-highlight
## 1.4.0
### Minor Changes
- 753eba3: Minor version up

View File

@ -22,6 +22,6 @@
"highlight.js": "^10.6.0"
},
"devDependencies": {
"bytemd": "workspace:^1.4.0"
"bytemd": "^1.4.0"
}
}

View File

@ -1,6 +0,0 @@
# @bytemd/plugin-math-ssr
## 1.4.0
### Minor Changes
- 753eba3: Minor version up

View File

@ -23,6 +23,6 @@
"remark-math": "^4.0.0"
},
"devDependencies": {
"bytemd": "workspace:^1.4.0"
"bytemd": "^1.4.0"
}
}

View File

@ -1,6 +0,0 @@
# @bytemd/plugin-math
## 1.4.0
### Minor Changes
- 753eba3: Minor version up

View File

@ -24,6 +24,6 @@
"remark-math": "^4.0.0"
},
"devDependencies": {
"bytemd": "workspace:^1.4.0"
"bytemd": "^1.4.0"
}
}

View File

@ -1,6 +0,0 @@
# @bytemd/plugin-medium-zoom
## 1.4.0
### Minor Changes
- 753eba3: Minor version up

View File

@ -22,6 +22,6 @@
"medium-zoom": "^1.0.6"
},
"devDependencies": {
"bytemd": "workspace:^1.4.0"
"bytemd": "^1.4.0"
}
}

View File

@ -1,6 +0,0 @@
# @bytemd/plugin-mermaid
## 1.4.0
### Minor Changes
- 753eba3: Minor version up

View File

@ -19,10 +19,10 @@
"lib"
],
"dependencies": {
"@types/mermaid": "^8.2.1",
"mermaid": "^8.9.0"
"@types/mermaid": "^8.2.2",
"mermaid": "^8.9.1"
},
"devDependencies": {
"bytemd": "workspace:^1.4.0"
"bytemd": "^1.4.0"
}
}

View File

@ -1,12 +0,0 @@
# @bytemd/react
## 1.4.0
### Minor Changes
- 753eba3: Minor version up
### Patch Changes
- Updated dependencies [753eba3]
- Updated dependencies [fd7dc5f]
- bytemd@1.4.0

View File

@ -19,7 +19,7 @@
"lib"
],
"dependencies": {
"bytemd": "workspace:^1.4.0"
"bytemd": "^1.4.0"
},
"peerDependencies": {
"react": "*"

View File

@ -1,12 +0,0 @@
# @bytemd/vue
## 1.4.0
### Minor Changes
- 753eba3: Minor version up
### Patch Changes
- Updated dependencies [753eba3]
- Updated dependencies [fd7dc5f]
- bytemd@1.4.0

View File

@ -19,7 +19,7 @@
"lib"
],
"dependencies": {
"bytemd": "workspace:^1.4.0"
"bytemd": "^1.4.0"
},
"peerDependencies": {
"vue": "^2.0.0"

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +1,3 @@
packages:
- 'packages/**'
- packages/**
- examples/**