discourse/app/assets/javascripts/bootstrap-json/package.json
David Taylor ac896755bb
DEV: Simplify ember-cli proxy strategy (#24242)
Previously, the app HTML served by the Ember-CLI proxy was generated based on a 'bootstrap json' payload generated by Rails. This inevitably leads to differences between the Rails HTML and the Ember-CLI HTML.

This commit overhauls our proxying strategy. Now, we totally ignore the ember-cli `index.html` file. Instead, we take the full HTML from Rails and surgically replace script URLs based on a `data-discourse-entrypoint` attribute. This should be faster (only one request to Rails), more robust, and less confusing for developers.
2023-11-10 11:16:06 +00:00

31 lines
686 B
JSON

{
"name": "bootstrap-json",
"version": "1.0.0",
"description": "Express.js middleware which injects ember-cli asset URLs into Discourse's HTML",
"author": "Discourse",
"license": "GPL-2.0-only",
"keywords": [
"ember-addon"
],
"ember-addon": {
"before": [
"serve-files-middleware",
"history-support-middleware",
"proxy-server-middleware"
]
},
"devDependencies": {
"clean-base-url": "^1.0.0",
"express": "^4.18.2",
"glob": "^10.3.10",
"html-entities": "^2.4.0",
"jsdom": "^22.1.0",
"node-fetch": "^3.3.2"
},
"engines": {
"node": "16.* || >= 18",
"npm": "please-use-yarn",
"yarn": ">= 1.21.1"
}
}