Remove checked-in theme JSON files

* Generate the themes on build
* In debug builds, watch the theme sources. When they change, re-generate
  the themes and reload the current theme, removing the need for the
  `theme_selector::Reload` command.

Co-authored-by: Keith Simmons <keith@zed.dev>
This commit is contained in:
Max Brunsfeld
2022-05-18 12:43:26 -07:00
co-authored by Keith Simmons
parent bdeac6b66a
commit ec41dd9f18
15 changed files with 72 additions and 12288 deletions
-8
View File
@@ -1,8 +0,0 @@
{
"watch": [
"./**/*"
],
"ext": "ts",
"ignore": [],
"exec": "ts-node src/buildThemes.ts"
}
-2005
View File
File diff suppressed because it is too large Load Diff
+2 -4
View File
@@ -6,8 +6,7 @@
"scripts": {
"build": "npm run build-themes && npm run build-tokens",
"build-themes": "ts-node ./src/buildThemes.ts",
"build-tokens": "ts-node ./src/buildTokens.ts",
"watch": "nodemon"
"build-tokens": "ts-node ./src/buildTokens.ts"
},
"author": "",
"license": "ISC",
@@ -16,7 +15,6 @@
"@types/node": "^17.0.23",
"case-anything": "^2.1.10",
"chroma-js": "^2.4.2",
"ts-node": "^10.7.0",
"nodemon": "^2.0.15"
"ts-node": "^10.7.0"
}
}