Skip to content

Commit

Permalink
Add TypeScript definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Ledin committed Nov 13, 2017
1 parent d83f632 commit 552d7e3
Show file tree
Hide file tree
Showing 5 changed files with 703 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@ node_modules

# Users Environment Variables
.lock-wscript

# IntelliJ
.idea

# npm
package-lock.json
32 changes: 21 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"homepage": "https://tomchentw.github.io/react-google-maps/",
"main": "lib/index.js",
"files": ["lib/", "src/", "CHANGELOG.md"],
"files": ["lib/", "src/lib", "CHANGELOG.md", "types/index.d.ts"],
"keywords": [
"React",
"Google",
Expand Down Expand Up @@ -50,10 +50,11 @@
"precommit": "lint-staged",
"styleguide": "styleguidist server",
"styleguide:build": "styleguidist build",
"dtslint": "dtslint types",
"test": "react-scripts test --env=jsdom",
"test:once": "cross-env CI=true npm test",
"build:src": "babel-node src/tx/jscodeshift",
"precommit:src": "npm run build:src",
"precommit:src": "npm run build:src && npm run dtslint",
"commit:src":
"git add -A && git commit -m 'chore(src/components): compile from src/macros with `babel`'",
"prebuild:lib": "rimraf lib",
Expand Down Expand Up @@ -96,10 +97,12 @@
"singleQuote": false,
"trailingComma": "es5"
},
"types": "types",
"dependencies": {
"babel-runtime": "^6.11.6",
"can-use-dom": "^0.1.0",
"google-maps-infobox": "^1.1.13",
"eslint": "^4.11.0",
"google-maps-infobox": "^2.0.0",
"invariant": "^2.2.1",
"lodash": "^4.16.2",
"marker-clusterer-plus": "^2.1.4",
Expand All @@ -110,32 +113,39 @@
"warning": "^3.0.0"
},
"peerDependencies": {
"@types/googlemaps": "^3.0.0",
"@types/markerclustererplus": "^2.1.29",
"@types/react": "^15.0.0 || ^16.0.0",
"react": "^15.0.0 || ^16.0.0",
"react-dom": "^15.0.0 || ^16.0.0"
},
"devDependencies": {
"@types/googlemaps": "^3.29.2",
"@types/markerclustererplus": "^2.1.33",
"@types/react": "^16.0.22",
"babel-cli": "^6.26.0",
"babel-plugin-lodash": "^3.2.11",
"babel-plugin-lodash": "^3.3.2",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"cheerio": "^1.0.0-rc.2",
"cross-env": "^5.0.5",
"cross-env": "^5.1.1",
"dtslint": "github:Microsoft/dtslint#production",
"glob": "^7.1.2",
"husky": "^0.14.3",
"isomorphic-fetch": "^2.2.1",
"jscodeshift": "^0.3.32",
"lint-staged": "^4.1.3",
"lint-staged": "^4.3.0",
"make-fetch-happen": "^2.5.0",
"mkdirp": "^0.5.1",
"prettier": "^1.6.1",
"prettier": "^1.8.2",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-icons": "^2.2.5",
"react-scripts": "^1.0.13",
"react-styleguidist": "^6.0.24",
"react-icons": "^2.2.7",
"react-scripts": "^1.0.17",
"react-styleguidist": "^6.0.33",
"rimraf": "^2.6.2",
"standard-version": "^4.2.0",
"to-markdown": "^3.1.0"
Expand Down
Loading

0 comments on commit 552d7e3

Please sign in to comment.