codefrau / SqueakJS

A Squeak Smalltalk VM in Javascript
https://squeak.js.org
MIT License
365 stars 75 forks source link

Add bundling and minification scripts #102

Closed ErikOnBike closed 4 years ago

ErikOnBike commented 4 years ago

Added npm based scripts for bundling and minifying of the Javascript code. It requires 3 npm modules which in turn require a few others. Tried to keep it as low/simple as possible, while still using modern and stable products.

To install the relevant npm modules (before being able to perform bundling/minification):

npm install

Then to create the distributable files:

npm run build

Before pushing new changes to GitHub perform a npm run build to update the distribution files.

Option might be to add another script to package.json which does npm run build && git push of course ;-).