Skip to content

Commit 82ee514

Browse files
committed
Merge pull request #8 from voronianski/master
Introduce build step, make coffee a dev dep
2 parents ae50682 + 9bd1672 commit 82ee514

File tree

9 files changed

+40
-535
lines changed

9 files changed

+40
-535
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
.DS_Store
12
.idea
2-
node_modules
3+
node_modules
4+
*.log
5+
6+
lib

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test
2+
src

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
address-validator
22
======================
33

4-
5-
Validate street addresses in nodejs using google geocoding api.
4+
> Validate street addresses in nodejs using google geocoding api.
65
76
From an input address the lib will return to you a valid address with correct spelling and lat/lon coords, and/or a set of inexact matches that can be used to drive a 'did you mean?' widget.
87

98
Currently geared towards North American Addresses but works with all languages.
109

11-
12-
13-
1410
Install
1511
-------
12+
1613
``` bash
1714
npm install address-validator
1815
```
@@ -22,7 +19,6 @@ npm install address-validator
2219
Usage
2320
-----
2421

25-
2622
``` js
2723
var addressValidator = require('address-validator');
2824
var Address = addressValidator.Address;
@@ -80,7 +76,6 @@ did you mean: [ '1 Main Street, San Diego, CA, US' ]
8076

8177
```
8278

83-
8479
API
8580
=======
8681

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
require('coffee-script/register');
2-
module.exports = require('./src/validator.coffee');
1+
module.exports = require('./lib/validator');

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "address-validator",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Validate street addresses via google's geocoding API. Get back valid addresses with lat/lon coords and a set of inexact matches",
55
"keywords": [
66
"address",
@@ -10,7 +10,13 @@
1010
"geocoding",
1111
"google maps"
1212
],
13+
"main": "index.js",
1314
"homepage": "https://github.com/mkoryak/address-validator",
15+
"scripts": {
16+
"build": "rm -rf ./lib && coffee --compile --output lib/ src/",
17+
"prepublish": "npm run build",
18+
"test": "coffee test/test.coffee"
19+
},
1420
"author": {
1521
"name": "Misha Koryak",
1622
"url": "http://www.programmingdrunk.com"
@@ -19,8 +25,10 @@
1925
"type": "git",
2026
"url": "git://github.com/mkoryak/address-validator.git"
2127
},
28+
"devDependencies": {
29+
"coffee-script": "~1.9.3"
30+
},
2231
"dependencies": {
23-
"coffee-script": "~1.9.3",
2432
"underscore": "~1.4.4",
2533
"request": "~2.21.0"
2634
}

0 commit comments

Comments
 (0)