Commit 3ad6d10e authored by 李勇諭's avatar 李勇諭

make pack work

parent 0e4e0bca
/node_modules /node_modules
/public /public
/src /src
dist/index.d.ts /dist/index.d.ts
/dist/index.js
/dist/index.js.map
tsconfig.json tsconfig.json
tslint.json tslint.json
webpack.config.js webpack.config.js
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
"types": ".dist/PullToRefresh.d.ts", "types": ".dist/PullToRefresh.d.ts",
"scripts": { "scripts": {
"dev": "webpack-dev-server", "dev": "webpack-dev-server",
"tsc": "tsc -p .", "lint": "tslint -c tslint.json src/*",
"clean": "rimraf dist",
"tsc": "npm run clean && tsc -p .",
"test": "npm run lint", "test": "npm run lint",
"prepublish": "npm run tsc && npm test" "prepublish": "npm run tsc && npm test"
}, },
...@@ -25,17 +27,18 @@ ...@@ -25,17 +27,18 @@
}, },
"homepage": "https://github.com/echoulen/react-js-pull-to-refesh#readme", "homepage": "https://github.com/echoulen/react-js-pull-to-refesh#readme",
"dependencies": { "dependencies": {
"@types/react": "^16.0.31",
"core-decorators": "^0.20.0", "core-decorators": "^0.20.0",
"react": "^16.2.0", "react": "^16.2.0",
"react-dom": "^16.2.0" "react-dom": "^16.2.0"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^16.0.31",
"@types/core-decorators": "^0.10.32", "@types/core-decorators": "^0.10.32",
"@types/react-dom": "^16.0.3", "@types/react-dom": "^16.0.3",
"awesome-typescript-loader": "^3.4.1", "awesome-typescript-loader": "^3.4.1",
"path": "^0.12.7", "path": "^0.12.7",
"react-hot-loader": "^3.1.3", "react-hot-loader": "^3.1.3",
"rimraf": "^2.6.2",
"source-map-loader": "^0.2.3", "source-map-loader": "^0.2.3",
"tslint": "^5.8.0", "tslint": "^5.8.0",
"tslint-react": "^3.2.0", "tslint-react": "^3.2.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment