Skip to content

Commit ecabfd4

Browse files
committed
feat(): CIremove running mocha test when no tests exist in project
1 parent 13b5660 commit ecabfd4

File tree

5 files changed

+38
-37
lines changed

5 files changed

+38
-37
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ cache:
55
notifications:
66
email: false
77
node_js:
8-
- '7'
8+
- '9'
9+
- '8'
910
- '6'
10-
- '4'
1111
before_script:
1212
- npm prune
13-
- npm run test
1413
after_success:
1514
- npm run build
1615
- npm run semantic-release

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Skeleton "micro" css framework boilerplate: http://www.getskeleton.com. Consolid
44
[![Build Status](https://travis-ci.org/crobinson42/react-skeleton-css.svg?branch=master)](https://travis-ci.org/crobinson42/react-skeleton-css)
55
[![npm version](https://badge.fury.io/js/react-skeleton-css.svg)](https://badge.fury.io/js/react-skeleton-css)
66
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
7-
[![react](https://cloud.githubusercontent.com/assets/5973579/22582957/e5f05040-e99e-11e6-9e07-607a5de86899.png)](https://react.facebook.com)
87

98
------
109

@@ -30,4 +29,10 @@ npm install react-skeleton-css
3029

3130
## Usage
3231

33-
After you've included react-skeleton-css and the skeleton css/stylesheets, you can use the components. Caveat: you must include the skeleton css/stylesheets in your project.
32+
> You must include the skeleton css/stylesheets in your project.
33+
34+
```
35+
<link href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css" type="text/css" rel="stylesheet">
36+
```
37+
38+
After you've included react-skeleton-css and the skeleton css/stylesheets, you can use the components.

lib/components/Button.js

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,32 @@
1-
import React, { Component } from 'react';
2-
import PropTypes from 'prop-types';
1+
import React, { Component } from "react";
2+
import PropTypes from "prop-types";
33

44
class Button extends Component {
5-
render() {
6-
const { primary, pull, className, ...props } = this.props
7-
let _className = this.props.primary ? 'button-primary' : className
8-
_className += this.props.pull ? ` u-pull-${this.props.pull}` : ''
5+
render() {
6+
const { primary, pull, className, ...props } = this.props;
7+
let _className = this.props.primary ? "button-primary" : className;
8+
_className += this.props.pull ? ` u-pull-${this.props.pull}` : "";
99

10-
return (
11-
<button
12-
className={_className}
13-
{...props}
14-
>
15-
{this.props.children}
16-
</button>
17-
);
18-
}
10+
return (
11+
<button className={_className} {...props}>
12+
{this.props.children}
13+
</button>
14+
);
15+
}
1916
}
2017

2118
Button.defaultProps = {
22-
pull: '',
23-
style: {},
24-
className: 'button',
25-
primary: false
26-
}
19+
pull: "",
20+
style: {},
21+
className: "button",
22+
primary: false
23+
};
2724

2825
Button.propTypes = {
29-
pull: PropTypes.oneOf(['left', 'right', '']),
30-
style: PropTypes.object.isRequired,
31-
className: PropTypes.string.isRequired,
32-
primary: PropTypes.bool.isRequired,
33-
}
26+
pull: PropTypes.oneOf(["left", "right", ""]),
27+
style: PropTypes.object.isRequired,
28+
className: PropTypes.string.isRequired,
29+
primary: PropTypes.bool.isRequired
30+
};
3431

3532
export default Button;

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://github.com/crobinson42/react-skeleton-css"
99
},
1010
"scripts": {
11-
"test": "mocha",
11+
"test": "exit 0",
1212
"dev": "webpack-dev-server --hot --watch",
1313
"build": "NODE_ENV=production webpack -p",
1414
"semantic-release": "semantic-release pre && npm publish && semantic-release post"

0 commit comments

Comments
 (0)