diff --git a/.changeset/README.md b/.changeset/README.md deleted file mode 100644 index 4f3b76b..0000000 --- a/.changeset/README.md +++ /dev/null @@ -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) diff --git a/.changeset/config.json b/.changeset/config.json deleted file mode 100644 index f3609a5..0000000 --- a/.changeset/config.json +++ /dev/null @@ -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": [] -} diff --git a/.github/workflows/changsets.yml b/.github/workflows/changsets.yml deleted file mode 100644 index 493db2a..0000000 --- a/.github/workflows/changsets.yml +++ /dev/null @@ -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 }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..ca33277 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..1937b92 --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +save-workspace-protocol=false +prefer-workspace-packages=true +registry=https://registry.npmjs.org diff --git a/examples/svelte-rollup/package.json b/examples/svelte-rollup/package.json index 463cf60..6ce8f88 100644 --- a/examples/svelte-rollup/package.json +++ b/examples/svelte-rollup/package.json @@ -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" } } diff --git a/examples/svelte-rollup/public/example.md b/examples/svelte-rollup/public/example.md new file mode 120000 index 0000000..da7df5a --- /dev/null +++ b/examples/svelte-rollup/public/example.md @@ -0,0 +1 @@ +../../svelte/public/example.md \ No newline at end of file diff --git a/examples/svelte-ssr/package.json b/examples/svelte-ssr/package.json index 50f93ed..68c6473 100644 --- a/examples/svelte-ssr/package.json +++ b/examples/svelte-ssr/package.json @@ -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" } } diff --git a/examples/svelte-ssr/src/App.svelte b/examples/svelte-ssr/src/App.svelte new file mode 120000 index 0000000..da36648 --- /dev/null +++ b/examples/svelte-ssr/src/App.svelte @@ -0,0 +1 @@ +../../svelte/src/App.svelte \ No newline at end of file diff --git a/examples/svelte-ssr/src/routes/index.svelte b/examples/svelte-ssr/src/routes/index.svelte index 16f3288..e3b0c62 100644 --- a/examples/svelte-ssr/src/routes/index.svelte +++ b/examples/svelte-ssr/src/routes/index.svelte @@ -1,5 +1,5 @@ diff --git a/examples/svelte/package.json b/examples/svelte/package.json index ba3c0e1..c3ff002 100644 --- a/examples/svelte/package.json +++ b/examples/svelte/package.json @@ -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", diff --git a/examples/svelte/src/App.svelte b/examples/svelte/src/App.svelte index e6e72bb..1ac6b94 100644 --- a/examples/svelte/src/App.svelte +++ b/examples/svelte/src/App.svelte @@ -1,14 +1,14 @@