Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use content-tag #182

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
731 changes: 0 additions & 731 deletions __tests__/parse-templates.test.ts

This file was deleted.

188 changes: 0 additions & 188 deletions __tests__/preprocess-embedded-templates.test.ts

This file was deleted.

14 changes: 9 additions & 5 deletions ember-addon-main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
'use strict';
require('validate-peer-dependencies')(__dirname);
let VersionChecker = require('ember-cli-version-checker');
let { addPlugin, hasPlugin } = require('ember-cli-babel-plugin-helpers');

module.exports = {
name: require('./package').name,

included(includer) {
included() {
this._super.included.apply(this, arguments);

let emberChecker = new VersionChecker(this.project).for('ember-source');
Expand All @@ -17,10 +16,15 @@
);
}

let pluginPath = require.resolve('./src/babel-plugin');
const semver = require('semver');

Check failure on line 19 in ember-addon-main.js

View workflow job for this annotation

GitHub Actions / Linting

"semver" is extraneous

if (!hasPlugin(includer, pluginPath)) {
addPlugin(includer, pluginPath);
let babel = this.project.findAddonByName('ember-cli-babel');
let hasBabel = babel !== undefined;
let babelVersion = hasBabel && babel.pkg.version;
let hasValidBabelVersion = hasBabel && semver.gte(babelVersion, '8.0.0');

if (!hasValidBabelVersion) {
throw new Error('ember-template-imports requires ember-cli-babel with at least version 8.0.0');

Check failure on line 27 in ember-addon-main.js

View workflow job for this annotation

GitHub Actions / Linting

Replace `'ember-template-imports·requires·ember-cli-babel·with·at·least·version·8.0.0'` with `⏎········'ember-template-imports·requires·ember-cli-babel·with·at·least·version·8.0.0'⏎······`
}

// Used in ember-cli-htmlbars to get the location of templateCompiler without traversing this.addons (https://github.com/ember-cli/ember-cli-htmlbars/blob/6860beed9a357d5e948abd09754e8a978fed1320/lib/ember-addon-main.js#L264)
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"dependencies": {
"babel-import-util": "^0.2.0",
"broccoli-stew": "^3.0.0",
"content-tag": "^1.0.0",
"ember-cli-babel-plugin-helpers": "^1.1.1",
"ember-cli-version-checker": "^5.1.2",
"line-column": "^1.0.2",
Expand Down
104 changes: 0 additions & 104 deletions src/babel-plugin.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/index.ts

This file was deleted.

Loading
Loading