DEV: Convert discourse-hbr to a regular package (#26562)

No need for this to be an ember addon. All we do is import `discourse-hbr/raw-handlebars-compiler` in a node environment.
This commit is contained in:
David Taylor 2024-04-08 20:00:34 +01:00 committed by GitHub
parent 1060e4573a
commit 4712e8b035
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 2 additions and 50 deletions

View File

@ -1,13 +0,0 @@
"use strict";
const EmberAddon = require("ember-cli/lib/broccoli/ember-addon");
module.exports = function (defaults) {
const app = new EmberAddon(defaults, {
autoImport: {
publicAssetURL: "",
},
});
return app.toTree();
};

View File

@ -1,5 +0,0 @@
"use strict";
module.exports = {
name: require("./package").name,
};

View File

@ -4,45 +4,15 @@
"description": "Support for Discourse's raw Handlebars templates (hbr)",
"author": "Discourse",
"license": "GPL-2.0-only",
"keywords": [
"ember-addon"
],
"scripts": {
"build": "ember build",
"lint:hbs": "ember-template-lint .",
"lint:js": "eslint .",
"start": "ember serve"
},
"dependencies": {
"@babel/core": "^7.24.4",
"ember-auto-import": "^2.7.2",
"ember-cli-babel": "^8.2.0",
"ember-cli-htmlbars": "^6.3.0",
"handlebars": "^4.7.8"
},
"devDependencies": {
"@ember/optional-features": "^2.1.0",
"@embroider/test-setup": "^3.0.3",
"@glimmer/component": "^1.1.2",
"broccoli-asset-rev": "^3.0.0",
"ember-cli": "~5.7.0",
"ember-cli-inject-live-reload": "^2.1.0",
"ember-cli-sri": "^2.1.1",
"ember-cli-terser": "^4.0.2",
"ember-disable-prototype-extensions": "^1.1.3",
"ember-load-initializers": "^2.1.1",
"ember-resolver": "^11.0.1",
"ember-source": "~5.5.0",
"ember-source-channel-url": "^3.0.0",
"loader.js": "^4.7.0",
"webpack": "^5.91.0"
},
"engines": {
"node": ">= 18",
"npm": "please-use-yarn",
"yarn": ">= 1.21.1"
},
"ember": {
"edition": "default"
"exports": {
"./raw-handlebars-compiler": "./raw-handlebars-compiler.js"
}
}