Skip to content

Commit

Permalink
feat: prep for v0.23.0 release
Browse files Browse the repository at this point in the history
- set up badges for list and input
- remove old docs
- add new components to library exports (rollup)
  • Loading branch information
theetrain committed Oct 2, 2017
1 parent 1699d13 commit 8561a01
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 1,000 deletions.
5 changes: 4 additions & 1 deletion config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ export default {
extensions: ['.js', '.jsx']
}),
commonjs({
include: 'node_modules/**'
include: 'node_modules/**',
namedExports: {
'airbnb-prop-types': ['childrenOfType']
}
}),
postcss({
extract: path.resolve('./dist/tds.css'),
Expand Down
12 changes: 6 additions & 6 deletions config/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { version } = require('../package.json')

const styleguidistEnv = process.env.STYLEGUIDIST_ENV || 'dev' // dev, staging, production

const enabledInStaging = ['Input', 'Lists', 'Icon', 'Dividers']
const enabledInStaging = ['Icon', 'Dividers']

/* eslint-disable no-unused-vars */
const toggleByEnv = (component, toggledOffValue, toggledOnValue) => {
Expand Down Expand Up @@ -105,15 +105,15 @@ module.exports = {
},
{
name: 'Forms',
content: toggleByEnv('Input', path.resolve('docs/elements/forms-with-deprecated-input.md'), path.resolve('docs/elements/forms.md'))
content: path.resolve('docs/elements/forms-with-deprecated-input.md')
},
{
name: 'Grid',
content: path.resolve('docs/elements/grid.md')
},
{
name: 'Lists',
content: toggleByEnv('Lists', path.resolve('docs/elements/lists-deprecated.md'), path.resolve('docs/elements/lists.md'))
content: path.resolve('docs/elements/lists-deprecated.md')
},
{
name: 'Typography',
Expand Down Expand Up @@ -164,7 +164,7 @@ module.exports = {
]
}
},
toggleByEnv('Lists', {
{
name: 'Lists',
content: path.resolve('src/components/Lists/Lists.md'),
components() {
Expand All @@ -173,7 +173,7 @@ module.exports = {
path.resolve('src/components/Lists/OrderedList/OrderedList.jsx')
]
}
}),
},
{
name: 'Expand collapse',
components() {
Expand Down Expand Up @@ -253,7 +253,7 @@ module.exports = {
components() {
return compact([
path.resolve('src/components/Button/Button.jsx'),
toggleByEnv('Input', path.resolve('src/components/Input/Input.jsx')),
path.resolve('src/components/Input/Input.jsx'),
toggleByEnv('Tooltip', path.resolve('src/components/Tooltip/Tooltip.jsx')),
path.resolve('src/old-components/SelectorCounter/SelectorCounter.jsx')
])
Expand Down
Loading

0 comments on commit 8561a01

Please sign in to comment.