Skip to content

Commit

Permalink
es5
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed May 28, 2015
1 parent 2592259 commit 3ac528d
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 79 deletions.
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ Thumbs.db
*.pyo
.build
node_modules
_site
sea-modules
spm_modules
.cache
dist
assets/**/*.css
build/
build
lib
27 changes: 0 additions & 27 deletions .jscsrc

This file was deleted.

28 changes: 0 additions & 28 deletions .jshintrc

This file was deleted.

14 changes: 7 additions & 7 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
bower_components/
build/
*.cfg
node_modules/
nohup.out
*.iml
.idea/
Expand All @@ -21,9 +20,10 @@ Thumbs.db
out/
.build
node_modules
_site
sea-modules
spm_modules
.cache
dist
build/
examples
tests
src
/index.js
.*
assets/**/*.less
2 changes: 2 additions & 0 deletions examples/simple.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

var React = require('react');
var Table = require('rc-table');

Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
module.exports = require('./lib/Table');
'use strict';

module.exports = require('./src/');
18 changes: 7 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "rc-table",
"version": "2.1.0",
"version": "2.1.1",
"description": "table ui component for react",
"keywords": [
"react",
"react-table"
],
"main": "./lib/index",
"homepage": "http://github.com/react-component/table",
"maintainers": [
"dxq613@gmail.com",
Expand All @@ -19,21 +20,17 @@
"url": "http://github.com/react-component/table/issues"
},
"licenses": "MIT",
"spm": {
"dependencies": {
"react": "*"
}
},
"config": {
"port": 8000
},
"scripts": {
"build": "rc-tools run build",
"precommit": "rc-tools run precommit",
"less": "rc-tools run less",
"gh-pages": "rc-tools run gh-pages",
"history": "rc-tools run history",
"start": "node --harmony node_modules/.bin/rc-server",
"publish": "rc-tools run tag && spm publish",
"publish": "rc-tools run tag",
"lint": "rc-tools run lint",
"saucelabs": "node --harmony node_modules/.bin/rc-tools run saucelabs",
"browser-test": "node --harmony node_modules/.bin/rc-tools run browser-test",
Expand All @@ -43,12 +40,11 @@
"expect.js": "~0.3.1",
"jquery": "^1.11.2",
"precommit-hook": "^1.0.7",
"rc-server": "^2.0.0",
"rc-tools": "2.x",
"rc-server": "3.x",
"rc-tools": "3.x",
"react": "~0.13.0"
},
"precommit": [
"lint",
"less"
"precommit"
]
}
2 changes: 2 additions & 0 deletions lib/Table.jsx → src/Table.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

var React = require('react');

//表格列
Expand Down
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

module.exports = require('./Table');
2 changes: 1 addition & 1 deletion tests/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @jsx React.DOM */
'use strict';

var expect = require('expect.js');
var Table = require('../');
Expand Down

0 comments on commit 3ac528d

Please sign in to comment.