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:
Marshall Bowers 2024-01-05 13:38:12 -05:00 committed by GitHub
parent 254a52d0a1
commit c7c874a371
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 10815 additions and 8565 deletions

View file

@ -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