Decouple theme license generation from TypeScript theme definitions (#3917)
This PR decouples the generation of licenses for the themes we ship from the TypeScript theme definitions. For now, we are embedding the license information for the themes in the `theme_importer`, and emit a combined `LICENSES` file in the `theme` crate whenever we import themes. This is also where we check that each theme has a valid license. We then use this `LICENSES` file when building up the global license file for Zed. This decoupling is one step towards us being able to delete the old Zed1 styles. Release Notes: - N/A
This commit is contained in:
parent
254a52d0a1
commit
c7c874a371
12 changed files with 10815 additions and 8565 deletions
|
@ -9,10 +9,7 @@ OUTPUT_FILE=$(pwd)/assets/licenses.md
|
|||
echo -e "# ###### THEME LICENSES ######\n" >> $OUTPUT_FILE
|
||||
|
||||
echo "Generating theme licenses"
|
||||
cd styles
|
||||
npm --silent ci
|
||||
npm run --silent build-licenses >> $OUTPUT_FILE
|
||||
cd ..
|
||||
cat crates/theme/src/themes/LICENSES >> $OUTPUT_FILE
|
||||
|
||||
echo -e "# ###### CODE LICENSES ######\n" >> $OUTPUT_FILE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue