Skip to content

Commit

Permalink
Merge branch 'staging' of https://github.com/teamtaverna/web_client i…
Browse files Browse the repository at this point in the history
…nto 15_calendar_components
  • Loading branch information
andela-akolawole committed Feb 8, 2017
2 parents de4a0d2 + b747977 commit a674a3b
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ script:
- npm test
- npm build

after_success: npm run coverage

notifications:
slack: teamtaverna:iP55LweubU8UOBgu9e0cTeED

Expand Down
40 changes: 38 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
```
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -70,10 +70,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",
Expand Down
4 changes: 2 additions & 2 deletions src/components/sample/sample.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react';

const s = require('./sample.scss');
require('./sample.scss');
const afang = require('./afang.jpg');
const logo = require('./logo.svg');

Expand All @@ -15,7 +15,7 @@ export default class Sample extends Component {
render() {
return (
<div>
<p className={s.home}>This is a sample Component</p>
<p className="home">This is a sample Component</p>
<img src={logo} role="presentation" />
<img src={afang} role="presentation" />
<button onClick={this.checkTest}> Test Button </button>
Expand Down
3 changes: 2 additions & 1 deletion src/components/sample/sample.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.home {
font-size: 20px;
color: blue
}
}

4 changes: 3 additions & 1 deletion test/.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
var documentRef = document;

0 comments on commit a674a3b

Please sign in to comment.