Permalink
Please sign in to comment.
Showing
with
76 additions
and 93 deletions.
- +1 −1 .babelrc
- +17 −0 .eslintrc
- +39 −0 .travis.yml
- +2 −1 create_structure.js
- +1 −0 css/gatsby.css
- +0 −41 html.js
- +12 −11 package.json
- +2 −4 templates/_template.jsx
- +2 −10 templates/lang/_template.jsx
- +0 −25 utils/typography.js
2
.babelrc
@@ -1,3 +1,3 @@ | ||
{ | ||
- "stage": 0 | ||
+ "stage": 2 | ||
} |
17
.eslintrc
@@ -0,0 +1,17 @@ | ||
+{ | ||
+ "extends": "eslint-config-airbnb", | ||
+ "rules": { | ||
+ "indent": [2, 2, {"SwitchCase": 1}], | ||
+ "no-console": [0], | ||
+ "func-names": [0], | ||
+ "semi": [2, "never"], | ||
+ "no-extra-semi": [2], | ||
+ "space-before-function-paren": [2, "always"], | ||
+ "no-else-return": [0], | ||
+ "space-infix-ops": [0], | ||
+ "react/prefer-es6-class": [0], | ||
+ }, | ||
+ "globals": { | ||
+ "__PREFIX_LINKS__": true, | ||
+ }, | ||
+} |
39
.travis.yml
@@ -0,0 +1,39 @@ | ||
+# back to language cpp to try to bypass osx node failure | ||
+language: cpp | ||
+sudo: false | ||
+env: | ||
+ - export NODE_VERSION="0.10" | ||
+ - export NODE_VERSION="0.12" | ||
+ - export NODE_VERSION="4" | ||
+ - export NODE_VERSION="5" | ||
+os: | ||
+ - linux | ||
+ - osx | ||
+# pre-install to bring in the correct version of node via nvm | ||
+before_install: | ||
+ - git submodule update --init --recursive | ||
+ - git clone https://github.com/creationix/nvm.git ./.nvm | ||
+ - source ./.nvm/nvm.sh | ||
+ - nvm install $NODE_VERSION | ||
+ - nvm use $NODE_VERSION | ||
+ - npm config set python `which python` | ||
+ - if [ $TRAVIS_OS_NAME == "linux" ]; then | ||
+ export CC="gcc-4.8"; | ||
+ export CXX="g++-4.8"; | ||
+ export LINK="gcc-4.8"; | ||
+ export LINKXX="g++-4.8"; | ||
+ fi | ||
+ - gcc --version | ||
+ - g++ --version | ||
+# node 4 depends on gcc 4.8 | ||
+addons: | ||
+ apt: | ||
+ sources: | ||
+ - ubuntu-toolchain-r-test | ||
+ packages: | ||
+ - g++-4.8 | ||
+ - gcc-4.8 | ||
+# script needed to test, because defaults don't work on osx | ||
+script: | ||
+ - npm install | ||
+ - npm run lint |
3
create_structure.js
1
css/gatsby.css
41
html.js
23
package.json
6
templates/_template.jsx
12
templates/lang/_template.jsx
25
utils/typography.js
@@ -1,25 +0,0 @@ | ||
-import Typography from 'typography'; | ||
- | ||
-const options = { | ||
- baseFontSize: '16px', | ||
- baseLineHeight: '24px', | ||
- bodyFontFamily: '"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif', | ||
- headerFontFamily: '"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif', | ||
- bodyWeight: 300, | ||
- headerWeight: 600, | ||
- boldWeight: 600, | ||
- modularScales: [ | ||
- { | ||
- "scale": "minor third" | ||
- } | ||
- ] | ||
-} | ||
- | ||
-const typography = new Typography(options) | ||
- | ||
-// Hot reload typography in development. | ||
-if (process.env.NODE_ENV !== "production") { | ||
- typography.injectStyles() | ||
-} | ||
- | ||
-export default typography |
0 comments on commit
0581ac2