Latest Version: v2.2.1
This package provides support for Bloombox APIs in browser-oriented JavaScript. It's built using the Closure stack from Google, including Closure Compiler, Library, builder, and so on. Made with love by Bloombox in Sacramento, CA.
You can either embed the library directly in your project (the compiled copy, or via Closure), or you can use the CDN, which is the simplest and usually the most performant way:
<!doctype html>
<html>
<head>
<script type="text/javascript" src="https://js.bloombox.cloud/latest.min.js"></script>
<script type="text/javascript">
bloombox.setup("<partner>", "<location>", "<apikey>", function() {
// use the library
});
</script>
[...]
If you are having trouble getting things working correctly, you can use the debug copy, by affixing -debug
before
the .min
in the script URL:
<script type="text/javascript" src="https://js.bloombox.cloud/latest-debug.min.js"></script>
Then, you'll see debug logs in your console that describe what's going on.
If you want to test against the latest library features while they are still in staging, you can also try the -beta
variant of the library, placed just before the .min
in the script URL, like -debug
:
<script type="text/javascript" src="https://js.bloombox.cloud/latest-beta.min.js"></script>
If you would like to pin your application to a specific version of the library, you can do that:
<script type="text/javascript" src="https://js.bloombox.cloud/client/v2.2.1.min.js"></script>
and...
<script type="text/javascript" src="https://js.bloombox.cloud/client/v2.2.1-debug.min.js"></script>
Required tools:
node
yarn
git
Steps:
git clone [...] && cd [project root]
git submodule update --init --remote
make
Running the dev server (serves a test page at 'http://localhost:8000'):
make serve
Publishing the library (GCS CDN permissions required):
make publish
This library was made and is managed with <3 by Bloombox, a subsidiary of Momentum Ideas, Co., from Sacramento,
California. Bloombox JS is distributed under the Apache License v2, which is enclosed herein as LICENSE.txt
. Third
party license notices, including ones from MochiKit and Google, via the Closure Authors.