1.0.3 • Published 4 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 install
to install the required dependencies. - Run
build:dev
script to build a development distribution. - Run
build:prod
script to build a product distribution. - Run
package
script 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-app
folder. - Run
npm install
from this folder. Thetest-app
folder has its ownnode_modules
folder. Make sure you do not run thisnpm install
before installing the library. - Open
package.json
in thetest-app
folder and ensure that the revgrid dependency is specified with the correct library package filename (ie:"revgrid": "file:../../dist/<filename>"
) - Run
build
script to build the test app - Run
start
script 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.