File tree Expand file tree Collapse file tree 8 files changed +15
-63
lines changed Expand file tree Collapse file tree 8 files changed +15
-63
lines changed Original file line number Diff line number Diff line change 9
9
" Ryan Florence"
10
10
],
11
11
"scripts" : {
12
- "start" : " echo 'Make sure to `cd website && npm install`' && cd website && npm start " ,
12
+ "start" : " echo 'Make sure to `cd website && npm install`' && cd website && npm run dev " ,
13
13
"build-lib" : " babel ./modules -d . --ignore '__tests__'" ,
14
14
"build-umd" : " webpack modules/index.js umd/react-router.js" ,
15
15
"build-min" : " webpack -p modules/index.js umd/react-router.min.js" ,
16
16
"build" : " node ./scripts/build.js" ,
17
- "publish-website" : " ./scripts/publish-website.sh" ,
18
17
"prepublish" : " node ./scripts/build.js" ,
19
18
"test" : " npm run lint && karma start" ,
20
19
"lint" : " eslint modules"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import LoadingDots from './LoadingDots'
3
- import { B } from './layout '
3
+ import { B } from './bricks '
4
4
5
5
class LoadBundle extends React . Component {
6
6
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import 'prismjs/themes/prism.css'
3
- import { B , PAD } from './layout '
3
+ import { B , PAD } from './bricks '
4
4
5
5
const MarkdownViewer = ( { html } ) => (
6
6
< markdown
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import 'prismjs/themes/prism.css'
3
- import { B , PAD } from './layout '
3
+ import { B , PAD } from './bricks '
4
4
5
5
class SourceViewer extends React . Component {
6
6
Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ export const GRAY = '#999'
5
5
export const LIGHT_GRAY = '#f5f5f5'
6
6
export const RED = 'hsl(5, 100%, 41%)'
7
7
8
- const STYLE_PROP_NAMES = Object . keys ( document . createElement ( 'div' ) . style ) . reduce ( ( styles , key ) => {
9
- styles [ key ] = true
10
- return styles
11
- } , { } )
8
+
9
+ const STYLE_PROP_NAMES = { }
10
+ const styles = document . createElement ( 'div' ) . style
11
+ for ( var key in styles )
12
+ STYLE_PROP_NAMES [ key ] = true
12
13
13
14
const splitStyles = ( { style= { } , ...combinedProps } ) => {
14
15
const props = { }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.0" ,
4
4
"private" : true ,
5
5
"scripts" : {
6
- "start" : " rm -rf .examples && cp -R examples .examples && webpack-dev-server --config webpack.config.js --inline --content-base build"
6
+ "dev" : " rm -rf .examples && cp -R examples .examples && webpack-dev-server --config webpack.config.js --inline --content-base build" ,
7
+ "start" : " pushstate-server build/"
7
8
},
8
9
"dependencies" : {
10
+ "pushstate-server" : " 1.14.0"
11
+ },
12
+ "devDependencies" : {
9
13
"babel-eslint" : " 6.0.4" ,
10
14
"bundle-loader" : " 0.5.4" ,
11
15
"css-loader" : " 0.23.1" ,
15
19
"file-loader" : " ^0.9.0" ,
16
20
"html-loader" : " ^0.4.3" ,
17
21
"html-webpack-plugin" : " ^2.22.0" ,
18
- "jsxstyle" : " 0.0.18" ,
19
22
"markdown-it" : " ^7.0.0" ,
20
23
"postcss-loader" : " 0.9.1" ,
24
+ "pushstate-server" : " ^1.14.0" ,
21
25
"react-motion" : " ^0.4.4" ,
22
26
"style-loader" : " 0.13.1" ,
23
27
"url-loader" : " ^0.5.7" ,
You can’t perform that action at this time.
0 commit comments