marcura-common-ui-helper

1.0.1 • Public • Published

Marcura Helper

Node application for marcura-common-ui library that helps with watching and deploying of the library.

Setup

  1. Install globally grunt-cli.
  2. Make sure you have PLC and PLO locally linked to marcura-common-ui. (Instructions how to do that can be found in the readme of marcura-common-ui repository.)
  3. Switch to helper folder and run yarn to install dependencies.
  4. Copy .env file to directory root.
  5. 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, rebuilds PLO to use the new version of it and runs PLO in dev watcher mode.
  • watch:chartering - rebuilds local marcura-common-ui library, rebuilds PLC to use the new version of it and runs PLC 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

Readme

Keywords

none

Package Sidebar

Install

npm i marcura-common-ui-helper

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

13.2 kB

Total Files

10

Last publish

Collaborators

  • adamwych
  • bartek201
  • szymiccc3751
  • islyfoxxy
  • w0jcik
  • marek.goczol
  • tripplethree
  • ozz888
  • aempinheiro
  • mdz452
  • fskorozhenko
  • bethsedea