dp-table-builder-ui
v1.3.2
Published
Handsontable grid implementation
Readme
dp-table-builder-ui
Starting the dev server
To run dp-table-builder-ui you must have:
nvm installed:
brew install nvm:warning: Make sure to follow the instructions provided at the end of the install to configure up your shell profile.
The node version specified in
.nvmrcinstalled through nvm:nvm install
Once you have installed those dependencies and cloned this repo you need to run the following:
Move into the correct directory
cd dp-table-builder-uiBuild node modules (you won't need to do this everytime only when the assets need to be rebuilt)
make node-modulesRun the server
make debug
Available Commands
make audit- Runs audit checkmake build- Builds into npm packagemake debug- Runs dev servermake lint- Runs lint checksmake test- Runs testsmake node-modules- Builds dependenciesmake cleanDeletes built assetsmake help- Show help page for list of make targets
Releasing
This package is published to npm at npmjs.com/package/dp-table-builder-ui.
To release a new version:
- Bump the
versionfield inpackage.jsonfollowing the ONS versioning guide - Run
npm installto updatepackage-lock.json - Commit, raise a PR and merge to
main- NB. DO NOT PUSH THE MERGED PR UP TO GITHUB UNTIL AFTER TAGGING IT (SEE NEXT STEP) - Tag the merged commit, and push up the merge using
--follow-tags, as explained in the ONS tagging guide - The CI pipeline publishes the package to npm on the tagged commit
Dependencies
- No further dependencies other than those defined in
package.json
Troubleshooting
Error saying python2 not found in path for macOS users
Solution You will need to install python2
As other services use Python3, it is advised to use pyenv to manage the python versions
There is a .python-version file that will set the python version locally
brew install pyenv- if running on macOS 10.9 > then run
brew install zlib; CPPFLAGS="-I$(brew --prefix zlib)/include" pyenv install 2.7.16else runpyenv install 2.7.16 pyenv local 2.7.16(This command shouldn't be required but if the dot file isn't picked up then this will set it)
