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.
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.
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
};This README outlines the details of collaborating on this Ember application.
You will need the following things properly installed on your computer.
- Git
- Node.js (with npm)
- Ember CLI
- Google Chrome
git clone <repository-url>this repositorycd ember-cli-appnpm install
ember serve- Visit your app at http://localhost:4200.
- Visit your tests at http://localhost:4200/tests.
Make use of the many generators for code, try ember help generate for more details
ember testember test --server
npm run lint:hbsnpm run lint:jsnpm run lint:js -- --fix
ember build(development)ember build --environment production(production)
Specify what it takes to deploy your app.