This repository has been archived by the owner on Apr 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Walker Leite
committed
Sep 12, 2017
1 parent
ff8ce27
commit c4e8605
Showing
5 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
> {{ description }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<{{ name }} text="Hello World!"></{{ name }}> | ||
|
||
* You can add more demos in `docs` directory (remember to update styleguide.config.js also) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
const {name, version} = require('./package.json') | ||
const loaders = require('vue-webpack-loaders'); | ||
|
||
module.exports = { | ||
components: 'src/**/[A-Z]*.vue', | ||
sections: [ | ||
{ | ||
/* The component itself */ | ||
name: '{{ name }}', | ||
content: 'docs/Introduction.md', | ||
components: 'src/Component/Component.vue', | ||
ignore: ['src/Component/Component.vue'], | ||
sections: [ | ||
/* One item for every different demo or doc of the component */ | ||
{ | ||
name: 'usage', | ||
content: 'docs/Usage.md' | ||
} | ||
] | ||
}, | ||
], | ||
webpackConfig: { | ||
module: { | ||
loaders, | ||
}, | ||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
'proccess.env.VERSION': JSON.stringify(version) // adds MyComponent.version | ||
}) | ||
] | ||
} | ||
}, | ||
serverPort: 6062 | ||
}; |