1.0.1 • Published 7 years ago
marcura-common-ui-helper v1.0.1
Marcura Helper
Node application for marcura-common-ui library that helps with watching and deploying of the library.
Setup
- Install globally
grunt-cli. - Make sure you have
PLCandPLOlocally linked tomarcura-common-ui. (Instructions how to do that can be found in the readme ofmarcura-common-uirepository.) - Switch to helper folder and run
yarnto install dependencies. - Copy
.envfile to directory root. - Run the app (instructions at the end).
Folder structure
Make sure you have helper on the same level as other apps
├── atlis
├── marc-helper
├── portlog
├── portlog-chartering
└── portlog-common-uiRunning
By yarn run:
- watch:portlog - rebuilds local
marcura-common-uilibrary, rebuildsPLOto use the new version of it and runsPLOin dev watcher mode. - watch:chartering - rebuilds local
marcura-common-uilibrary, rebuildsPLCto use the new version of it and runsPLCin dev watcher mode. - publish - publishes version on npm & updates repositories
Warning: the publish is still in testing - don't fully trust it yet. Use cerfully, check 10 times.
In watcher mode it's important to remember the site will not be automatically refreshed. After app finishes rebuilding and re-starts watcher you have to refresh the site yourself.
Cavetas
On Linux you might be asked to sudo each rebuild because find-process library uses netstat to discover open ports. You can workaround this by adding netstat for your user to sudoers file. Example below:
Defaults:user !requiretty
user ALL = (root) NOPASSWD: /usr/bin/netstat(change user to your username)
Dependencies:
The app is written and polyfiled to work with node >= 6.11
- colors
- debounce
- dotenv
- find-process
- kill-port
- node-watch
- promisify-node