Skip to content

Commit

Permalink
chore: add bundle script
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Oct 1, 2024
1 parent 601f1c5 commit 36cace2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/markdown/plugin-markdown-chart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
],
"scripts": {
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
},
Expand Down
16 changes: 16 additions & 0 deletions plugins/markdown/plugin-markdown-chart/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { rollupBundle } from '../../../scripts/rollup.js'

export default [
...rollupBundle('node/index'),
...rollupBundle({
base: 'client',
files: [
'components/ChartJS',
'components/ECharts',
'components/FlowChart',
'components/MarkMap',
'components/Mermaid',
'index',
],
}),
]

0 comments on commit 36cace2

Please sign in to comment.