Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Commit

Permalink
Enable to build on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
kobanyan committed Mar 10, 2018
1 parent 0ce4e1d commit 2ee81eb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
sudo: required
dist: trusty
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
language: node_js
node_js:
"node"
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
- yarn add --dev coveralls
script:
- yarn test && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- yarn e2e
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[![Build Status](https://travis-ci.org/kobanyan/ts-react-chrome-extension-boilerplate.svg?branch=master)](https://travis-ci.org/kobanyan/ts-react-chrome-extension-boilerplate)
[![Coverage Status](https://coveralls.io/repos/github/kobanyan/ts-react-chrome-extension-boilerplate/badge.svg?branch=master)](https://coveralls.io/github/kobanyan/ts-react-chrome-extension-boilerplate?branch=master)

# ts-react-chrome-extension-boilerplate

Boilerplate to create a chrome extension with TypeScript and React.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"scripts": {
"dev": "ts-node ./scripts/dev.ts",
"prod": "ts-node ./scripts/prod.ts",
"test": "jest --collectCoverage --testRegex '\\.test\\.tsx?$'",
"test": "yarn prod && jest --collectCoverage --testRegex '\\.test\\.tsx?$'",
"e2e": "jest --testRegex '\\.spec\\.tsx?$'"
},
"license": "MIT",
Expand All @@ -86,7 +86,8 @@
"^.+\\.tsx?$": "ts-jest"
},
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"collectCoverageFrom": ["src/**/*.ts?(x)"]
"collectCoverageFrom": ["src/**/*.ts?(x)"],
"coveragePathIgnorePatterns": ["/__tests__/"]
},
"lint-staged": {
"*.{ts,tsx}": ["prettier --parser typescript --write", "git add"],
Expand Down

0 comments on commit 2ee81eb

Please sign in to comment.