Skip to content

Commit

Permalink
report media on modulify, #1412
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Dec 15, 2023
1 parent 22ca86b commit 86c53ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/grunt/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ module.exports = function( grunt ) {
grunt.registerTask( 'build',
`Builds the repository. Depending on the repository type (runnable/wrapper/standalone), the result may vary.
Runnable build options:
--report-media - Will iterate over all of the license.json files and reports any media files
--report-media - Will iterate over all of the license.json files and reports any media files, set to false to opt out.
--brands={{BRANDS} - Can be * (build all supported brands), or a comma-separated list of brand names. Will fall back to using
build-local.json's brands (or adapted-from-phet if that does not exist)
--allHTML - If provided, will include the _all.html file (if it would not otherwise be built, e.g. phet brand)
Expand Down Expand Up @@ -560,6 +560,7 @@ Updates the normal automatically-generated files for this repository. Includes:

grunt.registerTask( 'modulify', 'Creates *.js modules for all images/strings/audio/etc in a repo', wrapTask( async () => {
const modulify = require( './modulify' );
const reportMedia = require( './reportMedia' );
const generateDevelopmentStrings = require( '../scripts/generateDevelopmentStrings' );
const fs = require( 'fs' );

Expand All @@ -568,6 +569,10 @@ Updates the normal automatically-generated files for this repository. Includes:
if ( fs.existsSync( `../${repo}/${repo}-strings_en.json` ) ) {
generateDevelopmentStrings( repo );
}

// Do this last to help with prototyping before commit (it would be frustrating if this errored out before giving
// you the asset you could use in the sim).
await reportMedia( repo );
} ) );

// Grunt task that determines created and last modified dates from git, and
Expand Down

0 comments on commit 86c53ee

Please sign in to comment.