mx18_rti_fib_equation
v1.9.1
Published
Math Expressions 2018 RTI FIB Equation Interaction
Readme
FIB Equation Interaction
Math Expressions 2018 RTI FIB Equation Interaction
This interaction is compatible with Experience Library.
Installation
This repository requires:
- NodeJS version 6 LTS or above
- NPM version 3 or above
Make sure you have the @hmh npm registry setup. Ignore the following line if it's already setup on your computer.
npm config set @hmh:registry http://172.17.101.192:4873Install dependencies
npm install -g gulp
npm installBuild the interaction
Pull shared repositories
gulp init Build the widget
gulp buildThe build output is found in the build/ folder.
Build settings can be customized: build-settings.json.
Development server
For development, you can run the local server. The server has live reload enabled on code change. Take note that the development version will only work on Google Chrome browser.
gulpYou might need to specify a test configuration file in the URL for your widget to work properly.
Development URL (chrome-only)
http://localhost:3000/src/index.html?configFile=config/paced_content_template_model.json
Production URL (cross-browser)
http://localhost:3000/build/index.html?configFile=config/paced_content_template_model.json
Lint the project
This project is linted with ESLint against AirBnB Style Guide.
npm run lintUsing custom configuration files and animations
For local testing and development, you can create custom configuration files under test/config.
You can use a local animation by specifying the following parameters at the root level of your config.
"testAnimationName": "<your-local-animation-name>",
"testAnimationPath": "../test/animations",These are for development purpose only, and should never be used in Habitat context.
Tests
npm install mocha -g
npm test