View merge-downstream.sh
#!/bin/bash
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
git remote set-branches --add origin develop;
git fetch origin develop;
git checkout develop;
git merge master;
View composer.json
{
"require": {
"nubs/random-name-generator": "^2.0"
}
}
View ChildComponent.vue
<template>
<div>
<input v-validate data-rules="required" :class="{'has-error': errors.has("textInput")}" id="textInput" name="textInput" type="text">
<span class="error" v-show="errors.has("textInput")">{{ errors.first("textInput") }}</span>
</div>
</template>
<script>
import { find, propEq } from 'ramda'
import bus from './bus'