Sha256: 0e75126f20defce26b94cd1fa1f6cd799e006d34388c987c07c5d562d979ea53

Contents?: true

Size: 880 Bytes

Versions: 62

Compression:

Stored size: 880 Bytes

Contents

#!/bin/bash

# This script replace the npm installation of `foreman-js`
# with your local version. Usefull when developing `foreman-js`
# Read more about foreman-js: https://github.com/theforeman/foreman-js
#
# This script designed to run using `npm run foreman-js:link` in foreman root

set -e

if [[ -z "${FOREMAN_JS_LOCATION}" ]]; then # FOREMAN_JS_LOCATION is empty
  FOREMAN_JS_LOCATION="../foreman-js"
  echo "FOREMAN_JS_LOCATION is not defined, using \"${FOREMAN_JS_LOCATION}\" instead"
elif [ ! -d "${FOREMAN_JS_LOCATION}" ]; then
  echo "Can't find folder ${FOREMAN_JS_LOCATION}"
  exit 1
fi

FOREMAN_JS_LOCATION="../${FOREMAN_JS_LOCATION}"
FOREMAN_JS_PACKAGES_LOCATION="${FOREMAN_JS_LOCATION}/packages"
FOREMAN_JS_INSTALL_LOCATION="./node_modules/@theforeman"

set -x

rm -rf $FOREMAN_JS_INSTALL_LOCATION
ln -s $FOREMAN_JS_PACKAGES_LOCATION $FOREMAN_JS_INSTALL_LOCATION

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
foreman-tasks-10.0.2 script/npm_link_foreman_js.sh
foreman-tasks-10.0.1 script/npm_link_foreman_js.sh
foreman-tasks-10.0.0 script/npm_link_foreman_js.sh
foreman-tasks-9.2.3 script/npm_link_foreman_js.sh
foreman-tasks-9.2.2 script/npm_link_foreman_js.sh
foreman-tasks-9.2.1 script/npm_link_foreman_js.sh
foreman-tasks-9.2.0 script/npm_link_foreman_js.sh
foreman-tasks-9.1.1 script/npm_link_foreman_js.sh
foreman-tasks-9.0.4 script/npm_link_foreman_js.sh
foreman-tasks-9.1.0 script/npm_link_foreman_js.sh
foreman-tasks-9.0.2 script/npm_link_foreman_js.sh
foreman-tasks-9.0.1 script/npm_link_foreman_js.sh
foreman-tasks-8.3.3 script/npm_link_foreman_js.sh
foreman-tasks-9.0.0 script/npm_link_foreman_js.sh
foreman-tasks-8.2.1 script/npm_link_foreman_js.sh
foreman-tasks-8.1.4 script/npm_link_foreman_js.sh
foreman-tasks-8.3.2 script/npm_link_foreman_js.sh
foreman-tasks-8.3.1 script/npm_link_foreman_js.sh
foreman-tasks-8.1.3 script/npm_link_foreman_js.sh
foreman-tasks-8.3.0 script/npm_link_foreman_js.sh