From cc2dbef1890a7a761a78a1cb85eed20dcee7569d Mon Sep 17 00:00:00 2001 From: Kosy Anyanwu Date: Fri, 3 Feb 2017 20:30:50 -0600 Subject: [PATCH 1/2] Update readme, add link to coveralls and travis --- .travis.yml | 2 ++ README.md | 40 ++++++++++++++++++++++++++++++++++++++-- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b65b5668..bb36132e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,8 @@ script: - npm test - npm build +after_success: coveralls + notifications: slack: teamtaverna:iP55LweubU8UOBgu9e0cTeED diff --git a/README.md b/README.md index b567e731..9547b3ed 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,38 @@ -# tarvena-admin -The admin interface for Tarvena app. +[![Coverage Status](https://coveralls.io/repos/github/teamtaverna/web_client/badge.svg)](https://coveralls.io/github/teamtaverna/web_client) [![Build Status](https://travis-ci.org/teamtaverna/web_client.svg?branch=master)](https://travis-ci.org/teamtaverna/web_client) + +# Web Client +The web interface for Tarvena app, an open source meal review and management platform. + +### Tech +- NodeJS +- ReactJS +- webpack + +### Collaboration + +Want to contribute? Great! + +Clone the repository from [GitHub](https://www.github.com) +``` +$ git clone https://github.com/teamtaverna/web_client.git +``` + +### Installation + +**Mac Users** + +Be sure to have the following installed and setup first. +* NodeJS + +Next, +- install the dependencies + +``` +npm install +``` + +To start the server + +``` +npm run dev +``` From 8d2539f2f0adc7cc8cacd7c92b80c0ad98b2ef95 Mon Sep 17 00:00:00 2001 From: Kosy Anyanwu Date: Mon, 6 Feb 2017 21:11:04 -0600 Subject: [PATCH 2/2] Add config for coveralls --- .travis.yml | 2 +- package.json | 5 ++++- test/.setup.js | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index bb36132e..8b61930d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ script: - npm test - npm build -after_success: coveralls +after_success: npm run coverage notifications: slack: teamtaverna:iP55LweubU8UOBgu9e0cTeED diff --git a/package.json b/package.json index c099da9d..c7d34dde 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "build:client": "webpack --verboose --colors --display-error-details --config webpack/prod.config.js", "test": "mocha \"src/**/**/*.test.*\" --require test/.setup.js", "stylelint": "stylelint --config .stylelintrc \"src/**/**/*.scss\"", - "coverage": "istanbul cover _mocha \"src/**/**/*.test.*\" --require test/.setup.js" + "coverage": "node_modules/.bin/babel-node node_modules/.bin/istanbul cover node_modules/mocha/bin/_mocha \"src/**/**/*.test.*\" -- --compilers js:babel-core/register --colors --reporter dot test/ --require test/.setup.js src/**/* && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" }, "repository": { "type": "git", @@ -69,10 +69,13 @@ }, "devDependencies": { "babel-eslint": "^7.0.0", + "coveralls": "^2.11.16", "eslint-config-airbnb": "^12.0.0", "eslint-plugin-import": "^2.0.1", "eslint-plugin-jsx-a11y": "^2.2.2", "eslint-plugin-react": "^6.3.0", + "istanbul": "^1.0.0-alpha.2", + "mocha-lcov-reporter": "^1.2.0", "piping": "^1.0.0-rc.4", "postcss-loader": "^1.1.1", "sass-loader": "^4.0.2", diff --git a/test/.setup.js b/test/.setup.js index ae133745..8bc67c07 100644 --- a/test/.setup.js +++ b/test/.setup.js @@ -31,5 +31,7 @@ require.extensions['.svg'] = noop; require.extensions['.jpg'] = noop; require.extensions['.jpeg'] = noop; require.extensions['.gif'] = noop; +require.extensions['.svg'] = noop; + -var documentRef = document; \ No newline at end of file +var documentRef = document;