Skip to content

Commit

Permalink
remove support for ember < 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcobain committed Dec 1, 2019
1 parent d5fb5de commit 7d5c9fe
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 19 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion addon/templates/lt-2-3/div-overlayable.hbs

This file was deleted.

1 change: 0 additions & 1 deletion addon/templates/lt-2-3/leaflet-map.hbs

This file was deleted.

16 changes: 0 additions & 16 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const resolve = require('resolve');
const path = require('path');
const mergeTrees = require('broccoli-merge-trees');
const Funnel = require('broccoli-funnel');
const VersionChecker = require('ember-cli-version-checker');
const fastbootTransform = require('fastboot-transform');

module.exports = {
Expand Down Expand Up @@ -70,21 +69,6 @@ module.exports = {
}
},

treeForAddonTemplates() {
let checker = new VersionChecker(this);
let dep = checker.for('ember', 'bower');

let baseTemplatesPath = path.join(this.root, 'addon/templates');

if (dep.lt('2.3.0-beta.1')) {
let current = this.treeGenerator(path.join(baseTemplatesPath, 'current'));
let specificVersionTemplate = this.treeGenerator(path.join(baseTemplatesPath, 'lt-2-3'));
return mergeTrees([current, specificVersionTemplate], { overwrite: true });
} else {
return this.treeGenerator(path.join(baseTemplatesPath, 'current'));
}
},

pathBase(packageName) {
return path.dirname(resolve.sync(packageName + '/package.json', { basedir: __dirname }));
}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"broccoli-merge-trees": "^3.0.2",
"ember-cli-babel": "^7.8.0",
"ember-cli-htmlbars": "^3.1.0",
"ember-cli-version-checker": "^3.1.3",
"ember-composability-tools": "^0.0.12",
"ember-get-config": "^0.2.4",
"ember-in-element-polyfill": "^0.2.0",
Expand Down

0 comments on commit 7d5c9fe

Please sign in to comment.