File tree 2 files changed +11
-12
lines changed
custom-css-analysis-and-migration
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
18
18
19
19
` ./some-path/BloomBulkDownloader.exe --include "*/*/custom*Styles.css" --syncfolder ./output/downloads --bucket production customBookStyles-files `
20
20
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.
22
22
23
- ` bun run group-stylesheets.ts 13 `
23
+ 5 . Process those, grouping them into bins of duplicate stylesheets
24
24
25
- Here the number is optional and it limits how many stylesheets will be processed.
25
+ ` bun run group- stylesheets.ts 13 `
26
26
27
27
1 . Process those groups, discarding ones that don't need migration
28
28
29
- ` bun run filter-stylesheets.ts `
29
+ ` bun run filter-stylesheets.ts 7 `
30
30
31
31
1 . Create draft migration files for each one
32
32
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) {
66
66
fs . writeFileSync (
67
67
`${ folder } /appearance.json` ,
68
68
`// 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".`
71
71
`// 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
+ }`
77
76
) ;
78
77
}
You can’t perform that action at this time.
0 commit comments