(assuming project is hosted on GitLab)
- Enable shared runners by going to "Settings" > "Runners".
- Add
.gitlab-ci.yml
with the following content:
image: node:6.9.1
pages:
artifacts:
paths:
sudo apachectl stop | |
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null |
<?php | |
/** | |
* @link | |
* @since 1.0.0 | |
* @package TODO | |
* | |
* @wordpress-plugin | |
* Plugin Name: Use MailHog | |
* Description: Configure WordPress on Valet to use MailHog | |
* Version: 1.0.0 |
(assuming project is hosted on GitLab)
.gitlab-ci.yml
with the following content:image: node:6.9.1
pages:
artifacts:
paths:
/* | |
Before using make sure you have: | |
npm install --save-dev gulp gulp-minify-css gulp-concat gulp-uglify gulp-autoprefixer gulp-sass | |
Make sure to change the directory names in the default watch function to the CSS/SCSS/SASS directories you are using so it reloads | |
*/ | |
var gulp = require('gulp'), | |
minifyCSS = require('gulp-minify-css'), | |
concat = require('gulp-concat') |
#!/usr/bin/env bash | |
#styles | |
VP_NONE='\033[00m' | |
VP_RED='\033[01;31m' | |
VP_GREEN='\033[01;32m' | |
VP_YELLOW='\033[01;33m' | |
VP_PURPLE='\033[01;35m' | |
VP_CYAN='\033[01;36m' | |
VP_WHITE='\033[01;37m' |
#!/usr/bin/env bash | |
#styles | |
VP_NONE='\033[00m' | |
VP_RED='\033[01;31m' | |
VP_GREEN='\033[01;32m' | |
VP_YELLOW='\033[01;33m' | |
VP_PURPLE='\033[01;35m' | |
VP_CYAN='\033[01;36m' | |
VP_WHITE='\033[01;37m' |
###Overview
As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
{% paginate collection.products by 20 %} | |
<!-- the top of your collections.liquid --> | |
<!-- START PRODUCTS --> | |
{% for product in collection.products %} | |
<!-- START PRODUCT {{ forloop.index | plus:paginate.current_offset }} --> | |
<div class="product" id="product-{{ forloop.index | plus:paginate.current_offset }}"> | |
{% include 'product' with product %} | |
</div> | |
<!-- END PRODUCT {{ forloop.index | plus:paginate.current_offset }} --> |
<form class="needs-validation"> | |
<div class="form-group"> | |
<input type="email" placeholder="Email address" class="form-control email-address-form my-3" autofocus required> | |
</div> | |
<div class="custom-control custom-checkbox"> | |
<input type="checkbox" class="custom-control-input" id="__adult" checked> | |
<label for="__adult" class="custom-control-label">Yes, I am over 21 years old</label> | |
</div> | |
<div class="custom-control custom-checkbox"> | |
<input type="checkbox" class="custom-control-input" id="__receiveNewsletter" checked> |
// Google Fonts | |
@import url(http://fonts.googleapis.com/css?family=Roboto+Slab|Open+Sans:400italic,700italic,400,700); | |
// Font Variables | |
$roboto-slab: 'Roboto Slab', serif; | |
$open-sans: 'Open Sans', sans-serif; | |
// Styles | |
body { | |
font-family: $body-font; |