Skip to content

Commit 63b2ff0

Browse files
committed
initial
0 parents  commit 63b2ff0

21 files changed

+1077
-0
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Project dependencies
2+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
3+
node_modules
4+
.cache/
5+
# Build directory
6+
public/
7+
.DS_Store
8+
yarn-error.log
9+
yarn.lock
10+
lib/
11+
.merlin

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 glennsl
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# re:index

bindings/gatsby/helmet.js

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

bindings/gatsby/helmet.re

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
external linkClass : ReasonReact.reactClass = "default" [@@bs.module "react-helmet"];
2+
3+
let make
4+
title::(title: option string)=?
5+
meta::(meta: option (array (Js.t {. name: string, content: string })))=?
6+
children
7+
=>
8+
ReasonReact.wrapJsForReason
9+
reactClass::linkClass
10+
props::{
11+
"title": Js.Nullable.from_opt title,
12+
"meta": Js.Nullable.from_opt meta
13+
}
14+
children;

bindings/gatsby/link.js

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

bindings/gatsby/link.re

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
external linkClass : ReasonReact.reactClass = "default" [@@bs.module "gatsby-link"];
2+
3+
let make
4+
to_::(to_: string)
5+
style::(style: option ReactDOMRe.Style.t)=?
6+
children
7+
=>
8+
ReasonReact.wrapJsForReason
9+
reactClass::linkClass
10+
props::{
11+
"to": to_,
12+
"style": Js.Nullable.from_opt style
13+
}
14+
children;

bsconfig.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "reindex-web",
3+
"package-specs": [{
4+
"module": "commonjs",
5+
"in-source": true
6+
}],
7+
"sources": [{
8+
"dir": "src",
9+
"subdirs": ["layouts", "pages"]
10+
}, {
11+
"dir": "bindings",
12+
"subdirs": ["gatsby"]
13+
}],
14+
"bs-dependencies": ["reason-react"],
15+
"reason": {"react-jsx": 2},
16+
"bsc-flags": ["-bs-super-errors"]
17+
}

gatsby-config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
siteMetadata: {
3+
title: `re:index`,
4+
},
5+
plugins: [`gatsby-plugin-react-helmet`],
6+
}

package.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "reindex",
3+
"description": "re:index",
4+
"version": "0.0.1",
5+
"author": "glennsl",
6+
"dependencies": {
7+
"gatsby": "^1.9.17",
8+
"gatsby-link": "^1.6.15",
9+
"gatsby-plugin-react-helmet": "^1.0.5"
10+
},
11+
"keywords": [
12+
"reason",
13+
"reasonml"
14+
],
15+
"license": "MIT",
16+
"main": "n/a",
17+
"scripts": {
18+
"bsb": "bsb -make-world -w",
19+
"build": "gatsby build",
20+
"develop": "gatsby develop",
21+
"format": "prettier --trailing-comma es5 --no-semi --single-quote --write 'src/**/*.js'",
22+
"test": "echo \"Error: no test specified\" && exit 1"
23+
},
24+
"devDependencies": {
25+
"bs-platform": "^2.0.0",
26+
"reason-react": "^0.3.0"
27+
}
28+
}

0 commit comments

Comments
 (0)