Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oprime-montage

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oprime-montage

OPrime HTML5 Experimentation libraries written in MontageJS

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

OPrime

OPrime HTML5 Experimentation libraries written in MontageJS

Getting Started

On the server

Install the module with: npm install oprime-montage

var OPrime = require('OPrime');
var experiment = new OPrime.Experiment(); 
experiment.run();

In the browser

Download the production version or the development version.

In your web page:

<script src="dist/oprime-montage.min.js"></script>
<script>
var experiment = new Experiment(); 
experiment.run();
</script>

In your code, you can attach OPrime's methods to any object.

<script>
var exports = Bocoup.utils;
</script>
<script src="dist/oprime-montage.min.js"></script>
<script>
var experiment = new Bocoup.utils.Experiment(); 
experiment.run();
</script>

Documentation

Layout

The template contains the following files and directories:

  • index.html
  • package.json – Describes your app and its dependencies
  • README.markdown – This readme. Replace the current content with a description of your app
  • ui/ – Directory containing all the UI .reel directories.
    • main.reel – The main interface component
  • core/ – Directory containing all core code for your app.
  • node_modules/ – Directory containing all npm packages needed, including Montage. Any packages here must be included as dependencies in package.json for the Montage require to find them.
  • assets/ – Assets such as global styles and images for your app
  • test/ – Directory containing tests for your app.
    • all.js – Module that point the test runner to all your jasmine specs.
  • run-tests.html – Page to run jasmine tests manually in your browser

Create the following directories if you need them:

  • locale/ – Directory containing localized content.
  • scripts/ – Directory containing other JS libraries. If a library doesn’t support the CommonJS "exports" object it will need to be loaded through a <script> tag.

Examples

See test directory

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Also, please don't edit files in the "dist" subdirectory as they are generated via Grunt. You'll find source code in the "lib" subdirectory!

Release History

Currently in feasibilty study...

License

Copyright (c) 2013
Licensed under the Apache, 2.0 licenses.

FAQs

Package last updated on 02 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc