Skip to content

Instantly share code, notes, and snippets.

James Grant sproogen

View GitHub Profile
@sproogen
sproogen / merge-downstream.sh
Last active Jun 29, 2018
A simple bash script for a Travis CI build to merge changes to the downstream develop branch or create a PR with conflicts
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"
}
}
@sproogen
sproogen / ChildComponent.vue
Last active Mar 13, 2019
Vee Validate - Child Component Example
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'
You can’t perform that action at this time.