mirror of
https://github.com/jxnblk/mdx-deck.git
synced 2024-11-10 14:21:06 +03:00
Merge pull request #259 from jxnblk/update-deps
Update Babel and other dependencies
This commit is contained in:
commit
5faf9d5fe4
22
.babelrc
22
.babelrc
@ -1,7 +1,23 @@
|
||||
{
|
||||
presets: [
|
||||
'env',
|
||||
'stage-0',
|
||||
'react'
|
||||
'@babel/env',
|
||||
'@babel/react'
|
||||
],
|
||||
plugins: [
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
'@babel/plugin-proposal-do-expressions',
|
||||
'@babel/plugin-proposal-export-default-from',
|
||||
'@babel/plugin-proposal-export-namespace-from',
|
||||
'@babel/plugin-proposal-function-bind',
|
||||
'@babel/plugin-proposal-function-sent',
|
||||
'@babel/plugin-proposal-json-strings',
|
||||
'@babel/plugin-proposal-logical-assignment-operators',
|
||||
'@babel/plugin-proposal-nullish-coalescing-operator',
|
||||
'@babel/plugin-proposal-numeric-separator',
|
||||
'@babel/plugin-proposal-optional-chaining',
|
||||
'@babel/plugin-proposal-throw-expressions',
|
||||
'@babel/plugin-syntax-dynamic-import',
|
||||
'@babel/plugin-syntax-import-meta',
|
||||
'babel-plugin-styled-components',
|
||||
]
|
||||
}
|
||||
|
@ -11,12 +11,24 @@ const remark = {
|
||||
}
|
||||
|
||||
const babel = {
|
||||
presets: [
|
||||
'babel-preset-env',
|
||||
'babel-preset-stage-0',
|
||||
'babel-preset-react',
|
||||
presets: ['@babel/preset-env', '@babel/preset-react'].map(require.resolve),
|
||||
plugins: [
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
'@babel/plugin-proposal-do-expressions',
|
||||
'@babel/plugin-proposal-export-default-from',
|
||||
'@babel/plugin-proposal-export-namespace-from',
|
||||
'@babel/plugin-proposal-function-bind',
|
||||
'@babel/plugin-proposal-function-sent',
|
||||
'@babel/plugin-proposal-json-strings',
|
||||
'@babel/plugin-proposal-logical-assignment-operators',
|
||||
'@babel/plugin-proposal-nullish-coalescing-operator',
|
||||
'@babel/plugin-proposal-numeric-separator',
|
||||
'@babel/plugin-proposal-optional-chaining',
|
||||
'@babel/plugin-proposal-throw-expressions',
|
||||
'@babel/plugin-syntax-dynamic-import',
|
||||
'@babel/plugin-syntax-import-meta',
|
||||
'babel-plugin-styled-components',
|
||||
].map(require.resolve),
|
||||
plugins: ['babel-plugin-styled-components'].map(require.resolve),
|
||||
}
|
||||
|
||||
const rules = [
|
||||
|
6195
package-lock.json
generated
6195
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
76
package.json
76
package.json
@ -22,27 +22,40 @@
|
||||
"license": "MIT",
|
||||
"repository": "github:jxnblk/mdx-deck",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.0.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.0.0",
|
||||
"@babel/plugin-proposal-do-expressions": "^7.0.0",
|
||||
"@babel/plugin-proposal-export-default-from": "^7.0.0",
|
||||
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
|
||||
"@babel/plugin-proposal-function-bind": "^7.0.0",
|
||||
"@babel/plugin-proposal-function-sent": "^7.0.0",
|
||||
"@babel/plugin-proposal-json-strings": "^7.0.0",
|
||||
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
|
||||
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
|
||||
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
||||
"@babel/plugin-syntax-import-meta": "^7.0.0",
|
||||
"@babel/preset-env": "^7.0.0",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"@compositor/webfont": "^1.0.39",
|
||||
"@mdx-js/mdx": "^0.15.7",
|
||||
"@mdx-js/tag": "^0.15.6",
|
||||
"ansi-html": "0.0.7",
|
||||
"babel-core": "^6.26.3",
|
||||
"babel-loader": "^7.1.5",
|
||||
"babel-plugin-styled-components": "1.8.0",
|
||||
"babel-preset-env": "^1.7.0",
|
||||
"babel-preset-react": "^6.24.1",
|
||||
"babel-preset-stage-0": "^6.24.1",
|
||||
"chalk": "^2.4.1",
|
||||
"babel-loader": "^8.0.0",
|
||||
"babel-plugin-styled-components": "^1.10.0",
|
||||
"chalk": "^2.4.2",
|
||||
"clipboardy": "^1.2.3",
|
||||
"find-up": "^3.0.0",
|
||||
"get-port": "^4.0.0",
|
||||
"gray-matter": "^4.0.1",
|
||||
"get-port": "^4.1.0",
|
||||
"gray-matter": "^4.0.2",
|
||||
"hhmmss": "^1.0.0",
|
||||
"html-entities": "^1.2.1",
|
||||
"koa": "^2.6.2",
|
||||
"koa": "^2.7.0",
|
||||
"koa-static": "^5.0.0",
|
||||
"koa-webpack": "^5.1.1",
|
||||
"loader-utils": "^1.1.0",
|
||||
"koa-webpack": "^5.2.1",
|
||||
"loader-utils": "^1.2.3",
|
||||
"lodash.debounce": "^4.0.8",
|
||||
"lodash.get": "^4.4.2",
|
||||
"meow": "^5.0.0",
|
||||
@ -50,37 +63,38 @@
|
||||
"mkdirp": "^0.5.1",
|
||||
"normalize-newline": "^3.0.0",
|
||||
"pkg-conf": "^2.1.0",
|
||||
"progress-bar-webpack-plugin": "^1.11.0",
|
||||
"prop-types": "^15.6.2",
|
||||
"puppeteer": "^1.10.0",
|
||||
"progress-bar-webpack-plugin": "^1.12.1",
|
||||
"prop-types": "^15.7.2",
|
||||
"puppeteer": "^1.12.2",
|
||||
"querystring": "^0.2.0",
|
||||
"react": "^16.6.1",
|
||||
"react-dev-utils": "^6.1.1",
|
||||
"react-dom": "^16.6.1",
|
||||
"react-swipeable": "^4.3.0",
|
||||
"react": "^16.8.2",
|
||||
"react-dev-utils": "^7.0.3",
|
||||
"react-dom": "^16.8.2",
|
||||
"react-swipeable": "^4.3.2",
|
||||
"react-syntax-highlighter": "^8.1.0",
|
||||
"remark-emoji": "^2.0.2",
|
||||
"remark-unwrap-images": "^0.1.0",
|
||||
"rimraf": "^2.6.2",
|
||||
"rimraf": "^2.6.3",
|
||||
"stringify-object": "^3.3.0",
|
||||
"styled-components": "^3.4.10",
|
||||
"styled-system": "^3.1.11",
|
||||
"styled-components": "^4.1.3",
|
||||
"styled-system": "^3.2.1",
|
||||
"superbox": "^2.1.0",
|
||||
"webpack": "^4.25.1",
|
||||
"webpack": "^4.29.5",
|
||||
"webpack-hot-client": "^4.1.1",
|
||||
"webpack-merge": "^4.1.4",
|
||||
"webpack-merge": "^4.2.1",
|
||||
"webpack-node-externals": "^1.7.2"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.26.0",
|
||||
"husky": "^1.1.3",
|
||||
"jest": "^23.6.0",
|
||||
"jest-styled-components": "^5.0.1",
|
||||
"@babel/cli": "^7.0.0",
|
||||
"babel-jest": "^24.1.0",
|
||||
"husky": "^1.3.1",
|
||||
"jest": "^24.1.0",
|
||||
"jest-styled-components": "^6.3.1",
|
||||
"lint-staged": "^7.3.0",
|
||||
"mdx-deck-code-surfer": "^0.4.1",
|
||||
"prettier": "^1.15.2",
|
||||
"react-test-renderer": "^16.6.1"
|
||||
"mdx-deck-code-surfer": "^0.5.5",
|
||||
"prettier": "^1.16.4",
|
||||
"react-test-renderer": "^16.8.2"
|
||||
},
|
||||
"jest": {
|
||||
"roots": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
|
||||
const FullCode = styled.div([], {
|
||||
const FullCode = styled.div({
|
||||
width: '100vw',
|
||||
height: '100vh',
|
||||
textAlign: 'left',
|
||||
@ -14,4 +14,4 @@ const FullCode = styled.div([], {
|
||||
},
|
||||
})
|
||||
|
||||
export default FullCode
|
||||
export default props => <FullCode {...props} />
|
||||
|
@ -1,20 +1,24 @@
|
||||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
import { color } from 'styled-system'
|
||||
|
||||
const Invert = styled.div([], {
|
||||
width: '100vw',
|
||||
height: '100vh',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
'& a': {
|
||||
color: 'inherit'
|
||||
}
|
||||
}, color)
|
||||
const Invert = styled.div(
|
||||
{
|
||||
width: '100vw',
|
||||
height: '100vh',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
'& a': {
|
||||
color: 'inherit',
|
||||
},
|
||||
},
|
||||
color
|
||||
)
|
||||
|
||||
Invert.defaultProps = {
|
||||
color: 'background',
|
||||
bg: 'text'
|
||||
bg: 'text',
|
||||
}
|
||||
|
||||
export default Invert
|
||||
export default props => <Invert {...props} />
|
||||
|
@ -52,14 +52,10 @@ exports[`renders h1 1`] = `
|
||||
.c0 {
|
||||
line-height: 1.25;
|
||||
font-size: 24px;
|
||||
margin-bottom: 16px;
|
||||
margin-top: 16px;
|
||||
color: heading;
|
||||
}
|
||||
|
||||
<h1
|
||||
className="c0"
|
||||
color="heading"
|
||||
className="-h1 c0"
|
||||
fontSize={4}
|
||||
/>
|
||||
`;
|
||||
@ -68,14 +64,10 @@ exports[`renders h2 1`] = `
|
||||
.c0 {
|
||||
line-height: 1.25;
|
||||
font-size: 20px;
|
||||
margin-bottom: 16px;
|
||||
margin-top: 16px;
|
||||
color: heading;
|
||||
}
|
||||
|
||||
<h2
|
||||
className="c0"
|
||||
color="heading"
|
||||
className="-h2 c0"
|
||||
fontSize={3}
|
||||
/>
|
||||
`;
|
||||
@ -84,14 +76,10 @@ exports[`renders h3 1`] = `
|
||||
.c0 {
|
||||
line-height: 1.25;
|
||||
font-size: 16px;
|
||||
margin-bottom: 16px;
|
||||
margin-top: 16px;
|
||||
color: heading;
|
||||
}
|
||||
|
||||
<h3
|
||||
className="c0"
|
||||
color="heading"
|
||||
className="-h3 c0"
|
||||
fontSize={2}
|
||||
/>
|
||||
`;
|
||||
@ -99,21 +87,18 @@ exports[`renders h3 1`] = `
|
||||
exports[`renders h4 1`] = `
|
||||
<h4
|
||||
className=""
|
||||
fontSize={2}
|
||||
/>
|
||||
`;
|
||||
|
||||
exports[`renders h5 1`] = `
|
||||
<h5
|
||||
className=""
|
||||
fontSize={2}
|
||||
/>
|
||||
`;
|
||||
|
||||
exports[`renders h6 1`] = `
|
||||
<h6
|
||||
className=""
|
||||
fontSize={2}
|
||||
/>
|
||||
`;
|
||||
|
||||
|
@ -429,13 +429,10 @@ Array [
|
||||
className="c1"
|
||||
/>
|
||||
</div>,
|
||||
.c1 {
|
||||
.c0 {
|
||||
cursor: pointer;
|
||||
width: 64px;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.c0 {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
@ -443,18 +440,15 @@ Array [
|
||||
}
|
||||
|
||||
<div
|
||||
className="c0 c1"
|
||||
className="c0"
|
||||
onClick={[Function]}
|
||||
role="button"
|
||||
title="Previous Slide"
|
||||
/>,
|
||||
.c1 {
|
||||
.c0 {
|
||||
cursor: pointer;
|
||||
width: 64px;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.c0 {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
@ -462,7 +456,7 @@ Array [
|
||||
}
|
||||
|
||||
<div
|
||||
className="c0 c1"
|
||||
className="c0"
|
||||
onClick={[Function]}
|
||||
role="button"
|
||||
title="Next Slide"
|
||||
|
Loading…
Reference in New Issue
Block a user