mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-28 22:40:07 +00:00
chore: generate codemirror languages from linguist-languages package (#38624)
Replace the previous main-branch fetch with data from npm package [`linguist-languages`](https://github.com/ikatyang-collab/linguist-languages) and only run generate targets when actually needed. The removed `fileFilters` were leftovers from the nolyfill removal.
This commit is contained in:
+11
-6
@@ -114,17 +114,22 @@
|
||||
{
|
||||
"matchManagers": ["npm"],
|
||||
"postUpdateOptions": ["pnpmDedupe"],
|
||||
},
|
||||
{
|
||||
"matchPackageNames": ["@primer/octicons", "material-icon-theme", "svgo"],
|
||||
"postUpgradeTasks": {
|
||||
"commands": ["make svg", "make generate-codemirror-languages"],
|
||||
"commands": ["make svg"],
|
||||
"fileFilters": [
|
||||
"package.json",
|
||||
"pnpm-lock.yaml",
|
||||
"pnpm-workspace.yaml",
|
||||
"public/assets/img/svg/**",
|
||||
"options/fileicon/**",
|
||||
"assets/codemirror-languages.json",
|
||||
],
|
||||
"executionMode": "branch",
|
||||
},
|
||||
},
|
||||
{
|
||||
"matchPackageNames": ["@codemirror/language-data", "linguist-languages"],
|
||||
"postUpgradeTasks": {
|
||||
"commands": ["make generate-codemirror-languages"],
|
||||
"fileFilters": ["assets/codemirror-languages.json"],
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user