File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed
custom-css-analysis-and-migration Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,16 @@ When Bloom encounters a pre-5.7 book with a `customBookStyles.css` that would co
1818
1919 ` ./some-path/BloomBulkDownloader.exe --include "*/*/custom*Styles.css" --syncfolder ./output/downloads --bucket production customBookStyles-files `
2020
21- 1 . Process those, grouping them into bins of duplicate stylesheets
21+ Each of the following take an optional argument that will limit the number of records processed.
2222
23- ` bun run group-stylesheets.ts 13 `
23+ 5 . Process those, grouping them into bins of duplicate stylesheets
2424
25- Here the number is optional and it limits how many stylesheets will be processed.
25+ ` bun run group- stylesheets.ts 13 `
2626
27271 . Process those groups, discarding ones that don't need migration
2828
29- ` bun run filter-stylesheets.ts `
29+ ` bun run filter-stylesheets.ts 7 `
3030
31311 . Create draft migration files for each one
3232
33- ` bun run create-migrations.ts `
33+ ` bun run create-migrations.ts 3 `
Original file line number Diff line number Diff line change @@ -66,13 +66,12 @@ for (const record of records) {
6666 fs . writeFileSync (
6767 `${ folder } /appearance.json` ,
6868 `// Matches customBookStyles.css with checksum ${ checksum }
69- // This was used by ${ record . book_count } books (${ record . unique_named_books } unique).` +
70- // todo : +`// Affected branding projects include "Mali-ACR-2020-Soninke".`
69+ // This was used by ${ record . book_count } books (${ record . unique_named_books } unique).` +
70+ // enhance : +`// Affected branding projects include "Mali-ACR-2020-Soninke".`
7171 `// Uploaders included ${ JSON . stringify ( uniqueUploaders ) } .
72- // Example Book: ${ record . first_book }
73- // A replacement customBookStyles.css has been generated.
74- {
75- }
76- `
72+ // Example Book: ${ record . first_book }
73+ // A replacement customBookStyles.css has been generated.
74+ {
75+ }`
7776 ) ;
7877}
You can’t perform that action at this time.
0 commit comments