Skip to content

Commit

Permalink
change mapbox-gl-compare to map-compare (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
aparlato authored Apr 20, 2022
1 parent edf0b74 commit 7e659aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ For more details on how these should look, see the example in [`src/config/local

### 1. Install this module into your repo.

`npm i github:stamen/mapbox-gl-compare#<release>` or `yarn add github:stamen/mapbox-gl-compare#<release>`
`npm i github:stamen/map-compare#<release>` or `yarn add github:stamen/map-compare#<release>`

### 2. Set up files to serve app

Expand Down Expand Up @@ -76,7 +76,7 @@ Your `index.html` file should look like the following:

### 3. In addition, prior to serving the compare tool in your repo, you'll want to add a simple build script to your package that will copy our module files into the appropriate directory where `tool/dir/path/` is the directory you've created to serve the app from:

`"build-compare": "rm -rf tool/dir/path/dist && cp -r node_modules/mapbox-gl-compare/dist tool/dir/path/dist"`
`"build-compare": "rm -rf tool/dir/path/dist && cp -r node_modules/map-compare/dist tool/dir/path/dist"`

You will run this build script prior to serving the app from `index.html` or publishing the app anywhere to ensure files are up to date.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "mapbox-gl-compare",
"name": "map-compare",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down

0 comments on commit 7e659aa

Please sign in to comment.