Skip to content

Commit

Permalink
Merge pull request #42 from Esri/doc/patch
Browse files Browse the repository at this point in the history
docs(cdn): update cdn sample to show that deps are external
  • Loading branch information
jgravois authored Jul 17, 2018
2 parents 7b60c5d + 3304466 commit 87874dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/src/guides/from-a-cdn.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ group: 1-get-started
<!-- require polyfills for fetch and Promise from https://polyfill.io -->
<script src="https://cdn.polyfill.io/v2/polyfill.js?features=es5,Promise,fetch"></script>

<!-- hub.js has external dependencies on @esri/arcgis-rest-js packages -->
<script src="https://unpkg.com/@esri/arcgis-rest-request"></script>
<script src="https://unpkg.com/@esri/arcgis-rest-items"></script>

<!-- require @esri/hub.js libraries from https://unpkg.com -->
<script src="{% cdnUrl data.typedoc | findPackage('@esri/hub-initiatives') %}"></script>

Expand Down
2 changes: 1 addition & 1 deletion docs/src/guides/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ group: 1-get-started
Make sure you have polyfills for [`fetch`](https://github.com/matthew-andrews/isomorphic-fetch) and [`FormData`](https://github.com/form-data/isomorphic-form-data) installed before using @esri/hub.js. You can find `npm install` commands for all packages in the [API reference](../../api).

```bash
npm install @esri/hub-initiatives isomorphic-fetch isomorphic-form-data
npm install @esri/hub-initiatives @esri/arcgis-rest-request @esri/arcgis-rest-items isomorphic-fetch isomorphic-form-data
```

Require the `isomorphic-fetch` and `isomorphic-form-data` modules before using any of the @esri/hub.js methods.
Expand Down
2 changes: 1 addition & 1 deletion support/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ zip -r $TEMP_FOLDER.zip $TEMP_FOLDER
rm -rf $TEMP_FOLDER

# Run gh-release to create a new release with our changelog changes and ZIP archive
gh-release --t v$VERSION --repo hub.js --owner ArcGIS -a $TEMP_FOLDER.zip
gh-release --t v$VERSION --repo hub.js --owner Esri -a $TEMP_FOLDER.zip

# Delete the ZIP archive
rm $TEMP_FOLDER.zip

0 comments on commit 87874dd

Please sign in to comment.