-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #298 from osmlab/country-coder
Country coder
- Loading branch information
Showing
704 changed files
with
2,149 additions
and
12,434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,62 @@ | ||
{ | ||
"env": { | ||
"node": true, | ||
"es6": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"extends": [ | ||
"eslint:recommended" | ||
], | ||
"rules": { | ||
"dot-notation": "error", | ||
"eqeqeq": ["error", "smart"], | ||
"indent": ["off", 4], | ||
"keyword-spacing": "error", | ||
"linebreak-style": ["error", "unix"], | ||
"no-caller": "error", | ||
"no-catch-shadow": "error", | ||
"no-console": "warn", | ||
"no-div-regex": "error", | ||
"no-extend-native": "error", | ||
"no-extra-bind": "error", | ||
"no-floating-decimal": "error", | ||
"no-implied-eval": "error", | ||
"no-invalid-this": "error", | ||
"no-iterator": "error", | ||
"no-labels": "error", | ||
"no-label-var": "error", | ||
"no-lone-blocks": "error", | ||
"no-loop-func": "error", | ||
"no-multi-str": "error", | ||
"no-native-reassign": "error", | ||
"no-new": "error", | ||
"no-new-func": "error", | ||
"no-new-wrappers": "error", | ||
"no-octal": "error", | ||
"no-octal-escape": "error", | ||
"no-process-env": "error", | ||
"no-proto": "error", | ||
"no-prototype-builtins": "off", | ||
"no-return-assign": "off", | ||
"no-script-url": "error", | ||
"no-self-compare": "error", | ||
"no-sequences": "error", | ||
"no-shadow": "off", | ||
"no-shadow-restricted-names": "error", | ||
"no-throw-literal": "error", | ||
"no-unneeded-ternary": "error", | ||
"no-unused-expressions": "error", | ||
"no-unexpected-multiline": "error", | ||
"no-unused-vars": "warn", | ||
"no-void": "error", | ||
"no-warning-comments": "warn", | ||
"no-with": "error", | ||
"no-use-before-define": ["off", "nofunc"], | ||
"semi": ["error", "always"], | ||
"semi-spacing": "error", | ||
"space-unary-ops": "error", | ||
"wrap-regex": "off", | ||
"quotes": ["error", "single"] | ||
} | ||
"env": { | ||
"node": true, | ||
"es6": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"extends": [ | ||
"eslint:recommended" | ||
], | ||
"rules": { | ||
"dot-notation": "error", | ||
"eqeqeq": ["error", "smart"], | ||
"keyword-spacing": "error", | ||
"linebreak-style": ["error", "unix"], | ||
"no-caller": "error", | ||
"no-catch-shadow": "error", | ||
"no-console": "warn", | ||
"no-div-regex": "error", | ||
"no-extend-native": "error", | ||
"no-extra-bind": "error", | ||
"no-floating-decimal": "error", | ||
"no-implied-eval": "error", | ||
"no-invalid-this": "error", | ||
"no-iterator": "error", | ||
"no-labels": "error", | ||
"no-label-var": "error", | ||
"no-lone-blocks": "error", | ||
"no-loop-func": "error", | ||
"no-multi-str": "error", | ||
"no-native-reassign": "error", | ||
"no-new": "error", | ||
"no-new-func": "error", | ||
"no-new-wrappers": "error", | ||
"no-octal": "error", | ||
"no-octal-escape": "error", | ||
"no-process-env": "error", | ||
"no-proto": "error", | ||
"no-prototype-builtins": "off", | ||
"no-return-assign": "off", | ||
"no-script-url": "error", | ||
"no-self-compare": "error", | ||
"no-sequences": "error", | ||
"no-shadow": "off", | ||
"no-shadow-restricted-names": "error", | ||
"no-throw-literal": "error", | ||
"no-unneeded-ternary": "error", | ||
"no-unused-expressions": "error", | ||
"no-unexpected-multiline": "error", | ||
"no-unused-vars": "warn", | ||
"no-void": "error", | ||
"no-warning-comments": "warn", | ||
"no-with": "error", | ||
"no-use-before-define": ["off", "nofunc"], | ||
"semi": ["error", "always"], | ||
"semi-spacing": "error", | ||
"space-unary-ops": "error", | ||
"wrap-regex": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,8 +24,8 @@ might find interesting or helpful. | |
#### Source files | ||
The source files for this index are stored in two kinds of files: | ||
|
||
* Under `features/` there are `.geojson` files to describe the areas where the communities are active | ||
* Under `resources/` there are `.json` files to describe the community resources | ||
* Under `features/` there are `.geojson` files to describe the areas where the communities are active | ||
|
||
:point_right: See [CONTRIBUTING.md](CONTRIBUTING.md) for info about how to add your | ||
community resource to this index. | ||
|
@@ -43,33 +43,37 @@ Several files are published under `dist/` | |
|
||
##### tl;dr | ||
|
||
* Add a **feature** `.geojson` file under `features/` folder | ||
* This is a boundary around where the resource is active | ||
* You can use [geojson.io](http://geojson.io) to create these | ||
* Add a **resource** `.json` file under `resources/` folder | ||
* (required) Add a **resource** `.json` file under `resources/` folder | ||
* This contains info about what the resource is (slack, forum, mailinglist, facebook, etc.) | ||
* You can just copy and change an existing one | ||
* Several resources can share the same `.geojson` feature | ||
* Each resource needs an `includeLocations` property to define where it is active. | ||
* (optional) Add a **feature** `.geojson` file under `features/` folder | ||
* This is a boundary around where the resource is active | ||
* You can use [geojson.io](http://geojson.io) or other tools to create these. | ||
* `npm run test` | ||
* This will build and check for errors and make the files pretty | ||
|
||
|
||
#### Prerequisites | ||
|
||
* [Node.js](https://nodejs.org/) version 8 or newer | ||
* [`git`](https://www.atlassian.com/git/tutorials/install-git/) for your platform | ||
|
||
|
||
#### Installing | ||
|
||
* Clone this project, for example: | ||
`git clone [email protected]:osmlab/osm-community-index.git` | ||
* `cd` into the project folder, | ||
* Run `npm install` to install libraries | ||
|
||
|
||
#### Building | ||
|
||
* Just `npm run test` | ||
* This will check the files for errors and make them pretty. | ||
|
||
|
||
### License | ||
|
||
osm-community-index is available under the [ISC License](https://opensource.org/licenses/ISC). | ||
|
Oops, something went wrong.