Skip to content

Commit

Permalink
Added gzip file for #746
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpen committed Mar 26, 2019
1 parent 82f79de commit f9cf86a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions js/grunt/buildRunnable.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// modules
const _ = require( 'lodash' ); // eslint-disable-line require-statement-match
const _7z = require( '7zip-min' ); // eslint-disable-line require-statement-match
const assert = require( 'assert' );
const buildMipmaps = require( './buildMipmaps' );
const ChipperConstants = require( '../common/ChipperConstants' );
Expand Down Expand Up @@ -38,6 +37,7 @@ const packageXHTML = require( './packageXHTML' );
const reportUnusedMedia = require( './reportUnusedMedia' );
const reportUnusedStrings = require( './reportUnusedStrings' );
const requireBuild = require( './requireBuild' );
const zlib = require( 'zlib' );

/**
* Builds a runnable (e.g. a simulation).
Expand Down Expand Up @@ -199,13 +199,8 @@ module.exports = async function( repo, minifyOptions, instrument, allHTML, brand
} );

grunt.file.write( allHTMLFilename, allHTMLContents );
grunt.file.write( allHTMLFilename + '.gz', zlib.gzipSync( allHTMLContents ) );

_7z.cmd( [ 'a', '-txz', allHTMLFilename + '.xz', allHTMLFilename ], err => {
if ( err !== null ) {
grunt.log.error( err );
throw new Error( err );
}
} );
}

// Debug build (always included)
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"url": "https://github.com/phetsims/chipper.git"
},
"devDependencies": {
"7zip-min": "^1.0.1",
"babel-core": "^6.26.3",
"babel-preset-env": "~1.6.1",
"eslint": "~5.14.1",
Expand Down

0 comments on commit f9cf86a

Please sign in to comment.