Skip to content

Rewrite library using create-react-library #900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build/
dist/
node_modules/
.snapshots/
*.min.js
*.spec.js
68 changes: 18 additions & 50 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,65 +1,33 @@
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"prettier",
"prettier/flowtype",
"standard",
"standard-react",
"plugin:prettier/recommended",
"prettier/standard",
"prettier/react"
],
"plugins": [
"babel",
"prettier"
],
"parser": "babel-eslint",
"env": {
"es6": true,
"browser": true,
"mocha": true,
"jest": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaVersion": 2020,
"ecmaFeatures": {
"jsx": true,
"generators": true,
"experimentalObjectRestSpread": true
"legacyDecorators": true,
"jsx": true
}
},
"settings": {
"react": {
"version": "16"
}
},
"rules": {
"no-bitwise": 0,
"no-nested-ternary": 0,
"space-before-function-paren": 0,
"react/prop-types": 0,
"react/jsx-filename-extension": 0,
"react/require-default-props": 0,
"react/jsx-handler-names": 0,
"react/jsx-fragments": 0,
"react/no-unused-prop-types": 0,
"no-sequences": 1,
"comma-dangle": 0,
"no-mixed-operators": 0,
"no-underscore-dangle": 0,
"no-restricted-properties": 0,
"jsx-a11y/no-static-element-interactions": 0,
"import/no-extraneous-dependencies": 0,
"no-plusplus": 0,
"no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
],
"react/sort-comp": 0,
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true
}
]
},
"settings": {
"polyfills": [
"fetch__"
]
},
"globals": {}
"import/export": 0
}
}
35 changes: 0 additions & 35 deletions .flowconfig

This file was deleted.

26 changes: 22 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
lib/*
dist/*
/node_modules
.idea/

# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
node_modules

# builds
build
dist
.rpt2_cache

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
8 changes: 0 additions & 8 deletions .npmignore

This file was deleted.

10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"singleQuote": true,
"jsxSingleQuote": true,
"semi": true,
"tabWidth": 2,
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"trailingComma": "es5"
}
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
language: node_js
node_js:
- stable
- stable
cache:
directories:
- node_modules
- node_modules
before_script:
- git diff --exit-code # make sure that yarn.lock didn't change
script:
- yarn run lint
- yarn test:lint
- yarn test
4 changes: 0 additions & 4 deletions .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ render() {
Example:

```javascript
import { fitBounds } from 'google-map-react/utils';
import { fitBounds } from 'google-map-react';

const bounds = {
nw: {
Expand Down
26 changes: 16 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
## [unreleased(major)]

### Changed

- Rewrite library using [create-react-library](https://www.npmjs.com/package/create-react-library)
- **Breaking** Move `google-map-react/utils` to module import, so instead of doing `import { utilName } from 'google-map-react/utils` you will do `import { utilName } from google-map-react`

## 0.9v

Add prop `onDragEnd` to react on the `dragend` event

Add [google-map-clustering-example](https://github.com/istarkov/google-map-clustering-example)

Add prop `onTilesLoaded` to react on the `tilesloaded` event

###0.9v

Add: `bootstrapURLKeys` (object) instead of `apiKey` prop

(`apiKey` prop is now deprecated)
Expand All @@ -22,12 +29,11 @@ Example:
>
```

###0.8v
## 0.8v

Draggable markers support, examples comig soon.


###Mon Oct 5 2015
## Mon Oct 5 2015

Add `OnChange({center, zoom, bounds: {nw, se}, size, ...oherMapProps})`

Expand Down Expand Up @@ -58,10 +64,10 @@ Add `utils` functions, with `fitBounds` and other functions
```


###Sun Oct 4 2015
## Sun Oct 4 2015
Add minZoom calculation, to prevent situations when one map point can have multiple screen coordinates.

###Sun Oct 4 2015
## Sun Oct 4 2015
Add ability to access to internal google api

```javascript
Expand All @@ -71,14 +77,14 @@ Add ability to access to internal google api
(*to prevent warn message add _yesIWantToUseGoogleMapApiInternals_ property to GoogleMap*)


###Sun Oct 4 2015
## Sun Oct 4 2015

Add: `defaultZoom` `defaultCenter` properties, it closes #9 #10

###Sat Oct 3 2015
## Sat Oct 3 2015

Support `center` prop as `{lat, lng}` object

###Thu Oct 1 2015
## Thu Oct 1 2015

Add `onClick`, `onZoomAnimationStart`, `onZoomAnimationEnd` events.
2 changes: 1 addition & 1 deletion DOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ _)
### Helper utilities

```javascript
import { meters2ScreenPixels } from 'google-map-react/utils';
import { meters2ScreenPixels } from 'google-map-react';
const { w, h } = meters2ScreenPixels(sizeInMeters, { lat, lng } /* marker coords*/, zoom /* map zoom*/);
```

Expand Down
31 changes: 0 additions & 31 deletions bower.json

This file was deleted.

Loading