mirror of
https://github.com/discourse/discourse.git
synced 2026-08-12 05:37:26 +08:00
This replaces the old ember-cli build with a modern Rolldown build. In local testing, this provides an 80% improvement in build times, while remaining 100% backwards compatible for themes and plugins. As part of this move, we have decided to stop using a proxy in front of Discourse for development. Development should now be done directly against the Rails server. `bin/ember-cli -u` has been replaced with `bin/dev`. This will launch Rails on `:3000`, and will run the rolldown build in the background. Log output from both processes will be shown with an appropriate prefix. You should visit `:3000` in your browser. `:4200` will no longer serve anything. To help with migration, `bin/ember-cli` is now a backwards-compatible shim. It will print help information, and will launch a lightweight server on `:4200` with instructions to move to `:3000`. If you prefer to launch Rails and the JS build as separate commands, you can still do that. Rails boot commands are unchanged, and the rolldown development builder can be run using `bin/dev --only ember`. https://meta.discourse.org/t/403908 --------- Co-authored-by: Jarek Radosz <jarek@cvx.dev> Co-authored-by: Chris Manson <chris@manson.ie>
84 lines
4.1 KiB
JSON
Vendored
84 lines
4.1 KiB
JSON
Vendored
{
|
|
"private": true,
|
|
"repository": "https://github.com/discourse/discourse",
|
|
"author": "Discourse",
|
|
"license": "GPL-2.0-only",
|
|
"devDependencies": {
|
|
"@discourse/lint-configs": "^3.0.1",
|
|
"@discourse/moment-timezone-names-translations": "^1.0.0",
|
|
"@fortawesome/fontawesome-free": "7.2.0",
|
|
"@glint/ember-tsc": "^1.2.3",
|
|
"@glint/tsserver-plugin": "^2.4.0",
|
|
"@rdil/parallel-prettier": "^3.0.0",
|
|
"concurrently": "^9.2.1",
|
|
"eslint": "9.39.2",
|
|
"execa": "^9.6.0",
|
|
"jsdoc": "^4.0.5",
|
|
"lefthook": "^2.1.6",
|
|
"licensee": "^11.1.1",
|
|
"lint-to-the-future": "^2.6.4",
|
|
"lint-to-the-future-eslint": "^3.3.0",
|
|
"playwright": "1.59.1",
|
|
"prettier": "3.8.1",
|
|
"stylelint": "17.4.0",
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"scripts": {
|
|
"dev": "bin/dev",
|
|
"lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\"",
|
|
"lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\"",
|
|
"lint:css": "pnpm stylelint 'app/assets/stylesheets/**/*.scss' $(script/list_bundled_plugins '/assets/stylesheets/**/*.scss') 'themes/**/*.scss'",
|
|
"lint:css:fix": "pnpm stylelint --fix 'app/assets/stylesheets/**/*.scss' $(script/list_bundled_plugins '/assets/stylesheets/**/*.scss') 'themes/**/*.scss'",
|
|
"lint:js": "eslint ./frontend $(script/list_bundled_plugins) ./themes --cache --no-error-on-unmatched-pattern --max-warnings 0",
|
|
"lint:js:fix": "eslint --fix ./frontend $(script/list_bundled_plugins) ./themes --no-error-on-unmatched-pattern",
|
|
"lint:prettier": "pnpm pprettier --list-different 'app/assets/stylesheets/**/*.scss' 'frontend/**/*.{js,gjs,css}' $(script/list_bundled_plugins '/assets/stylesheets/**/*.scss') $(script/list_bundled_plugins '/{assets,admin/assets,test}/javascripts/**/*.{js,gjs}') 'themes/**/*.{js,gjs,scss}'",
|
|
"lint:prettier:fix": "pnpm prettier -w --no-error-on-unmatched-pattern 'app/assets/stylesheets/**/*.scss' 'frontend/**/*.{js,gjs,css}' $(script/list_bundled_plugins '/assets/stylesheets/**/*.scss') $(script/list_bundled_plugins '/{assets,admin/assets,test}/javascripts/**/*.{js,gjs}') 'themes/**/*.{js,gjs,scss}'",
|
|
"lint:types": "ember-tsc -b",
|
|
"types:generate": "pnpm --dir=frontend/discourse-i18n ember-tsc && pnpm --dir=frontend/discourse-types generate-external",
|
|
"types:watch": "pnpm types:generate && pnpm ember-tsc -b --watch --preserveWatchOutput",
|
|
"lttf:ignore": "lint-to-the-future ignore",
|
|
"lttf:output": "lint-to-the-future output -o ./lint-progress/",
|
|
"lint-progress": "pnpm lttf:output && npx html-pages ./lint-progress --no-cache",
|
|
"playwright-install": "playwright install --no-shell chromium",
|
|
"build": "pnpm --dir=frontend/discourse build",
|
|
"start": "pnpm --dir=frontend/discourse start"
|
|
},
|
|
"engines": {
|
|
"node": ">= 20",
|
|
"npm": "please-use-pnpm",
|
|
"yarn": "please-use-pnpm",
|
|
"pnpm": "^10"
|
|
},
|
|
"packageManager": "pnpm@10.28.0",
|
|
"pnpm": {
|
|
"patchedDependencies": {
|
|
"ember-this-fallback@0.4.0": "patches/ember-this-fallback@0.4.0.patch",
|
|
"babel-plugin-debug-macros@0.3.4": "patches/babel-plugin-debug-macros@0.3.4.patch",
|
|
"licensee@11.1.1": "patches/licensee@11.1.1.patch",
|
|
"@ember-compat/tracked-built-ins@0.9.1": "patches/@ember-compat__tracked-built-ins@0.9.1.patch",
|
|
"ember-source@6.10.1": "patches/ember-source@6.10.1.patch",
|
|
"http-proxy@1.18.1": "patches/http-proxy@1.18.1.patch",
|
|
"ember-exam@10.1.0": "patches/ember-exam@10.1.0.patch",
|
|
"message-bus-client": "patches/message-bus-client.patch",
|
|
"ember-buffered-proxy": "patches/ember-buffered-proxy.patch",
|
|
"pikaday": "patches/pikaday.patch"
|
|
},
|
|
"peerDependencyRules": {
|
|
"allowedVersions": {
|
|
"lint-to-the-future-eslint>eslint": "*",
|
|
"@mixer/parallel-prettier>prettier": "*",
|
|
"ember-this-fallback>ember-source": "*",
|
|
"ember-this-fallback>ember-cli-htmlbars": "*",
|
|
"@fullcalendar/moment-timezone>moment-timezone": "*"
|
|
},
|
|
"ignoreMissing": [
|
|
"webpack"
|
|
]
|
|
},
|
|
"overrides": {
|
|
"@ember/test-waiters": "4.1.1",
|
|
"babel-plugin-ember-template-compilation@~2.3.0": "2.4.1",
|
|
"broccoli-babel-transpiler@8.0.0": "^8.0.2"
|
|
}
|
|
}
|
|
}
|