diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e9f3b8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +node_modules +dist +*.swp +package-lock.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..c0ed9af --- /dev/null +++ b/package.json @@ -0,0 +1,31 @@ +{ + "name": "geo-albers-usa-territories", + "version": "0.0.1", + "description": "A map projection including all US overseas territories.", + "main": "dist/geo-albers-usa-territories.js", + "scripts": { + "prepublish": "rollup --config" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/stamen/us-albers-territories.git" + }, + "keywords": [ + "Map", + "Geo", + "GIS", + "D3" + ], + "author": "Alan McConchie", + "contributors": [ + "Curran Kelleher" + ], + "license": "MIT", + "bugs": { + "url": "https://github.com/stamen/geo-albers-usa-territories/issues" + }, + "homepage": "https://github.com/stamen/geo-albers-usa-territories#readme", + "devDependencies": { + "rollup": "^2.18.1" + } +} diff --git a/rollup.config.js b/rollup.config.js new file mode 100644 index 0000000..20b66ab --- /dev/null +++ b/rollup.config.js @@ -0,0 +1,12 @@ +export default { + input: 'src/index.js', + external: ['d3-geo'], + output: { + file: 'dist/us-albers-territories.js', + format: 'umd', + name: 'geoAlbersUsaTerritories', + globals: { + 'd3-geo': 'd3' + } + } +}; diff --git a/geoAlbersUsaTerritories.js b/src/index.js similarity index 100% rename from geoAlbersUsaTerritories.js rename to src/index.js