Sha256: 76805345d13266d24fb4eac1ef895f0285926af54612ba917f0343b9af7f176a

Contents?: true

Size: 578 Bytes

Versions: 2

Compression:

Stored size: 578 Bytes

Contents

#!/usr/bin/env bash

ESLINT_RAILS_DIR=$(pwd)
PLUGINS=(yannickcr/eslint-plugin-react) # Add new plugins here.
GIT_URL_PREFIX="git@github.com:"
GIT_URL_SUFFIX=".git"

mkdir -p /tmp/eslint-rails-plugins
cd /tmp/eslint-rails-plugins

for plugin in ${PLUGINS[@]}; do
  git_url=$GIT_URL_PREFIX$plugin$GIT_URL_SUFFIX
  git clone $git_url
  plugin_name=$(basename $git_url .git)
  cd $plugin_name
  npm install
  browserify index.js -o $plugin_name.js
  cp $plugin_name.js $ESLINT_RAILS_DIR/vendor/assets/javascripts/plugins/
done

rm -rf /tmp/eslint-rails-plugins

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eslint-rails-ee-1.0.1 build-plugins.sh
eslint-rails-ee-1.0 build-plugins.sh