mirror of
https://github.com/jxnblk/mdx-deck.git
synced 2024-09-11 06:35:24 +03:00
Setup for package
This commit is contained in:
parent
b249baf038
commit
189bd1767a
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
dist
|
0
.npmignore
Normal file
0
.npmignore
Normal file
@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
import { render } from 'react-dom'
|
||||
import PropTypes from 'prop-types'
|
||||
import SlideDeck from './SlideDeck'
|
||||
import SlideDeck from '../src'
|
||||
|
||||
// todo: dynamic import
|
||||
import slides, {
|
||||
|
10
package.json
10
package.json
@ -1,13 +1,14 @@
|
||||
{
|
||||
"name": "mdx-deck",
|
||||
"version": "1.0.0-0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"description": "MDX-based slide deck presentations",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
"mdx-deck": "./cli.js"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "./cli.js docs/index.mdx"
|
||||
"prepare": "babel src -d dist",
|
||||
"start": "./cli.js docs/index.mdx -p 8989"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Brent Jackson",
|
||||
@ -33,5 +34,8 @@
|
||||
"styled-components": "^3.3.3",
|
||||
"styled-system": "^3.0.2",
|
||||
"superbox": "^2.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.26.0"
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,8 @@ import debounce from 'lodash.debounce'
|
||||
|
||||
import defaultTheme from './theme'
|
||||
import defaultComponents from './components'
|
||||
export { default as theme } from './theme'
|
||||
export { default as components } from './components'
|
||||
|
||||
export const inc = state => ({ index: (state.index + 1) % state.length })
|
||||
export const dec = state => state.index > 0
|
Loading…
Reference in New Issue
Block a user