diff --git a/.babelrc b/.babelrc index f7abe6e..fef1f22 100644 --- a/.babelrc +++ b/.babelrc @@ -1,5 +1,8 @@ { - "presets": ["es2015-loose", "stage-0"], + "presets": [ + "es2015", + "stage-0" + ], "plugins": [ "transform-runtime", "add-module-exports" diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..ee534e6 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,10 @@ +{ + "parser": "babel-eslint", + "env": { + "node": true, + "es6": true + }, + "ecmaFeatures": { + "modules": true + } +} diff --git a/README.md b/README.md index 7c96c97..3a20f60 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,3 @@ -
- -
- # 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. diff --git a/dist/defaultConfig.js b/dist/defaultConfig.js index e57d3d5..8bce7f4 100644 --- a/dist/defaultConfig.js +++ b/dist/defaultConfig.js @@ -1,6 +1,8 @@ 'use strict'; -exports.__esModule = true; +Object.defineProperty(exports, "__esModule", { + value: true +}); exports.default = { ftp: { host: 'ftp2.census.gov', diff --git a/dist/getFTP.js b/dist/getFTP.js index a915530..bcb1d7b 100644 --- a/dist/getFTP.js +++ b/dist/getFTP.js @@ -1,6 +1,8 @@ 'use strict'; -exports.__esModule = true; +Object.defineProperty(exports, "__esModule", { + value: true +}); var _ftp = require('ftp'); diff --git a/dist/index.js b/dist/index.js index 29e3990..6412c12 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,6 +1,8 @@ 'use strict'; -exports.__esModule = true; +Object.defineProperty(exports, "__esModule", { + value: true +}); var _async = require('async'); @@ -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!'); @@ -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); diff --git a/package.json b/package.json index 44904a6..30034eb 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -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",