1.2.5 • Published 9 years ago
@tremorvideo/tron v1.2.5
Tron
Description/Goal
Consolidates chart and metrics to be displayed in a modular fashion.
Prerequisites
- Node.js >= 4.0.0 (for ES2015 support)
- Python 2.7.x (Documentation)
Usage
Install
npm installConfig
Copy and rename settings/server-default.json to settings/server.json. Provide necessary config for remote endpoint(s) in settings/server.json. You can provide multiple remotes.
"remotes": [{
"path": "/forecast/:id", // path on application
"controller": "videohub", // request and response handler
"url": "path/to/api", // remote url to send request
"auth": {
"user": "user@domain.com",
"password": "password"
},
"header": {
"Accept": "application/json"
"X-VHS-networkId": 1234
}
}],Starting local server
npm start* Links below only work when local server is running
Documentation
Generate documentation
npm run docView documentation
Examples
Test Coverage
Generate report
npm run test-coverageViewing the report
Development
Build all assets
npm run buildBuild only javascript
npm run browserifyBuild only css styles
npm run lessContributors
Remember to do the following when publishing:
Document it
- Update CHANGELOG
- Update README if necessary
- Update version number in package.json according to semver
Test it
npm run testBuild it
npm run buildPublish it
npm publish