• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

optimizely / javascript-sdk / 365
78%

Build:
DEFAULT BRANCH: master
Ran 20 Aug 2018 10:25PM UTC
Jobs 6
Files 44
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
365

push

travis-ci

web-flow
fix(build): Resume UMD bundle build, and restore docs (#152)

## Summary
- Restore the `build-browser-umd` npm script, which produces dist/optimizely.browser.umd.min.js
- Change the UMD lib name `optimizelyClient` -> `optimizelySdk`, since the `createInstance` client factory function may be one of several exports of the SDK, in the future.
- (not a visible change) Change Markdown indentation of some bull points, to please my Markdown editor [Typora](https://typora.io/)

This undoes one bit of #135. I hadn't realized that this asset _was_ documented, and does have some uses, like faster/easier prototyping in a browser.

## Test plan
I made a foo.html with
```html
<html>
<head>
  <script src="./dist/optimizely.browser.umd.min.js"></script>
  <script>
    console.log('trying sdk');
    window.optimizelySdk
    console.log('trying client');
    window.optimizelyClient
    console.log('trying client');
    window.optimizelyClient
  </script>
</head>
</html>
```
and it still works:

![screen shot 2018-08-20 at 2 59 47 pm](https://user-images.githubusercontent.com/20175438/44369024-b9d4b580-a489-11e8-9e2b-c8159917b68e.png)

408 of 448 branches covered (91.07%)

Branch coverage included in aggregate %.

3961 of 4051 relevant lines covered (97.78%)

87.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 365.1 20 Aug 2018 10:26PM UTC 0
97.11
Travis Job 365.1
2 365.2 20 Aug 2018 10:26PM UTC 0
97.11
Travis Job 365.2
3 365.3 20 Aug 2018 10:25PM UTC 0
97.11
Travis Job 365.3
4 365.4 20 Aug 2018 10:25PM UTC 0
97.11
Travis Job 365.4
5 365.5 20 Aug 2018 10:26PM UTC 0
97.11
Travis Job 365.5
6 365.6 20 Aug 2018 10:27PM UTC 0
97.11
Travis Job 365.6
Source Files on build 365
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #365
  • b1d6891f on github
  • Prev Build on master (#361)
  • Next Build on master (#369)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc