Skip to content

Latest commit

 

History

History

js-esm-local-nobundler-ember

js-esm-local-nobundler-ember

Language Framework From Strategy Bundler
JavaScript Ember.js Local ESM None

This repo integrates @arcgis/core using embroider.

How lo load assets from the CDN instead of local: ArcGIS API for JavaScript: Building Apps with ES Modules (hax) - min 34:21

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

Acknowledgments

The original code from github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-ember-cli.

Starter apps maintenance and support

This starter apps are maintained by the community. If you find something broken or outdated and the code from the starter app comes from another repository please open the issue there, if it doesn't feel free to open an issue on this repo.

Note that frameworks and bundlers are outside of the scope of support from the Esri Technical Support. In any case, you can use the issues repositories related to each starter app to interact with the community for support.