Skip to content

Commit ab6cc33

Browse files
committed
publish the site manually for now
1 parent 7e5491a commit ab6cc33

File tree

8 files changed

+15
-63
lines changed

8 files changed

+15
-63
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99
"Ryan Florence"
1010
],
1111
"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",
1313
"build-lib": "babel ./modules -d . --ignore '__tests__'",
1414
"build-umd": "webpack modules/index.js umd/react-router.js",
1515
"build-min": "webpack -p modules/index.js umd/react-router.min.js",
1616
"build": "node ./scripts/build.js",
17-
"publish-website": "./scripts/publish-website.sh",
1817
"prepublish": "node ./scripts/build.js",
1918
"test": "npm run lint && karma start",
2019
"lint": "eslint modules"

scripts/publish-website.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

website/components/LoadBundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import LoadingDots from './LoadingDots'
3-
import { B } from './layout'
3+
import { B } from './bricks'
44

55
class LoadBundle extends React.Component {
66

website/components/MarkdownViewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import 'prismjs/themes/prism.css'
3-
import { B, PAD } from './layout'
3+
import { B, PAD } from './bricks'
44

55
const MarkdownViewer = ({ html }) => (
66
<markdown

website/components/SourceViewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import 'prismjs/themes/prism.css'
3-
import { B, PAD } from './layout'
3+
import { B, PAD } from './bricks'
44

55
class SourceViewer extends React.Component {
66

website/components/bricks.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ export const GRAY = '#999'
55
export const LIGHT_GRAY = '#f5f5f5'
66
export const RED = 'hsl(5, 100%, 41%)'
77

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
1213

1314
const splitStyles = ({ style={}, ...combinedProps}) => {
1415
const props = {}

website/components/layout.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

website/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
"version": "0.0.0",
44
"private": true,
55
"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/"
78
},
89
"dependencies": {
10+
"pushstate-server": "1.14.0"
11+
},
12+
"devDependencies": {
913
"babel-eslint": "6.0.4",
1014
"bundle-loader": "0.5.4",
1115
"css-loader": "0.23.1",
@@ -15,9 +19,9 @@
1519
"file-loader": "^0.9.0",
1620
"html-loader": "^0.4.3",
1721
"html-webpack-plugin": "^2.22.0",
18-
"jsxstyle": "0.0.18",
1922
"markdown-it": "^7.0.0",
2023
"postcss-loader": "0.9.1",
24+
"pushstate-server": "^1.14.0",
2125
"react-motion": "^0.4.4",
2226
"style-loader": "0.13.1",
2327
"url-loader": "^0.5.7",

0 commit comments

Comments
 (0)