Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.