Skip to content

Commit f43b2d9

Browse files
author
Orjiewuru Kingdom Isaac
authored
Merge pull request #5 from kingisaac95/feature/develop
Fix bugs & Add coveralls
2 parents e61289c + f59f876 commit f43b2d9

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repo_token: UGhpjA0Mv9s3OLWbyUuozRBp1u7IwF6OF

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
![NpmVersion](https://img.shields.io/npm/v/npm.svg)
66
[![Build Status](https://travis-ci.org/kingisaac95/react-webpack-starter.svg?branch=feature%2Fdevelop)](https://travis-ci.org/kingisaac95/react-webpack-starter)
7+
[![Coverage Status](https://coveralls.io/repos/github/kingisaac95/react-webpack-starter/badge.svg?branch=feature%2Fdevelop)](https://coveralls.io/github/kingisaac95/react-webpack-starter?branch=master)
78
![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)
89

910
<img width="1440" alt="screen shot 2018-08-21 at 9 02 00 pm" src="https://user-images.githubusercontent.com/26261917/44426324-42d11700-a586-11e8-8e05-8d09bafb9f84.png">

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@
4949
"!<rootDir>/node_modules/",
5050
"!<rootDir>/path/to/dir/"
5151
],
52+
"coverageThreshold": {
53+
"global": {
54+
"branches": 40,
55+
"functions": 30,
56+
"lines": 50,
57+
"statements": 50
58+
}
59+
},
5260
"coverageReporters": [
5361
"cobertura",
5462
"html",

webpack.config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const htmlPlugin = new HtmlWebPackPlugin({
66
});
77

88
module.exports = {
9-
entry: "./src/app.js",
9+
entry: "./src/index.js",
1010
module: {
1111
rules: [
1212
{
@@ -18,9 +18,6 @@ module.exports = {
1818
},
1919
{
2020
test: /\.scss$/,
21-
include: [
22-
path.resolve(__dirname, "styles")
23-
],
2421
use: ["style-loader", "css-loader", "sass-loader"]
2522
},
2623
{
@@ -38,7 +35,7 @@ module.exports = {
3835
]
3936
},
4037
resolve: {
41-
extensions: ["scss"]
38+
extensions: [".scss", ".js"]
4239
},
4340
plugins: [htmlPlugin]
4441
};

0 commit comments

Comments
 (0)