Skip to content

Latest commit

 

History

History
 
 

jsapi-ember-cli

README.md

ArcGIS API for JavaScript with Ember CLI

This repo integrates @arcgis/core using embroider.


NOTE

This sample has been deprecated at 4.22. We will try our best to answer any questions you have on the github issues page.


Get Started

Step 1 - Run npm install and then start adding modules.

Step 2 Configure CSS. Here's an Ember example:

app.css

@import 'https://js.arcgis.com/4.20/@arcgis/core/assets/esri/themes/light/main.css';

For additional information, see the Build with ES modules Guide topic in the SDK.

Misc.

To prevent runtime errors in production builds make sure target browsers do not include IE 11.

./config/targets.js

'use strict';

const browsers = [
  'last 1 Chrome versions',
  'last 1 Firefox versions',
  'last 1 Safari versions'
];

const isCI = Boolean(process.env.CI);
const isProduction = process.env.EMBER_ENV === 'production';

if (isCI || isProduction) {
  // browsers.push('ie 11'); results in runtime error
}

module.exports = {
  browsers
};

ember-cli-app

This README outlines the details of collaborating on this Ember application.

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone <repository-url> this repository
  • cd ember-cli-app
  • npm install

Running / Development

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

  • ember test
  • ember test --server

Linting

  • npm run lint:hbs
  • npm run lint:js
  • npm run lint:js -- --fix

Building

  • ember build (development)
  • ember build --environment production (production)

Deploying

Specify what it takes to deploy your app.

Further Reading / Useful Links