refactor: migrate to TypeScript
Showing
.DS_Store
0 → 100644
File added
dist/LiveRoute.js
0 → 100644
This diff is collapsed.
Click to expand it.
dist/LiveRoute.js.map
0 → 100644
dist/index.js
0 → 100644
dist/index.js.map
0 → 100644
dist/test.js
0 → 100644
dist/test.js.map
0 → 100644
example/package.json
0 → 100755
example/public/index.html
0 → 100755
example/src/about.js
0 → 100755
example/src/bar.js
0 → 100755
example/src/detail.js
0 → 100755
example/src/home.js
0 → 100755
example/src/index.js
0 → 100755
example/src/list.js
0 → 100755
example/src/styles.css
0 → 100755
modules/.eslintrc
deleted
100755 → 0
modules/index.js
deleted
100644 → 0
modules/matchPath.js
deleted
100755 → 0
modules/react-router/.babelrc
deleted
100755 → 0
modules/react-router/.eslintrc
deleted
100755 → 0
modules/react-router/MemoryRouter.js
deleted
100755 → 0
modules/react-router/Prompt.js
deleted
100755 → 0
modules/react-router/Redirect.js
deleted
100755 → 0
modules/react-router/Route.js
deleted
100755 → 0
modules/react-router/Router.js
deleted
100755 → 0
modules/react-router/StaticRouter.js
deleted
100755 → 0
modules/react-router/Switch.js
deleted
100755 → 0
This diff is collapsed.
Click to expand it.
modules/react-router/generatePath.js
deleted
100755 → 0
modules/react-router/index.js
deleted
100755 → 0
modules/react-router/matchPath.js
deleted
100755 → 0
modules/react-router/withRouter.js
deleted
100755 → 0
... | ... | @@ -7,17 +7,15 @@ |
"authors": "fi3ework", | ||
"files": [ | ||
"index.js", | ||
"matchPath.js", | ||
"LiveRoute.js" | ||
], | ||
"main": "index.js", | ||
"main": "dist/index.js", | ||
"module": "es/index.js", | ||
"sideEffects": false, | ||
"scripts": { | ||
"build": "node ./tools/build.js", | ||
"watch": "babel ./modules -d . --ignore react-router --watch", | ||
"prepublishOnly": "node ./tools/build.js", | ||
"clean": "git clean -fdX .", | ||
"build": "rm -fr dist && tsc", | ||
"watch": "tsc -b -w --pretty", | ||
"prepare": "npm run build", | ||
"lint": "eslint modules", | ||
"test": "jest" | ||
}, | ||
... | ... | @@ -25,46 +23,21 @@ |
"react": ">=15" | ||
}, | ||
"dependencies": { | ||
"history": "^4.7.2", | ||
"hoist-non-react-statics": "^2.5.0", | ||
"invariant": "^2.2.4", | ||
"loose-envify": "^1.3.1", | ||
"path-to-regexp": "^1.7.0", | ||
"prop-types": "^15.6.1", | ||
"react-is": "^16.7.0", | ||
"react": "^16.3.2", | ||
"react-dom": "^16.3.2", | ||
"react-router": "^4.3.1", | ||
"react-router-dom": "^4.3.1", | ||
"warning": "^4.0.1" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-eslint": "^8.2.3", | ||
"babel-jest": "^22.4.3", | ||
"babel-plugin-dev-expression": "^0.2.1", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.13", | ||
"babel-plugin-transform-remove-console": "^6.9.4", | ||
"babel-preset-es2015": "^6.14.0", | ||
"babel-preset-react": "^6.5.0", | ||
"babel-preset-stage-1": "^6.5.0", | ||
"eslint": "^4.19.1", | ||
"eslint-plugin-import": "^2.11.0", | ||
"eslint-plugin-react": "^7.7.0", | ||
"gzip-size": "^4.1.0", | ||
"@types/react": "^16.7.18", | ||
"@types/react-dom": "^16.0.11", | ||
"jest": "^23.1.0", | ||
"pretty-bytes": "^4.0.2", | ||
"raf": "^3.4.0", | ||
"react": "^16.3.2", | ||
"react-addons-test-utils": "^15.6.2", | ||
"react-dom": "^16.3.2", | ||
"rollup": "^0.58.2", | ||
"rollup-plugin-babel": "^3.0.4", | ||
"rollup-plugin-commonjs": "^9.1.0", | ||
"rollup-plugin-node-resolve": "^3.3.0", | ||
"rollup-plugin-replace": "^2.0.0", | ||
"rollup-plugin-uglify": "^3.0.0" | ||
}, | ||
"browserify": { | ||
"transform": [ | ||
"loose-envify" | ||
] | ||
"tslint-config-prettier": "^1.17.0" | ||
}, | ||
"jest": { | ||
"setupFiles": [ | ||
... | ... |
src/index.tsx
0 → 100644
tools/babel-preset.js
deleted
100755 → 0
tools/build.js
deleted
100755 → 0
tsconfig.json
0 → 100644
modules/.babelrc
→
tsconfig.prod.json
100755 → 100644
tsconfig.test.json
0 → 100644
tslint.json
0 → 100644
yarn.lock
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
Please
register
or
sign in
to comment