ember-mapbox-gl
Advanced tools
Comparing version 0.9.1 to 0.10.0
35
index.js
@@ -26,5 +26,3 @@ 'use strict'; | ||
files: [ | ||
'mapbox-gl.js', | ||
'mapbox-gl.js.map', | ||
'mapbox-gl-dev.js' | ||
this._srcFile() | ||
], | ||
@@ -41,10 +39,25 @@ destDir: '/mapbox-gl' | ||
treeForPublic(tree) { | ||
if (process.env.EMBER_ENV === 'production') { | ||
const mapboxGlTree = new Funnel(Path.dirname(require.resolve('mapbox-gl')), { | ||
files: [ | ||
'mapbox-gl.js.map' | ||
], | ||
destDir: '/assets' | ||
}); | ||
if (tree) { | ||
return new MergeTrees([ tree, mapboxGlTree ]); | ||
} | ||
return mapboxGlTree; | ||
} | ||
return tree; | ||
}, | ||
included(app) { | ||
this._super.included.apply(this, arguments); | ||
const srcFile = process.env.EMBER_ENV === 'production' | ||
? 'vendor/mapbox-gl/mapbox-gl.js' | ||
: 'vendor/mapbox-gl/mapbox-gl-dev.js'; | ||
app.import(srcFile, { | ||
app.import('vendor/mapbox-gl/' + this._srcFile(), { | ||
using: [ | ||
@@ -56,3 +69,9 @@ { transformation: 'amd', as: 'mapbox-gl' } | ||
app.import('app/styles/mapbox-gl.css'); | ||
}, | ||
_srcFile() { | ||
return process.env.EMBER_ENV === 'production' | ||
? 'mapbox-gl.js' | ||
: 'mapbox-gl-dev.js'; | ||
} | ||
}; |
{ | ||
"name": "ember-mapbox-gl", | ||
"version": "0.9.1", | ||
"version": "0.10.0", | ||
"description": "Ember integration for Mapbox GL JS", | ||
@@ -17,5 +17,6 @@ "keywords": [ | ||
"build": "ember build", | ||
"lint:js": "eslint ./*.js addon addon-test-support app config lib server test-support tests", | ||
"lint:js": "eslint ./*.js addon addon-test-support app blueprints config lib server test-support tests", | ||
"start": "ember serve", | ||
"test": "ember try:each", | ||
"test": "ember test", | ||
"test:all": "ember try:each", | ||
"test-cov": "COVERAGE=true ember test --launch chrome" | ||
@@ -25,3 +26,3 @@ }, | ||
"broccoli-funnel": "^2.0.0", | ||
"broccoli-merge-trees": "^2.0.0", | ||
"broccoli-merge-trees": "^3.0.0", | ||
"ember-cli-babel": "^6.6.0", | ||
@@ -32,3 +33,3 @@ "ember-cli-htmlbars": "^2.0.1", | ||
"devDependencies": { | ||
"ember-cli": "~2.18.1", | ||
"ember-cli": "~3.1.4", | ||
"ember-cli-code-coverage": "^0.4.1", | ||
@@ -44,11 +45,14 @@ "ember-cli-dependency-checker": "^2.0.0", | ||
"ember-load-initializers": "^1.0.0", | ||
"ember-maybe-import-regenerator": "^0.1.6", | ||
"ember-native-dom-event-dispatcher": "^0.6.0", | ||
"ember-qunit-assert-helpers": "^0.2.0", | ||
"ember-resolver": "^4.0.0", | ||
"ember-sinon": "^1.0.0", | ||
"ember-source": "~2.18.0", | ||
"ember-sinon": "^2.1.0", | ||
"ember-source": "~3.1.0", | ||
"ember-source-channel-url": "^1.0.1", | ||
"ember-try": "^0.2.23", | ||
"eslint-plugin-ember": "^5.0.1", | ||
"eslint-plugin-node": "^5.2.1", | ||
"eslint-plugin-node": "^6.0.1", | ||
"loader.js": "^4.2.3", | ||
"mapbox-gl": "^0.44.0" | ||
"mapbox-gl": "^0.45.0" | ||
}, | ||
@@ -55,0 +59,0 @@ "peerDependencies": { |
@@ -32,5 +32,2 @@ # ember-mapbox-gl | ||
## BEWARE - API CHANGES HAPPENING | ||
We are currently modifying the api to more closely resemble the Mapbox api. We aim to make this update seamless to any existing users, with warnings of deprecations. You can follow along on this issue: https://github.com/kturney/ember-mapbox-gl/issues/2 | ||
## API Documentation | ||
@@ -37,0 +34,0 @@ See the detailed [API Documentation](API.md). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1070
456105
23
92
3
+ Addedbroccoli-merge-trees@3.0.2(transitive)
+ Addedclean-up-path@1.0.0(transitive)
+ Addedfs-updater@1.0.4(transitive)
+ Addedmerge-trees@2.0.0(transitive)
Updatedbroccoli-merge-trees@^3.0.0