Skip to content

Commit

Permalink
wip(build): tuning up build process
Browse files Browse the repository at this point in the history
  • Loading branch information
HusamElbashir committed Sep 21, 2020
1 parent 5388681 commit 2f0bda7
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 58 deletions.
3 changes: 2 additions & 1 deletion build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const argv = minimist(process.argv.slice(2))
const projectRoot = path.resolve(__dirname, '..')

const baseConfig = {
input: 'src/entry.ts',
input: 'src/components/index.ts',
plugins: {
preVue: [
alias({
Expand Down Expand Up @@ -56,6 +56,7 @@ const external = [
// list external dependencies, exactly the way it is written in the import statement.
// eg. 'jquery'
...Object.keys(pkg.peerDependencies ? pkg.peerDependencies : {}),
...Object.keys(pkg.optionalDependencies ? pkg.optionalDependencies : {}),
]

// UMD/IIFE shared settings: output.globals
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
[
'@vuepress/register-components',
{
componentsDir: path.resolve(__dirname, '../../src/lib-components'),
componentsDir: path.resolve(__dirname, '../../src/components'),
},
],
],
Expand Down
4 changes: 4 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# vue-roughviz

<BarChart :chartData="{ labels: ['a', 'b'], values: [10, 20]}" style="width: 100%; height: 800px" />

<PieChart :chartData="{ labels: ['a', 'b'], values: [10, 20]}" :colors="['coral', 'skyblue', '#66c2a5']" style="width: 100%; height: 800px" />

<DonutChart :chartData="{ labels: ['a', 'b'], values: [10, 20]}" :colors="['coral', 'skyblue', '#66c2a5']" style="width: 100%; height: 800px" />
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
56 changes: 0 additions & 56 deletions src/entry.ts

This file was deleted.

0 comments on commit 2f0bda7

Please sign in to comment.