Skip to content

Commit

Permalink
Merge branch 'develop' into jordan/121-block-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nylira authored Feb 2, 2018
2 parents 145c490 + fda1f7b commit 8e02cd3
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 46 deletions.
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
working_directory: ~/repo

steps:
- run: sudo npm i -g codeclimate-test-reporter

- checkout

# Download and cache dependencies
Expand All @@ -33,4 +31,5 @@ jobs:

- run: yarn lint
- run: yarn run test
- run: codeclimate-test-reporter < test/unit/coverage/lcov.info
post:
- bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN
43 changes: 1 addition & 42 deletions app/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,46 +21,5 @@
</div>

<style>
body { margin: 0; }
#load {
display: flex;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
background: hsl(233, 36%, 13%);
}
#load-container {
font: 16px/1.5 system, -apple-system, BlinkMacSystemFont, "Roboto", "Seogue UI", "Helvetica Neue", "Lucida Grande", sans-serif;
margin: 0 auto;
width: 18rem;
display: flex;
flex-flow: column nowrap;
justify-content: center;
box-sizing: border-box;
}
#load-title {
font-size: 1.5rem;
font-weight: 600;
line-height: 1;
text-transform: uppercase;
letter-spacing: 0.25rem;
color: #fff;
margin-bottom: 1rem;
padding: 0 0.5rem;
}
#load-main p {
font-size: 1rem;
line-height: 2rem;
font-weight: 300;
padding: 0 0.5rem;
color: hsl(226, 13%, 50%);
background: hsl(233, 33%, 16%);
margin: 0 0 1px;
}
#load-main a {
text-decoration: none;
color: hsl(233, 96%, 70%);
}
<%= htmlWebpackPlugin.options.styles %>
</style>
42 changes: 42 additions & 0 deletions app/src/renderer/styles/index.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
body { margin: 0; }
#load {
display: flex;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
background: app-bg;
}
#load-container {
font: 16px/1.5 system, -apple-system, BlinkMacSystemFont, "Roboto", "Seogue UI", "Helvetica Neue", "Lucida Grande", sans-serif;
margin: 0 auto;
width: 18rem;
display: flex;
flex-flow: column nowrap;
justify-content: center;
box-sizing: border-box;
}
#load-title {
font-size: h2;
font-weight: 600;
line-height: 1;
text-transform: uppercase;
letter-spacing: 0.25rem;
color: bright;
margin-bottom: 1rem;
padding: 0 0.5rem;
}

#load-main p {
font-size: m;
line-height: 2rem;
font-weight: 300;
padding: 0 0.5rem;
color: dim;
background: app-fg;
margin: 0 0 1px;
}
#load-main a {
text-decoration: none;
color: link;
}
19 changes: 19 additions & 0 deletions codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
coverage:
precision: 2
round: down
range: "70...100"

status:
project:
default: on
patch:
default: on
changes:
default: off

comment:
layout: "header, reach, diff, flags, files, footer"
behavior: default
require_changes: no
require_base: no
require_head: yes
5 changes: 4 additions & 1 deletion webpack.renderer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ process.env.BABEL_ENV = 'renderer'
const path = require('path')
const settings = require('./config.js')
const webpack = require('webpack')
const stylus = require('stylus')
const fs = require('fs-extra')

const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
Expand Down Expand Up @@ -87,7 +89,8 @@ let rendererConfig = {
template: './app/index.ejs',
appModules: process.env.NODE_ENV !== 'production'
? path.resolve(__dirname, 'app/node_modules')
: false
: false,
styles: stylus(fs.readFileSync('./app/src/renderer/styles/index.styl', 'utf8')).import('./app/src/renderer/styles/variables.styl').render()
}),
new webpack.NoEmitOnErrorsPlugin(),
// warnings caused by websocket-stream, which has a server-part that is unavailable on the the client
Expand Down

0 comments on commit 8e02cd3

Please sign in to comment.