Skip to content

Commit 104cf3b

Browse files
authored
making a gh-page (#108)
Something we can share with folks. Looks nicer.
1 parent 3e1d39a commit 104cf3b

File tree

19 files changed

+523
-94
lines changed

19 files changed

+523
-94
lines changed

dev/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<title>Pure React Carousel - By Express Labs</title>
1010
<meta name="description" content="">
1111
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
12+
<link href="https://fonts.googleapis.com/css?family=Montserrat|Raleway" rel="stylesheet">
1213
<link rel = "stylesheet" type = "text/css" href = "style.css" />
1314
</head>
1415
<body>

dev/media/pdp-men.gif

4.44 MB
Loading

dev/media/pdp-women.gif

3.07 MB
Loading

package-lock.json

Lines changed: 135 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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"build:commonjs": "NODE_ENV=production rollup -c rollup.config.cjs.js",
2525
"build:es": "NODE_ENV=production rollup -c rollup.config.es.js",
2626
"postbuild": "node postbuild.js",
27-
"build:watch": "watch 'npm run build' src"
27+
"build:watch": "watch 'npm run build' src",
28+
"deploy": "gh-pages -d dev"
2829
},
2930
"typings": "typings/index.d.ts",
3031
"repository": {
@@ -62,6 +63,7 @@
6263
"eslint-plugin-jsx-a11y": "^6.1.2",
6364
"eslint-plugin-node": "^8.0.0",
6465
"eslint-plugin-react": "^7.11.1",
66+
"gh-pages": "^2.0.1",
6567
"identity-obj-proxy": "^3.0.0",
6668
"jest": "^21.2.1",
6769
"node-sass": "^4.10.0",
@@ -78,6 +80,7 @@
7880
"rollup-plugin-babel": "^3.0.7",
7981
"rollup-plugin-commonjs": "^9.2.0",
8082
"rollup-plugin-eslint": "^5.0.0",
83+
"rollup-plugin-img": "^1.1.0",
8184
"rollup-plugin-livereload": "^0.6.0",
8285
"rollup-plugin-multi-entry": "^2.0.1",
8386
"rollup-plugin-node-resolve": "^3.4.0",

rollup.config.dev.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import babel from 'rollup-plugin-babel';
22
import commonjs from 'rollup-plugin-commonjs';
33
import { eslint } from 'rollup-plugin-eslint';
44
import livereload from 'rollup-plugin-livereload';
5+
import image from 'rollup-plugin-img';
56
import omit from 'object.omit';
67
import path from 'path';
78
import postcss from 'rollup-plugin-postcss';
@@ -28,6 +29,9 @@ export default {
2829
'react-dom'
2930
])),
3031
plugins: [
32+
image({
33+
limit: 10000
34+
}),
3135
postcss({
3236
extensions: ['.css', '.scss'],
3337
extract: 'dev/style.css',

src/.eslintrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,17 @@
2929
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
3030
"react/forbid-prop-types": "off",
3131
"react/destructuring-assignment": [0, "never"],
32+
"jsx-a11y/label-has-for": [ 2, {
33+
"components": [ "Label" ],
34+
"required": {
35+
"every": [ "nesting", "id" ]
36+
},
37+
"allowChildren": true
38+
}],
39+
"jsx-a11y/label-has-associated-control": [ 2, {
40+
"labelAttributes": ["label"],
41+
"controlComponents": ["input", "select"],
42+
"depth": 3,
43+
}],
3244
}
3345
}

0 commit comments

Comments
 (0)