2.0.0 • Published 3 years ago
@dojo/parade v2.0.0
@dojo/parade
A library to show off your widget library.
- Show running demos
- Syntax highlighted example code
- Auto documented widget properties
- Auto documented theme class hooks
- Run on codesandbox
- Run unit tests
Usage
npm install @dojo/parade
.dojorc
{
"extends": "./node_modules/@dojo/parade/parade.json"
}
main.tsx
import parade from '@dojo/parade';
// import your parade config
import config from './config';
parade({ config });
Example config:
config.tsx
import dojoTheme from '@dojo/themes/dojo';
import '@dojo/themes/dojo/index.css';
import BasicAccordion from './widgets/accordion/Basic';
import Exclusive from './widgets/accordion/Exclusive';
import BasicButton from './widgets/button/Basic';
import DisabledSubmit from './widgets/button/DisabledSubmit';
import ToggleButton from './widgets/button/ToggleButton';
const tests = (require as any).context('./', true, /\.spec\.ts(x)?$/);
export default {
header: 'My Widget Library',
codesandbox: {},
tests,
themes: [ dojoTheme ],
widgets: {
accordion: {
examples: [
{
filename: 'Exclusive',
module: Exclusive
}
],
filename: 'index',
overview: {
example: {
filename: 'Basic',
module: BasicAccordion
}
}
},
button: {
examples: [
{
filename: 'DisabledSubmit',
module: DisabledSubmit,
title: 'Disabled Submit Button'
},
{
filename: 'ToggleButton',
module: ToggleButton,
title: 'Toggle Button'
}
],
filename: 'index',
overview: {
example: {
filename: 'Basic',
module: BasicButton
}
}
}
}
2.0.0-rc.2
3 years ago
2.0.0-rc.3
3 years ago
2.0.0-rc.4
3 years ago
2.0.0-rc.1
3 years ago
2.0.0
3 years ago
1.0.1
3 years ago
1.0.0
4 years ago
1.0.0-rc.3
4 years ago
1.0.0-rc.1
4 years ago
1.0.0-rc.2
4 years ago
1.0.0-beta.1
4 years ago
0.0.15
4 years ago
0.0.14
4 years ago
0.0.11
4 years ago
0.0.12
4 years ago
0.0.13
4 years ago
0.0.10
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago