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
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-app
npm 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 test
ember test --server
npm run lint:hbs
npm run lint:js
npm run lint:js -- --fix
ember build
(development)ember build --environment production
(production)
Specify what it takes to deploy your app.
The original code from github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-ember-cli.
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.