Skip to content

Commit 468e1eb

Browse files
author
翰文
committed
feat: rebuild
1 parent f2339d1 commit 468e1eb

11 files changed

+17
-111
lines changed

.eslintrc

-23
This file was deleted.

.gitignore

+2-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ Thumbs.db
1919
*.pyo
2020
.build
2121
node_modules
22-
_site
23-
sea-modules
24-
spm_modules
2522
.cache
2623
dist
2724
assets/**/*.css
28-
build/
25+
build
26+
lib

.jscsrc

-27
This file was deleted.

.jshintrc

-28
This file was deleted.

.npmignore

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
bower_components/
21
build/
32
*.cfg
4-
node_modules/
53
nohup.out
64
*.iml
75
.idea/
@@ -22,8 +20,10 @@ Thumbs.db
2220
out/
2321
.build
2422
node_modules
25-
_site
26-
sea-modules
27-
spm_modules
2823
.cache
29-
dist
24+
examples
25+
tests
26+
src
27+
/index.js
28+
.*
29+
assets/**/*.less

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
module.exports = require('./src/Upload');
1+
// do not modify this file
2+
module.exports = require('./src/');

package.json

+5-22
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,18 @@
1818
"url": "http://github.com/react-component/upload/issues"
1919
},
2020
"licenses": "MIT",
21-
"spm": {
22-
"dependencies": {
23-
"react": "*"
24-
}
25-
},
21+
"main":"./lib/index",
2622
"config": {
2723
"port": 8000
2824
},
2925
"scripts": {
3026
"build": "rc-tools run build",
27+
"precommit": "rc-tools run precommit",
3128
"less": "rc-tools run less",
3229
"gh-pages": "rc-tools run gh-pages",
33-
"history": "rc-tools run history",
34-
"start": "node-dev --harmony ./tests/starter.js",
35-
"publish": "spm publish && rc-tools run tag",
30+
"start": "node --harmony node_modules/.bin/rc-server",
31+
"publish": "rc-tools run tag",
3632
"lint": "rc-tools run lint",
37-
"test": "",
3833
"saucelabs": "node --harmony node_modules/.bin/rc-tools run saucelabs",
3934
"browser-test": "node --harmony node_modules/.bin/rc-tools run browser-test",
4035
"browser-test-cover": "node --harmony node_modules/.bin/rc-tools run browser-test-cover"
@@ -49,20 +44,8 @@
4944
"react": "0.13.x"
5045
},
5146
"precommit": [
52-
"lint",
53-
"less"
47+
"precommit"
5448
],
55-
"browserify": {
56-
"transform": [
57-
[
58-
"reactify",
59-
{
60-
"es6": true
61-
}
62-
],
63-
"envify"
64-
]
65-
},
6649
"dependencies": {
6750
"object-assign": "~2.0.0",
6851
"superagent": "~1.2.0"
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// export this package's api
2+
module.exports = require('./Upload');

0 commit comments

Comments
 (0)