Skip to content

Commit e9e7b1e

Browse files
committed
configured gh-pages partially - still need to fix browser routing
1 parent 4f5a7ed commit e9e7b1e

File tree

2 files changed

+128
-2
lines changed

2 files changed

+128
-2
lines changed

package-lock.json

Lines changed: 117 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
"name": "codeprinter",
33
"version": "1.0.0",
44
"private": true,
5+
"homepage": "http://jaredpetersen.github.io/codeprinter",
56
"scripts": {
67
"start": "react-scripts start",
78
"build": "react-scripts build",
89
"test": "react-scripts test --env=jsdom",
910
"storybook": "start-storybook -p 9009 -s public",
10-
"build-storybook": "build-storybook -s public"
11+
"build-storybook": "build-storybook -s public",
12+
"predeploy": "npm run build",
13+
"deploy": "gh-pages -d build"
1114
},
1215
"jest": {
1316
"collectCoverageFrom": [
@@ -18,7 +21,12 @@
1821
"!setupTests.js",
1922
"!src/**/*.story.{js,jsx}"
2023
],
21-
"coverageReporters": [ "json", "lcov", "html", "text" ]
24+
"coverageReporters": [
25+
"json",
26+
"lcov",
27+
"html",
28+
"text"
29+
]
2230
},
2331
"dependencies": {
2432
"bootstrap": "^4.1.1",
@@ -39,6 +47,7 @@
3947
"@storybook/react": "^3.4.8",
4048
"babel-core": "^6.26.3",
4149
"babel-runtime": "^6.26.0",
50+
"gh-pages": "^1.2.0",
4251
"react-test-renderer": "^16.4.1"
4352
}
4453
}

0 commit comments

Comments
 (0)