Skip to content

Commit

Permalink
Merge pull request #129 from Esri/proper-externals
Browse files Browse the repository at this point in the history
Set externals properly for UMD builds
  • Loading branch information
jgravois committed Feb 28, 2018
2 parents 22f84e2 + c243cef commit 78512a3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion demos/ago-node-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Like all the other demo apps, run `npm run bootstrap` from the root.
### Running
If you use this demo as a starting point for your own command line package, you would publish it to npm, then on the target systems run `npm install <your-cli-package>`, and it would be available as a command.

But, this is demo code, and thus the package is not "installed" via `npm install ...`, before we can call it as `ago <command> <query>` we need to run `npm link` in the `/demos/node-cli` folder. After you do that, the command should work.
But, this is demo code, and thus the package is not "installed" via `npm install ...`, before we can call it as `ago <command> <query>` we need to run `npm link` in the `/demos/ago-node-cli` folder. After you do that, the command should work.

Here is a post with information on creating node command line tools: [A Guide to Creating a NodeJs Command](https://x-team.com/blog/a-guide-to-creating-a-nodejs-command/)

Expand Down
14 changes: 7 additions & 7 deletions demos/geocoder-browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,28 @@ <h1>get to geocodin!</h1>
</div>
<div class="col-md-4">
<p>
<button class="btn" id="metadata" role="button">get service info</button>
<button class="btn btn-default" id="metadata" role="button">get service info</button>
</p>

<p>
<input id="geocodeInput" value="123 main st"></input>
<button class="btn" id="geocode" role="button">geocode an address</button>
<button class="btn btn-default" id="geocode" role="button">geocode an address</button>
<p>
<input id="suggestInput" value="World Tr"></input>
<button class="btn" id="suggest" role="button">get address suggestion</button>
<button class="btn btn-default" id="suggest" role="button">get address suggestion</button>
</p>

<p>
<input id="reverseInput" value="{x:-118,y:34}"></input>
<button class="btn" id="reverse" role="button">determine address</button>
<button class="btn btn-default" id="reverse" role="button">determine address</button>
</p>

<p>
<a href="" class="btn" id="sign-in" role="button">Sign In</a><br>
<a href="" class="btn btn-default" id="sign-in" role="button">Sign In</a><br>
</p>

<p>
<button class="btn" id="bulk" role="button">geocode many addresses</button>
<button class="btn btn-default" id="bulk" role="button">geocode many addresses</button>
</p>
</div>
</div>
Expand Down Expand Up @@ -118,7 +118,7 @@ <h1>get to geocodin!</h1>
"OBJECTID": 2,
"SingleLine": "1 World Way Los Angeles 90045"
}];
arcgisRest.bulkGeocode(addresses, { authentication: auth })
arcgisRest.bulkGeocode({ authentication: auth, addresses })
.then((response) => {
console.log("bulkGeocode", response);
})
Expand Down
1 change: 1 addition & 0 deletions rollup.config.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default {
context: "window",
extend: true, // causes this module to extend the global specified by `moduleName`
moduleName,
external: packageNames,
globals,
plugins: [
typescript(),
Expand Down

0 comments on commit 78512a3

Please sign in to comment.