diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c32420b..55a1d70 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,9 +28,6 @@ jobs: env: CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}} - - name: Install Dependencies - run: pnpm install - - name: Publish to NPM run: pnpm publish --access public --no-git-checks env: diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..2e67492 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,163 @@ +# Changelog + +All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +# [0.7.0](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.6.0...v0.7.0) (2022-04-23) + + +### Bug Fixes + +* close [#40](https://github.com/BuptStEve/vuepress-plugin-demo-code/issues/40), add DemoCodePluginOptions ([fe0b917](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/fe0b917)) + + +### Features + +* add vueVersion ([9866b99](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/9866b99)) + +## [0.6.0](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.5.2...v0.6.0) (2021-06-23) + + +### Features + +* support jsfiddle framework API parameter ([deb58ce](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/deb58ce1f6983d9b5bfd5758bee34406e0a5a408)) + +## [0.5.2](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.5.1...v0.5.2) (2020-07-22) + + + +## [0.5.1](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.5.0...v0.5.1) (2020-07-22) + + +### Bug Fixes + +* v0.5.1, close [#28](https://github.com/BuptStEve/vuepress-plugin-demo-code/issues/28), update deps ([#29](https://github.com/BuptStEve/vuepress-plugin-demo-code/issues/29)) ([15a3612](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/15a361241a92cd1775874a3efbb6530682a186f0)) + + + +# [0.5.0](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.4.2...v0.5.0) (2019-12-19) + + +### Features + +* close [#19](https://github.com/BuptStEve/vuepress-plugin-demo-code/issues/19), add vuepress-plugin-code-copy to support copy code ([#22](https://github.com/BuptStEve/vuepress-plugin-demo-code/issues/22)) ([3c334b3](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/3c334b33947cd830762a17b97474f358023e3e1a)) + + + +## [0.4.2](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.4.1...v0.4.2) (2019-11-27) + + +### Bug Fixes + +* prevent Prism calling highlightAll ([#21](https://github.com/BuptStEve/vuepress-plugin-demo-code/issues/21)) ([075d0e4](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/075d0e4607356fffe128a5e1e8098862068ccb5b)) + + + +## [0.4.1](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.4.0...v0.4.1) (2019-11-27) + + +### Bug Fixes + +* add missing language mark back ([#20](https://github.com/BuptStEve/vuepress-plugin-demo-code/issues/20)) ([1482991](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/14829914867377a6d2358610763a70b5fff1cf1a)) + + + +# [0.4.0](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.3.7...v0.4.0) (2019-11-21) + + +### Performance Improvements + +* close [#16](https://github.com/BuptStEve/vuepress-plugin-demo-code/issues/16), use v-html to render code at runtime in DemoAndCode.vue ([#18](https://github.com/BuptStEve/vuepress-plugin-demo-code/issues/18)) ([0b521d3](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/0b521d357c4f5c6b6781ac2860ae17ff26524a83)) + + + +## [0.3.7](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.3.6...v0.3.7) (2019-10-12) + + +### Bug Fixes + +* **online-edit:** fix codesandbox's js entry file name ([#15](https://github.com/BuptStEve/vuepress-plugin-demo-code/issues/15)) ([ee0b883](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/ee0b88322a4e498d173bb3f894dfd3e4d692b831)) + + + +## [0.3.6](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.3.5...v0.3.6) (2019-10-11) + + +### Bug Fixes + +* close [#12](https://github.com/BuptStEve/vuepress-plugin-demo-code/issues/12), render example code for inline elements ([#14](https://github.com/BuptStEve/vuepress-plugin-demo-code/issues/14)) ([f677c3e](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/f677c3e726354a2be17366cd9055fd247bafbbab)) + + +### Features + +* add vuepress-plugin-smooth-scroll ([#7](https://github.com/BuptStEve/vuepress-plugin-demo-code/issues/7)) ([22b5034](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/22b503452c511f1cab1101ebd35c30034233b509)) + + + +## [0.3.5](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.3.4...v0.3.5) (2019-02-25) + + +### Bug Fixes + +* tooltip ([eac4c4a](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/eac4c4ae52cef7979d84c4d1b42ae0165196e8cb)) + + + +## [0.3.4](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.3.3...v0.3.4) (2019-02-25) + + +### Bug Fixes + +* sticky on mobile devices ([06e92ab](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/06e92ab5f6365f7e435eb110d28a3c46058d737c)) + + + +## [0.3.3](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.3.2...v0.3.3) (2019-02-25) + + +### Bug Fixes + +* close [#6](https://github.com/BuptStEve/vuepress-plugin-demo-code/issues/6), modify css ([ff6df34](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/ff6df345bb5f8989f63040e86b4334a8e1919b0b)) + + +### Features + +* use markdown-it-include ([5843c63](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/5843c63020923bd0e6ea7631835433eba8b06d06)) + + + +## [0.3.2](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.3.1...v0.3.2) (2019-02-13) + + +### Bug Fixes + +* enhance small screen experience ([344077a](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/344077a0d0a72ed556cff2f540c61f2a8b0772fe)) + + + +## [0.3.1](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.3.0...v0.3.1) (2019-02-13) + + + +# [0.3.0](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.2.1...v0.3.0) (2019-02-13) + + + +## [0.2.1](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.2.0...v0.2.1) (2019-02-12) + + + +# [0.2.0](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/v0.1.0...v0.2.0) (2019-02-01) + + +### Features + +* support pass config ([0559a36](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/0559a36c4bb6eff73bd449df9ef171baae79b2d6)) + + + +# [0.1.0](https://github.com/BuptStEve/vuepress-plugin-demo-code/compare/37edb7e8336ed35b14408a5661c55b776014f5d7...v0.1.0) (2019-01-27) + + +### Features + +* basic function ([37edb7e](https://github.com/BuptStEve/vuepress-plugin-demo-code/commit/37edb7e8336ed35b14408a5661c55b776014f5d7)) diff --git a/package.json b/package.json index 4a5134a..c58da6f 100644 --- a/package.json +++ b/package.json @@ -15,11 +15,8 @@ "lint": "eslint --fix . docs/.vuepress/ --ext .js,.vue --ignore-path .gitignore", "test": "cross-env NODE_ENV=test jest", "test:tdd": "cross-env NODE_ENV=test jest --watch", - "release": "standard-version -n", - "next:pm": "npm --no-git-tag-version version preminor", - "next:pr": "npm --no-git-tag-version version prerelease", - "pub": "npm publish", - "pub:n": "npm publish --tag next" + "release": "HUSKY=0 standard-version", + "pub:n": "HUSKY=0 bumpp --commit 'chore: v%s' --push && npm publish --tag next" }, "lint-staged": { "{src,test}/**/*.{js,vue}": [ @@ -46,6 +43,7 @@ "all-contributors-cli": "^6.20.0", "babel-core": "^7.0.0-bridge.0", "babel-eslint": "^10.1.0", + "bumpp": "^7.1.1", "codecov": "^3.8.3", "cross-env": "^7.0.3", "cz-conventional-changelog": "^3.3.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c66226f..e46fc31 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,6 +9,7 @@ specifiers: all-contributors-cli: ^6.20.0 babel-core: ^7.0.0-bridge.0 babel-eslint: ^10.1.0 + bumpp: ^7.1.1 codecov: ^3.8.3 codesandbox-import-utils: ^2.2.3 cross-env: ^7.0.3 @@ -52,6 +53,7 @@ devDependencies: all-contributors-cli: 6.20.0 babel-core: 7.0.0-bridge.0_@babel+core@7.17.9 babel-eslint: 10.1.0_eslint@7.32.0 + bumpp: 7.1.1 codecov: 3.8.3 cross-env: 7.0.3 cz-conventional-changelog: 3.3.0 @@ -1764,6 +1766,16 @@ packages: '@jridgewell/sourcemap-codec': 1.4.11 dev: true + /@jsdevtools/ez-spawn/3.0.4: + resolution: {integrity: sha512-f5DRIOZf7wxogefH03RjMPMdBF7ADTWUMoOs9kaJo06EfwF+aFhMZMDZxHg/Xe12hptN9xoZjGso2fdjapBRIA==} + engines: {node: '>=10'} + dependencies: + call-me-maybe: 1.0.1 + cross-spawn: 7.0.3 + string-argv: 0.3.1 + type-detect: 4.0.8 + dev: true + /@mrmlnc/readdir-enhanced/2.2.1: resolution: {integrity: sha512-bPHp6Ji8b41szTOcaP63VlnbbO5Ny6dwAATtY6JTjh5N2OLrb5Qk/Th5cRkRQhkWCt+EJsYrNB0MiL+Gpn6e3g==} engines: {node: '>=4'} @@ -1772,11 +1784,32 @@ packages: glob-to-regexp: 0.3.0 dev: true + /@nodelib/fs.scandir/2.1.5: + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + dev: true + /@nodelib/fs.stat/1.1.3: resolution: {integrity: sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==} engines: {node: '>= 6'} dev: true + /@nodelib/fs.stat/2.0.5: + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + dev: true + + /@nodelib/fs.walk/1.2.8: + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.13.0 + dev: true + /@sindresorhus/is/0.14.0: resolution: {integrity: sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==} engines: {node: '>=6'} @@ -2835,6 +2868,11 @@ packages: engines: {node: '>=0.10.0'} dev: true + /array-back/3.1.0: + resolution: {integrity: sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==} + engines: {node: '>=6'} + dev: true + /array-flatten/1.1.1: resolution: {integrity: sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=} dev: true @@ -2865,6 +2903,11 @@ packages: array-uniq: 1.0.3 dev: true + /array-union/2.1.0: + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} + engines: {node: '>=8'} + dev: true + /array-uniq/1.0.3: resolution: {integrity: sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=} engines: {node: '>=0.10.0'} @@ -3475,6 +3518,19 @@ packages: resolution: {integrity: sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=} dev: true + /bumpp/7.1.1: + resolution: {integrity: sha512-pAGjraw9T4I4dnkiQHrKUVQb55dOM5Nj72SVtVlkjFjWjFtg0aSgipQuxDWZ0cqm8WoqtaiBPk+7jHfnZxr7lA==} + engines: {node: '>=10'} + hasBin: true + dependencies: + '@jsdevtools/ez-spawn': 3.0.4 + chalk: 4.1.2 + command-line-args: 5.2.1 + globby: 11.1.0 + prompts: 2.4.2 + semver: 7.3.7 + dev: true + /bundle-require/2.1.8_esbuild@0.14.7: resolution: {integrity: sha512-oOEg3A0hy/YzvNWNowtKD0pmhZKseOFweCbgyMqTIih4gRY1nJWsvrOCT27L9NbIyL5jMjTFrAUpGxxpW68Puw==} peerDependencies: @@ -3955,6 +4011,16 @@ packages: delayed-stream: 1.0.0 dev: true + /command-line-args/5.2.1: + resolution: {integrity: sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==} + engines: {node: '>=4.0.0'} + dependencies: + array-back: 3.1.0 + find-replace: 3.0.0 + lodash.camelcase: 4.3.0 + typical: 4.0.0 + dev: true + /commander/2.17.1: resolution: {integrity: sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==} dev: true @@ -5012,6 +5078,13 @@ packages: path-type: 3.0.0 dev: true + /dir-glob/3.0.1: + resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} + engines: {node: '>=8'} + dependencies: + path-type: 4.0.0 + dev: true + /dns-equal/1.0.0: resolution: {integrity: sha1-s55/HabrCnW6nBcySzR1PEfgZU0=} dev: true @@ -5998,6 +6071,17 @@ packages: micromatch: 3.1.10 dev: true + /fast-glob/3.2.11: + resolution: {integrity: sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==} + engines: {node: '>=8.6.0'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.5 + dev: true + /fast-json-stable-stringify/2.1.0: resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} dev: true @@ -6012,6 +6096,12 @@ packages: punycode: 1.4.1 dev: true + /fastq/1.13.0: + resolution: {integrity: sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==} + dependencies: + reusify: 1.0.4 + dev: true + /faye-websocket/0.11.4: resolution: {integrity: sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==} engines: {node: '>=0.8.0'} @@ -6142,6 +6232,13 @@ packages: merge: 2.1.1 dev: true + /find-replace/3.0.0: + resolution: {integrity: sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==} + engines: {node: '>=4.0.0'} + dependencies: + array-back: 3.1.0 + dev: true + /find-root/1.1.0: resolution: {integrity: sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==} dev: true @@ -6585,6 +6682,18 @@ packages: engines: {node: '>=0.10.0'} dev: true + /globby/11.1.0: + resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} + engines: {node: '>=10'} + dependencies: + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.2.11 + ignore: 5.2.0 + merge2: 1.4.1 + slash: 3.0.0 + dev: true + /globby/6.1.0: resolution: {integrity: sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=} engines: {node: '>=0.10.0'} @@ -8566,6 +8675,10 @@ packages: resolution: {integrity: sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=} dev: true + /lodash.camelcase/4.3.0: + resolution: {integrity: sha1-soqmKIorn8ZRA1x3EfZathkDMaY=} + dev: true + /lodash.clonedeep/4.5.0: resolution: {integrity: sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=} dev: true @@ -10352,6 +10465,10 @@ packages: resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} dev: true + /queue-microtask/1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + dev: true + /quick-lru/4.0.1: resolution: {integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==} engines: {node: '>=8'} @@ -10740,6 +10857,11 @@ packages: engines: {node: '>= 4'} dev: true + /reusify/1.0.4: + resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + dev: true + /rfdc/1.3.0: resolution: {integrity: sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==} dev: true @@ -10778,6 +10900,12 @@ packages: engines: {node: '>=0.12.0'} dev: true + /run-parallel/1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + dependencies: + queue-microtask: 1.2.3 + dev: true + /run-queue/1.0.3: resolution: {integrity: sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec=} dependencies: @@ -12035,6 +12163,11 @@ packages: dev: true optional: true + /typical/4.0.0: + resolution: {integrity: sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==} + engines: {node: '>=8'} + dev: true + /uc.micro/1.0.6: resolution: {integrity: sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==} dev: true