Skip to content

Commit 44cdbb5

Browse files
committed
update example
1 parent 894801c commit 44cdbb5

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

example/package-lock.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"katex": "^0.15.2",
1414
"nuxt": "^2.15.8",
1515
"prismjs": "^1.27.0",
16-
"vue-katex": "^0.5.0"
16+
"vue-katex": "^0.5.0",
17+
"vue-prism-component": "^1.2.0"
1718
},
1819
"devDependencies": {
1920
"vue-notion": "^1.4.1"

example/plugins/custom-code.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template>
22
<pre
3+
:class="['notion-code', langClass]"
34
:style="{
45
border: '3px solid tomato',
56
}"
6-
:class="['notion-code', langClass]"
77
>
88
<PrismComponent v-if="prism && supported" :language="lang">{{ properties.title[0][0] }}</PrismComponent>
99
<code v-else :class="langClass">{{ properties.title[0][0] }}</code>

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
],
1616
"scripts": {
1717
"serve": "vue-cli-service serve dev/serve.js",
18-
"example": "npm run example:pack && cd example && npm run build && npm start",
19-
"example:pack": "npm run build && npm pack && cd example && npm install && npm install ../*.tgz",
20-
"example:generate": "npm run example:pack && cd example && npm run build && npm run generate",
18+
"example": "npm run example:install && cd example && npm run build && npm start",
19+
"example:install": "npm pack && cd example && npm install && npm install ../*.tgz",
20+
"example:generate": "npm run example:install && cd example && npm run build && npm run generate",
2121
"build": "cross-env NODE_ENV=production rollup --config build/rollup.config.js",
2222
"build:ssr": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format cjs",
2323
"build:es": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es",
2424
"build:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife",
25+
"clean": "rm -rf node_modules dist example/node_modules example/dist example/.nuxt",
2526
"release:minor": "npm version minor -m 'Release %s' && npm publish",
2627
"release:patch": "npm version patch -m 'Release %s' && npm publish",
2728
"postpublish": "echo \"\\033[31m !!! Now, manually run: ./scripts/postpublish.sh !!! \\033[00m\"",

0 commit comments

Comments
 (0)