For building the browser version of AutobahnJS, you will need the Google Closure Compiler.
Download from here.
cd ~
wget https://dl.google.com/closure-compiler/compiler-latest.zip
unzip -o compiler-latest.zip
Set $JS_COMPILER
to ${HOME}/compiler.jar
.
Autobahn is release to the following locations:
- On S3, here https://autobahn.s3.amazonaws.com/autobahnjs/latest/autobahn.min.jgz
- On NPM, here https://www.npmjs.com/package/autobahn
- On GitHub, here https://github.com/crossbario/autobahn-js-built
Update 'package/package.json' with the new release number.
In the root directory, do
make all
which will package the library for browser use into the build
directory.
E.g. by doing
git tag -a v0.9.7 -m "tagged release"
before you commit. (Add the hash of a commit at the end of the above to tag at a later time.)
If your comment for the tagging did not include "tagged release", then you need to manually draft a release. Go to 'releases' and 'Draft a new release' (adding some release notes is nice!).
Otherwise: add release notes to the automatically created release.
In the package
directory do
make publish
(This requires your npm user to have publishing priviledges for the package on npm.)
Just copy over the contents of the build
directory to the AutobahnJSbuilt repo, tag and commit.
Do
scons publish
to upload the built version to S3.