Skip to content

Commit

Permalink
feat: remove index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
paranoidjk committed Aug 6, 2017
1 parent 983b6f2 commit b5e43fd
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 9 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ sudo: false
notifications:
email:
- yiminghe@gmail.com
- hust2012jiangkai@gmail.com

node_js:
- 6
Expand Down
3 changes: 2 additions & 1 deletion assets/bootstrap.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "boostrap/anim.less";

@tooltip-prefix-cls: rc-tooltip;

//
Expand Down Expand Up @@ -160,4 +162,3 @@
}
}

@import "boostrap/anim.less";
3 changes: 2 additions & 1 deletion assets/bootstrap_white.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "boostrap/anim.less";

@tooltip-prefix-cls: rc-tooltip;

//
Expand Down Expand Up @@ -186,4 +188,3 @@
right: 15%;
}
}
@import "boostrap/anim.less";
1 change: 1 addition & 0 deletions examples/arrowContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import Tooltip from 'rc-tooltip';
import 'rc-tooltip/assets/bootstrap_white.less';

const text = <span>提示文字</span>;
const styles = {
display: 'inline-block',
Expand Down
1 change: 1 addition & 0 deletions examples/formError.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Tooltip from 'rc-tooltip';

import 'rc-tooltip/assets/bootstrap.less';

class Test extends Component {
Expand Down
3 changes: 0 additions & 3 deletions index.js

This file was deleted.

13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rc-tooltip",
"version": "3.4.7",
"version": "3.4.8",
"description": "React Tooltip",
"keywords": [
"react",
Expand All @@ -9,6 +9,7 @@
"tooltip"
],
"files": [
"dist",
"lib",
"es",
"assets/*.css"
Expand All @@ -28,9 +29,15 @@
},
"license": "MIT",
"config": {
"port": 8007
"port": 8007,
"entry": {
"rc-tooltip": [
"./src/index.js"
]
}
},
"scripts": {
"dist": "rc-tools run dist",
"build": "rc-tools run build",
"gh-pages": "rc-tools run gh-pages",
"start": "rc-tools run server",
Expand Down Expand Up @@ -60,7 +67,7 @@
"lint"
],
"dependencies": {
"babel-runtime": "^6.23.0",
"babel-runtime": "6.x",
"prop-types": "^15.5.8",
"rc-trigger": "1.x"
}
Expand Down
2 changes: 1 addition & 1 deletion tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import { Simulate } from 'react-dom/test-utils';
import $ from 'jquery';
import Tooltip from '../index';
import Tooltip from 'rc-tooltip';
import async from 'async';
window.$ = $;

Expand Down

0 comments on commit b5e43fd

Please sign in to comment.