marcura-common-ui-helper
v1.0.1
Published
Node application for `marcura-common-ui` library that helps with watching and deploying of the library.
Downloads
1
Maintainers
Keywords
Readme
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
PLC
andPLO
locally linked tomarcura-common-ui
. (Instructions how to do that can be found in the readme ofmarcura-common-ui
repository.) - Switch to helper folder and run
yarn
to install dependencies. - Copy
.env
file 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-ui
Running
By yarn run
:
- watch:portlog - rebuilds local
marcura-common-ui
library, rebuildsPLO
to use the new version of it and runsPLO
in dev watcher mode. - watch:chartering - rebuilds local
marcura-common-ui
library, rebuildsPLC
to use the new version of it and runsPLC
in 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