Skip to content

Commit

Permalink
added 7zip-min and xz build artifact #746
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpen committed Mar 22, 2019
1 parent 2f938cf commit 8bb209d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions js/grunt/buildRunnable.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

// 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 @@ -198,6 +199,10 @@ module.exports = async function( repo, minifyOptions, instrument, allHTML, brand
} );

grunt.file.write( allHTMLFilename, allHTMLContents );

_7z.cmd( [ 'a', '-txz', allHTMLFilename + '.xz', allHTMLFilename ], err => {
console.log( err );
} );
}

// Debug build (always included)
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"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 All @@ -20,12 +21,12 @@
"md5": "~2",
"node-html-encoder": "~0.0.2",
"pngjs": "~0.4.0",
"puppeteer": "~1.11.0",
"qunit": "~2.4.1",
"request": "^2.87.0",
"request-promise-native": "^1.0.7",
"requirejs": "~2.3.5",
"uglify-es": "~3.1.10",
"puppeteer": "~1.11.0"
"uglify-es": "~3.1.10"
},
"eslintConfig": {
"extends": "../chipper/eslint/sim_eslintrc.js"
Expand Down

0 comments on commit 8bb209d

Please sign in to comment.