Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/odoe/jsapi-babel-typescript
Sample app using babel to compile TypeScript using the ArcGIS API for JavaScript
https://github.com/odoe/jsapi-babel-typescript
arcgis babel javascript typescript
Last synced: about 1 month ago
JSON representation
Sample app using babel to compile TypeScript using the ArcGIS API for JavaScript
- Host: GitHub
- URL: https://github.com/odoe/jsapi-babel-typescript
- Owner: odoe
- Created: 2019-08-29T21:29:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-04T18:27:48.000Z (over 4 years ago)
- Last Synced: 2024-04-11T04:31:14.371Z (9 months ago)
- Topics: arcgis, babel, javascript, typescript
- Language: JavaScript
- Homepage: https://odoe.net/blog/arcgis-js-api-with-typescript-and-babel/
- Size: 16.6 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ArcGIS API for JavaScript Template React Application
## Usage
This application is written in [TypeScript](http://www.typescriptlang.org/) and utilizes the [`@arcgis/webpack-plugin`](https://github.com/Esri/arcgis-webpack-plugin) with [React](https://reactjs.org/).
You can develop, test, and build the application using various commands.
Run the application in development mode with a local development server.
```sh
npm start
```Run the unit tests for the application. Unit tests are written with [Intern](https://theintern.io/) and [react-testing-library](https://github.com/kentcdodds/react-testing-library).
```sh
npm test
```Build the application for deployment.
```sh
npm run build
```Run a production build of the application, but serve it up locally to see how the built app will behave.
```sh
npm run serve
```Use `npm run serve` to full test that Service Workers are working correctly with `webpack-dev-server` self signed certifcates. Refer to [this article](https://deanhume.com/testing-service-workers-locally-with-self-signed-certificates/) on how to run Chrome with proper flags enabled for development purposes.