mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
From time-to-time, variables may need to be renamed in core. To avoid breaking existing themes and plugins, this commit introduces a system to automatically rewrite old variable names to new ones. A list of renames is maintained in `stylesheets/variable-renames.json`, and is applied when CSS is compiled. This list also powers a stylelint rule which will automatically rewrite old names to new names in source code. Transformations apply to all core/theme/plugin code. For now, the stylelint rule/autofix applies to core only, but this will be extracted to `@discourse/lint-configs` in the near future. When a transformation is applied, it adds a trailing `/* automatically renamed --old to --new */` comment so that the behavior is understandable from the browser developer tools.
51 lines
1.4 KiB
JSON
51 lines
1.4 KiB
JSON
{
|
|
"name": "asset-processor",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"description": "Uses rolldown to create a 'asset processor' bundle for loading into mini-racer",
|
|
"author": "Discourse",
|
|
"license": "GPL-2.0-only",
|
|
"keywords": [],
|
|
"scripts": {
|
|
"test": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@babel/core": "^7.29.7",
|
|
"@babel/plugin-transform-typescript": "^7.29.7",
|
|
"@babel/preset-env": "^7.29.2",
|
|
"@babel/standalone": "^7.29.7",
|
|
"@csstools/postcss-light-dark-function": "^3.0.1",
|
|
"@rollup/browser": "^4.62.0",
|
|
"@rollup/plugin-babel": "^7.0.0",
|
|
"autoprefixer": "^10.5.0",
|
|
"babel-plugin-ember-template-compilation": "^4.0.0",
|
|
"content-tag": "^4.0.0",
|
|
"core-js": "^3.49.0",
|
|
"decorator-transforms": "^2.3.2",
|
|
"discourse": "workspace:0.0.0",
|
|
"ember-cli-htmlbars": "^7.0.1",
|
|
"ember-source": "~6.10.0",
|
|
"ember-this-fallback": "^0.4.0",
|
|
"fastestsmallesttextencoderdecoder": "^1.0.22",
|
|
"magic-string": "^0.30.21",
|
|
"path-browserify": "^1.0.1",
|
|
"polyfill-crypto.getrandomvalues": "^1.0.0",
|
|
"postcss": "^8.5.15",
|
|
"postcss-nesting": "^14.0.0",
|
|
"postcss-value-parser": "^4.2.0",
|
|
"rolldown": "1.1.2",
|
|
"source-map-js": "^1.2.1",
|
|
"strip-test-selectors": "^0.1.0",
|
|
"terser": "^5.47.1"
|
|
},
|
|
"engines": {
|
|
"node": ">= 20",
|
|
"npm": "please-use-pnpm",
|
|
"yarn": "please-use-pnpm",
|
|
"pnpm": "^10"
|
|
},
|
|
"devDependencies": {
|
|
"vitest": "^4.1.9"
|
|
}
|
|
}
|