Skip to content

Commit

Permalink
feat: initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
ruscon committed Mar 1, 2019
0 parents commit 689832b
Show file tree
Hide file tree
Showing 117 changed files with 25,218 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 160
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[*.{yml, yaml}]
indent_size = 2
2 changes: 2 additions & 0 deletions .env.enc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
�@ح�Z��@�{�iQ�i{v��;`=i�����~��Y+r��+���k&5�>D��I]�D��v�w�!��5~4�mVX%�x��6"{���+~�<��/<'��Ei��2#!���"�أX��H|f�kʛu�>F0T�0���YC�i�b��Jۋ��\}�G6k!�F�܁:�
�����(5�
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
##################################################
# These variables are used for integration tests #
##################################################
GOOGLE_MAPS_API_KEY=

HERE_APP_ID=
HERE_APP_CODE=

MAP_QUEST_API_KEY=
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* text=auto
* text eol=lf
*.png binary
*.gif binary
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/1-bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: 🐞 Bug Report
about: Report a reproducible bug
title: ''
labels: ''
assignees: ''

---

<!-- Click "Preview" for a more readable version --
Please read and follow the instructions before submitting an issue:
- Read all our documentation, especially the [README](https://github.com/goparrot/geocoder/blob/master/README.md). It may contain information that helps you solve your issue.
- Ensure your issue isn't already [reported](https://github.com/goparrot/geocoder/issues?utf8=%E2%9C%93&q=is%3Aissue).
- If you aren't sure that the issue is caused by Geocoder or you just need help, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/goparrot-geocoder).
- Ensure it isn't already fixed in the latest Geocoder version.
⚠️👆 Feel free to these instructions before submitting the issue 👆⚠️
-->

## Describe the bug

<!-- A clear and concise description of what the bug is. If your problem is not a bug, please file under Question -->

## To Reproduce

<!-- Code snippet to reproduce, ideally that will work by pasting into something like <https://npm.runkit.com/goparrot/geocoder>, a hosted solution, or a repository that illustrates the issue. **If your problem is not reproducible, please file under Question** -->

```typescript
// Example code here
```

## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->

## Environment:

* Geocoder Version: x.y.z
* Node version: x.y.z

## Additional context/Screenshots

<!-- Add any other context about the problem here. If applicable, add screenshots to help explain. -->
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/2-feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: ✨ Feature Request
about: Suggest an idea or feature
title: 'feat: '
labels: feature
assignees: ruscon

---

## Issue Number: [N/A]

## Does this PR introduce a breaking change

[ ] Yes
[ ] No

<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->

## Is your feature request related to a problem? Please describe.

<!-- Please describe the problem you are trying to solve. -->

## Describe the solution you'd like

<!-- Please describe the desired behavior. -->

## Describe alternatives you've considered

<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->

## Additional context

<!-- Add any other context or screenshots about the feature request here. -->
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/3-documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: 📚 Documentation
about: Found a typo or something that isn't crystal clear in our docs?
title: 'docs: '
labels: documentation
assignees: ruscon

---

<!-- Click "Preview" for a more readable version --
If you found an area that needs clarification, feel free to open a PR or list the section/content that could be improved below
⚠️👆 Feel free to these instructions before submitting the issue 👆⚠️
-->

## Section/Content To Improve

<!-- Quote or link to section -->

## Suggested Improvement

<!-- Identify what is confusing or incorrect and what could make it better -->

## Relevant File(s):

<!-- [e.g. README.md] -->
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/4-question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: 🤔 Question
about: Get help using Geocoder
title: 'question: '
labels: question
assignees: ''

---

<!-- Click "Preview" for a more readable version --
Please read and follow the instructions before submitting an issue:
- Read all our documentation, especially the [README](https://github.com/goparrot/geocoder/blob/master/README.md). It may contain information that helps you solve your issue.
- Ensure your issue isn't already [reported](https://github.com/goparrot/geocoder/issues?utf8=%E2%9C%93&q=is%3Aissue).
- If you aren't sure that the issue is caused by Geocoder or you just need help, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/goparrot-geocoder).
⚠️👆 Feel free to these instructions before submitting the issue 👆⚠️
-->

## Environment:

* Geocoder Version: x.y.z
* Node version: x.y.z

## Describe the issue

<!-- A clear and concise description of what the issue is. -->

## Example Code

<!-- Code snippet to illustrate your question. -->

```typescript
// Example code here
```

## Expected behavior, if applicable

<!-- A clear and concise description of what you expected to happen. -->

## Additional context/screenshots

<!-- Add any other context about the problem here. If applicable, add screenshots to help explain. -->
47 changes: 47 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!--
Thanks for creating a Pull Request! Before you submit, please make sure
you've done the following:
- I read the contributing document at https://github.com/goparrot/geocoder/blob/master/CONTRIBUTING.md#contributing
-->

<!--
Make our lives easier! Choose one of the following by uncommenting it:
-->

<!-- This is a 🐛 bug fix. -->

<!-- This is a 🙋 feature or enhancement. -->

<!-- This is a 🔦 documentation change. -->

<!--
Before you submit this pull request, make sure to have a look at the following
checklist. If you don't know how to do some of these, that's fine! Submit
your pull request and we will help you out on the way.
- I've added tests (if it's a bug, feature or enhancement)
- I've adjusted the documentation (if it's a feature or enhancement)
- The test suite passes locally (run `npm test` to verify this)
-->

## Summary

<!--
Provide a description of what your pull request changes.
-->

## Context

<!--
Is this related to any GitHub issue(s)?
You can use keywords to automatically close the related issue.
For example, (all of) the following will close issue #4567 when your PR is merged.
Closes #4567
Fixes #4567
Resolves #4567
Use any one of the above as applicable.
-->
15 changes: 15 additions & 0 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
updateDocsComment: >
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would update some of our documentation based on your changes.
updateDocsWhiteList:
- bug
- fix
- Backport
- dev
- Update
- WIP
- chore

updateDocsTargetFiles:
- README
- docs/
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# dependencies
dist/
node_modules/
package-lock.json

# IDE
/.idea
/.vscode

# misc
.DS_Store

# tests
test.ts
/test-reports
/coverage
/.nyc_output
/log
.env
19 changes: 19 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/.idea
/.github
/coverage
/.nyc_output
/test/
.gitignore
.nycrc.*
.remarkrc
.travis.*
commitlint.*
.gitattributes
.prettierignore
.env*
.editorconfig
.prettierrc.*
tsconfig.*
tslint.*
*.md
test.*
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
9 changes: 9 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extension": [".ts"],
"include": ["src/**/*.ts"],
"exclude": ["**/*.d.ts", "src/**/*.interface.ts"],
"require": ["./node_modules/reflect-metadata/Reflect.js", "ts-node/register", "source-map-support/register"],
"reporter": ["text-summary", "html"],
"cache": false,
"all": true
}
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
.nyc_output
package-lock.json
dist
test-reports
9 changes: 9 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "always",
"printWidth": 160
}
13 changes: 13 additions & 0 deletions .remarkrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"settings": {
"emphasis": "*",
"strong": "*",
"bullet": "*"
},
"plugins": [
"remark-lint-emphasis-marker",
"remark-lint-strong-marker",
"remark-github",
"remark-frontmatter"
]
}
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: node_js
node_js:
- '8'
#- '10'
#- '11'
cache:
directories:
- node_modules
git:
depth: 5
before_install:
- openssl aes-256-cbc -K $encrypted_78a1249b0419_key -iv $encrypted_78a1249b0419_iv
-in .env.enc -out .env -d
install:
- npm i
script:
- npm run lint
- npm run test:ci
- commitlint-travis
after_success: npm run coverage:ci
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## 0.0.1 (2019-03-01)

### Features

* initial version ([8fafb5d](https://github.com/goparrot/geocoder/commit/8fafb5d))
27 changes: 27 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Contributor Code of Conduct

As contributors and maintainers of this project, we pledge to respect all people
who contribute through reporting issues, posting feature requests, updating
documentation, submitting pull requests or patches, and other activities.

We are committed to making participation in this project a harassment-free
experience for everyone, regardless of level of experience, gender, gender
identity and expression, sexual orientation, disability, personal appearance,
body size, race, age, or religion.

Examples of unacceptable behavior by participants include the use of sexual
language or imagery, derogatory comments or personal attacks, trolling, public
or private harassment, insults, or other unprofessional conduct.

Project maintainers have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct. Project maintainers who do not follow the
Code of Conduct may be removed from the project team.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by opening an issue or contacting one or more of the project
maintainers.

This Code of Conduct is adapted from the [Contributor
Covenant](http:contributor-covenant.org), version 1.0.0, available at
<http://contributor-covenant.org/version/1/0/0/>
Loading

0 comments on commit 689832b

Please sign in to comment.