Skip to content
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

v2.0 🎉 🎉 🎉 #130

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
18a7a9a
chore: cleanup before v2
AnatoleLucet Jun 13, 2023
e403f10
chore: init toolchain
AnatoleLucet May 6, 2023
fd66d66
feat: add GMap & GMapMarker components
AnatoleLucet May 6, 2023
344c709
feat: add GMapAnimmatedMarker component
AnatoleLucet May 7, 2023
d578aaa
chore: rename package
AnatoleLucet May 11, 2023
02ed021
chore: add .npmignore
AnatoleLucet May 11, 2023
376850c
feat: add GMapsPolyline and GMapsAnimatedPolyline (#1)
AnatoleLucet Jun 6, 2023
3b4a8ec
feat: add GMapsPolygon and GMapsAnimatedPolygon
AnatoleLucet Jun 13, 2023
d7e7663
docs: add list of TODOs
AnatoleLucet Jun 13, 2023
1c51f90
chore: fill package.json info
AnatoleLucet Jun 19, 2023
b95952d
feat(animations): add more easing functions
AnatoleLucet Jun 24, 2023
9991622
refactor: rename 'shenanigan' lib to 'utils'
AnatoleLucet Jun 24, 2023
33a3e77
docs(components): add docs for every components
AnatoleLucet Jun 27, 2023
003f4c2
docs(animated components): add screen captures
AnatoleLucet Jun 27, 2023
18e40fb
chore(ci): add build/lint/test jobs
AnatoleLucet Jun 28, 2023
124d51d
feat(animation): add shape interpolation & lots of tests
AnatoleLucet Jun 28, 2023
60b30c0
chore: update lockfile
AnatoleLucet Jun 28, 2023
5843c11
chore(toolchain): add eslint
AnatoleLucet Jun 28, 2023
9dc827b
fix: typos and minor issues
AnatoleLucet Jul 15, 2023
8846f67
docs: document hooks and contributing.md
AnatoleLucet Jul 15, 2023
15d1971
docs: fix typos
AnatoleLucet Sep 2, 2023
b2afcde
chore: format code & variables names
AnatoleLucet Sep 12, 2023
7be910a
chore(contributing.md): add '.env' instructions
AnatoleLucet Sep 12, 2023
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.

4 changes: 4 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Fill in these values and rename this file to .env
# Then you can run any example in the `examples/` folder with `cd examples/<name> && pnpm dev`
GMAPS_API_KEY=
GMAPS_MAP_ID=
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
examples/
dist/
23 changes: 0 additions & 23 deletions .eslintrc

This file was deleted.

27 changes: 27 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
root: true,
env: { browser: true, node: true },
parser: "@typescript-eslint/parser",
extends: [
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
],
plugins: ["@typescript-eslint", "prettier"],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-namespace": "off",
"prettier/prettier": "error",
"no-duplicate-imports": "error",
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
},
};
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI

on:
push:
branches:
- master
pull_request:

jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
with:
version: 8
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build

Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
with:
version: 8
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm lint
- run: pnpm check

Test:
runs-on: ubuntu-latest
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
with:
version: 8
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm test
19 changes: 17 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
demo/build.js
node_modules/
# MacOS
.DS_Store

# NodeJS
node_modules
.pnpm-store

# IDEs
.idea
.vscode
.fleet

# Build output
dist

# Env vars
.env
27 changes: 22 additions & 5 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
demo/
src/
.babelrc
Procfile
server.js
# MacOS
.DS_Store

# NodeJS
node_modules
.pnpm-store

# IDEs
.idea
.vscode
.fleet

# config files
/*.js
/*.mjs
/*.cjs
/*.ts
/tsconfig.json

# source
/src/

8 changes: 8 additions & 0 deletions .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
arrowParens: "avoid",
trailingComma: "all",
bracketSpacing: true,
singleQuote: false,
semi: true,
tabWidth: 2,
};
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

53 changes: 53 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Contributing

## Working on React GMaps

### Install

Requirements:

- node
- pnpm

You can install the dependencies with the following:

```bash
pnpm install
```

Then you can start the build toolchain with:

```bash
pnpm dev
```

If you want to use a GoogleMaps API Key and/or a Map ID: at the root of the repo, copy the `.env.dist` and name it `.env` and fill-in with your secrets.
Theses env variables are going to be picked up by the projects in the `examples/` folder.

### Live preview

The easiest way to see a live preview of the changes you make, is to link your local version of react-gmaps to an example.

```bash
# cd in an appropriate example
cd examples/<folder>
# install the example dependencies
pnpm install
# link your local version of react-gmaps to the example
pnpm link ../..
# start the example
pnpm dev
```

Now any change you make in the React GMaps codebase will be reflected in the example project you started.

## Opening a new Pull Request

Once your ready to get your changes reviewed and merged, you can create a [Pull Request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request).

Before asking for a review, make sure to:

- Write a description of what you've changed and why.
- Link any related issue.
- Include a test that fails without your changes.
- Make sure the CI does not fail.
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

Loading
Loading