This repository houses the JavaScript SDK for Optimizely X Full Stack.
The SDK is available through npm. To install:
npm install optimizely-client-sdk --save
Or to use in a non CommonJS fashion:
- Run
npm run build
- Pull in
dist/optimizely.min.js
as a<script>
- Use as global variable
window.optimizelyClient
See the Optimizely X Full Stack testing developer documentation to learn how to set up your first JavaScript project and use the SDK.
npm install
You can run all unit tests with:
npm test
Please see CONTRIBUTING.