1.0.3 • Published 5 years ago
@motifmarkets/revgrid v1.0.3
Revgrid
Revgrid is an Angular grid component for MotifMarkets' Motif trading terminal application. It is essentially a wrapper around the Hypergrid grid component.
The repository includes a test application which can be used to both view and test the library
Usage
Build and Package
- Install the library by cloning its repository at GitHub.
- Run
npm installto install the required dependencies. - Run
build:devscript to build a development distribution. - Run
build:prodscript to build a product distribution. - Run
packagescript to package the current distribution into a package.
Test App
- Ensure a package has been built in library distribution (see above)
- Note the file name of the package in the distribution (the filename with extension .tgz)
- Change directory to
projects/test-appfolder. - Run
npm installfrom this folder. Thetest-appfolder has its ownnode_modulesfolder. Make sure you do not run thisnpm installbefore installing the library. - Open
package.jsonin thetest-appfolder and ensure that the revgrid dependency is specified with the correct library package filename (ie:"revgrid": "file:../../dist/<filename>") - Run
buildscript to build the test app - Run
startscript to build test app inside the test server. You can then run test-app by opening the following URL in a browser:http://localhost:4200.
If you rebuild the library, you will then need to:
1. Recreate the package file.
1. If you changed the library version number, the package filename will have changed. You will then also need to update the revgrid dependency in projects/test-app/package.json.
1. Run npm install from the test-app folder to install the new library package.