0.3.4 • Published 12 years ago
jsbundle-s3 v0.3.4
jsbundle-s3
Bundle, minify, and upload your JS code to Amazon's Simple Storage Service (S3).
Usage:
[JSBUNDLE_ENV=env] jsbundle-s3 <node_package_dir> [--bundle-version=version]
The options are basically identical to the jsbundle options.
There are two major differences:
- the --bundle-version option, which lets you specify a version string for the uploaded bundle. It defaults to a millisecond timestamp.
the "s3" key in jsbundle.json, which is as follows:
afterUpload is optional, and runs a shell command with 3 variables set after S3 upload succeeds:
- $NAME — the file name (taken from the bundled package's package.json), e.g.: mypackage.js
- $VERSION — the version string, e.g.: 1337644600297
- $URL — the url, without a protocol, of the uploaded file, e.g.: //s3.amazonaws.com/mybucket/1337644600297/mypackage.js