Skip to content

Commit

Permalink
prune junk
Browse files Browse the repository at this point in the history
  • Loading branch information
Contra committed Jan 20, 2017
1 parent aff6dab commit 9d09542
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 36 deletions.
5 changes: 4 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"presets": ["es2015-loose", "stage-0"],
"presets": [
"es2015",
"stage-0"
],
"plugins": [
"transform-runtime",
"add-module-exports"
Expand Down
10 changes: 10 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parser": "babel-eslint",
"env": {
"node": true,
"es6": true
},
"ecmaFeatures": {
"modules": true
}
}
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<p align='center'>
<img src='https://i.imgur.com/JXSMT0k.png' width='400'/>
</p>

# census-boundaries [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url]

Downloads and converts US Census TIGER data representing all boundaries in the United States.
Expand Down
4 changes: 3 additions & 1 deletion dist/defaultConfig.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict';

exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {
ftp: {
host: 'ftp2.census.gov',
Expand Down
4 changes: 3 additions & 1 deletion dist/getFTP.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict';

exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});

var _ftp = require('ftp');

Expand Down
12 changes: 7 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict';

exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});

var _async = require('async');

Expand Down Expand Up @@ -55,8 +57,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
var debug = (0, _debug3.default)('census');

exports.default = function (overrides, _ref) {
var onBoundary = _ref.onBoundary;
var onFinish = _ref.onFinish;
var onBoundary = _ref.onBoundary,
onFinish = _ref.onFinish;

if (!onBoundary) throw new Error('Missing onBoundary!');
if (!onFinish) throw new Error('Missing onFinish!');
Expand Down Expand Up @@ -110,8 +112,8 @@ function processFilePath(context, file, cb) {
}

function fetchObjectFiles(_ref2, object, cb) {
var ftp = _ref2.ftp;
var options = _ref2.options;
var ftp = _ref2.ftp,
options = _ref2.options;

cb = (0, _once2.default)(cb);
var folderName = _path2.default.join(options.base, object);
Expand Down
25 changes: 1 addition & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@
"bin"
],
"scripts": {
"preversion": "npm run clean && npm run build && npm docs",
"postversion": "npm run changelog",
"preversion": "npm run clean && npm run build",
"build": "babel src --out-dir dist",
"clean": "rimraf dist",
"lint": "eslint src",
"changelog": "github-changes -o contra -r census-boundaries -b master -f ./CHANGELOG.md --order-semver --use-commit-body",
"test": "npm run-script lint"
},
"devDependencies": {
Expand All @@ -50,29 +48,8 @@
"babelify": "^7.2.0",
"eslint": "^3.6.1",
"eslint-cli": "^1.0.0",
"github-changes": "^1.0.1",
"rimraf": "^2.5.0"
},
"babel": {
"presets": [
"es2015",
"stage-0"
],
"plugins": [
"transform-runtime",
"add-module-exports"
]
},
"eslintConfig": {
"parser": "babel-eslint",
"env": {
"node": true,
"es6": true
},
"ecmaFeatures": {
"modules": true
}
},
"dependencies": {
"JSONStream": "^1.2.1",
"async": "^2.0.0-rc.3",
Expand Down

0 comments on commit 9d09542

Please sign in to comment.