Skip to content

Commit

Permalink
Generalize paths for loading tasks, see phetsims/chipper#1464
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Sep 18, 2024
1 parent 46011f8 commit df34ba5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/grunt/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,8 @@ module.exports = grunt => {
} )();
}
);

const registerTasks = require( '../../../chipper/js/grunt/registerTasks' );

registerTasks( grunt, __dirname + '/tasks' );
};
23 changes: 23 additions & 0 deletions js/grunt/tasks/test-aqua-grunt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright 2024, University of Colorado Boulder
/**
* Run internal tests for the Gruntfile. Note the output is reported over console.log, so be careful what you output.
* The command invoked is something like this: execSync( `${gruntCommand} test-grunt --brands=a,b,c --lint=false --noTSC` )
*
*
* @author Sam Reid (PhET Interactive Simulations)
*/

import getOption from '../../../../chipper/js/grunt/tasks/util/getOption';

// grunt test-grunt --brands=a,b,c --lint=false --noTSC
const brands = getOption( 'brands' );
const lint = getOption( 'lint' );
const noTSC = getOption( 'noTSC' );
const omitted = getOption( 'omitted' );

console.log( '<output>' );
console.log( `brands: ${brands}` );
console.log( `lint: ${lint}` );
console.log( `noTSC: ${noTSC}` );
console.log( `omitted: ${omitted}` );
console.log( '</output>' );

0 comments on commit df34ba5

Please sign in to comment.