Skip to content

Commit d179f3a

Browse files
author
jfusco
committed
Fixing Travis integration and changing the name of the tag component
1 parent f24f35a commit d179f3a

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ before_install:
99
- npm install -g babel-cli
1010
- npm install -g jest-cli
1111
script:
12-
- "gulp eslint"
12+
- "gulp eslint && npm test"

dist-components/Tags.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ var _reactAddonsUpdate = require('react-addons-update');
1414

1515
var _reactAddonsUpdate2 = _interopRequireDefault(_reactAddonsUpdate);
1616

17-
var _tag = require('./tag');
17+
var _Tag = require('./Tag');
1818

19-
var _tag2 = _interopRequireDefault(_tag);
19+
var _Tag2 = _interopRequireDefault(_Tag);
2020

2121
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2222

@@ -123,7 +123,7 @@ var Tags = function (_Component) {
123123
var _this4 = this;
124124

125125
var tagItems = this.state.tags.map(function (tag, v) {
126-
return _react2.default.createElement(_tag2.default, {
126+
return _react2.default.createElement(_Tag2.default, {
127127
key: v,
128128
readOnly: _this4.props.readOnly,
129129
name: tag,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-tagging-input",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"description": "Simple tagging component",
55
"main": "dist-components/Tags.js",
66
"license": "MIT",

src/js/tag.js renamed to src/js/Tag.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import React from 'react';
44

5-
const tag = props => {
5+
const Tag = props => {
66
const onRemoveClick = e => {
77
e.preventDefault();
88

@@ -29,9 +29,9 @@ const tag = props => {
2929
);
3030
};
3131

32-
export default tag;
32+
export default Tag;
3333

34-
tag.propTypes = {
34+
Tag.propTypes = {
3535
name: React.PropTypes.string.isRequired,
3636
removeTag: React.PropTypes.func,
3737
readOnly: React.PropTypes.bool,

src/js/Tags.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import React, {Component} from 'react';
44
import update from 'react-addons-update';
5-
import tag from './tag';
5+
import Tag from './Tag';
66

77
const map = new WeakMap();
88

@@ -95,7 +95,7 @@ export default class Tags extends Component{
9595

9696
render(){
9797
const tagItems = this.state.tags.map((tag, v) => {
98-
return <tag
98+
return <Tag
9999
key={v}
100100
readOnly={this.props.readOnly}
101101
name={tag}

0 commit comments

Comments
 (0)