Permalink
Browse files

Release v1.1.1 (#54)

* Tweak: Fix WooCommerce cart menu item background. - #52
* Tweak: Update `travis.yml` build script
  • Loading branch information...
EvanHerman committed Dec 14, 2017
1 parent 3422c61 commit 2f6df2cbe16556e102700552b6ca9f40a3fc26a1
@@ -12,6 +12,7 @@
.primer-wc-cart-sub-menu {
float: right;
width: 100%;
height: 0;
box-shadow: none;
li,
@@ -220,7 +220,7 @@ body.no-max-width .main-navigation {
display: inline-block;
margin: 0 auto;
width: 3.9rem;
padding: 0.6rem;
padding: 0.15rem 0.6rem 0.6rem 0.6rem;
cursor: pointer;
position: absolute;
z-index: 9999;
@@ -61,12 +61,13 @@ body.custom-header-image {
.site-title-wrapper {
padding: 20px 0 0 20px;
width: auto;
width: 80%;
float: left;
@media #{$medium-up} {
padding-top: 0;
text-align: left;
width: 100%;
}
}
@@ -135,7 +136,6 @@ body.no-max-width .page-title-container .page-header {
.page-header {
@include container($container-size);
position: relative;
z-index: 100;
clear: both;
@@ -6,7 +6,6 @@
.hero,
aside.primer-hero-text-widget {
position: relative;
z-index: 5;
}
#wp-custom-header {
View
@@ -1,29 +1,56 @@
sudo: false
notifications:
email:
on_success: never
on_failure: change
cache:
directories:
- node_modules
- vendor
- $HOME/.composer/cache
- $HOME/.wp-cli/cache
- $HOME/.wp-cli/packages/cache
language:
- php
- node_js
branches:
only:
- /^v\d.*$/
- master
- develop
env:
global:
- WP_THEME=velux
before_install:
- phpenv config-rm xdebug.ini
before_script:
- curl -s https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar > /tmp/wp-cli.phar
- curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar > /tmp/wp-cli.phar
- chmod +x /tmp/wp-cli.phar
script:
- echo "Deploy only"
before_deploy:
- export RELEASE_FOLDER=velux
- php /tmp/wp-cli.phar package install runcommand/dist-archive
- cp -rv ${TRAVIS_BUILD_DIR} /tmp/${RELEASE_FOLDER}
- mv /tmp/${RELEASE_FOLDER} ${TRAVIS_BUILD_DIR}
- php /tmp/wp-cli.phar dist-archive ${RELEASE_FOLDER} ${TRAVIS_BUILD_DIR}/${RELEASE_FOLDER}.zip --format=zip --debug
- mkdir -p /tmp/$WP_THEME
- rsync -av --exclude-from $TRAVIS_BUILD_DIR/.distignore --delete $TRAVIS_BUILD_DIR/ /tmp/$WP_THEME/
- cd /tmp
- zip -rT $TRAVIS_BUILD_DIR/$WP_THEME.zip $WP_THEME/
- sha256sum -b $TRAVIS_BUILD_DIR/$WP_THEME.zip | awk '{print $1}' | tee $TRAVIS_BUILD_DIR/$WP_THEME.zip.sha256
deploy:
provider: releases
api_key:
secure: bq6iVDJDQ8AN8KlRTZGokhX5TtleAYidPFDzEQnnoIEx//A+xZOgM1jyIlf9EW7Y7prD4f07PYWcoRj4C5vFgxhCalQui0jcHseed6PDTQ9gktjETReFy+yzD8KJWAO/FMr3xFCeO2gp5P77jVPxEwZ6dwNKZGTDfAGtyJjFQqACjebDX/UM+Ed5GsTzPdjaRXjq0f8Hn7gU1uTU/g1SFLy/HZHjsr9WWV0HbJdFcD3hDILMdivHfiWLLssLlfnIopCDwdFiTIvpNvUt0eR8YZzcoONJUEiFQM8V+/80hT4QwYj8/oRdO/5I3pJxepp5v/VZiLx/6eZ4do2kTk4A3nbk1T31t5rhH5TuuYXZPunc2ebPSSMw6x74S3U5Z3UCG4y2JmEKQk8otli0P4Pw6tXVLUckotWwEtOvSYs83hncLBxWae5zDRFMt3QPynPCEtIUXfnGjx01Z7M+bJT3IddR/qyzdiao3itQAJhV9r+W0ZqwwnAuPk6kMNfOBAKAZT83+Y7p4+g3MzodkI8joNluo0kCb7ajOa7yQT3kI5oYQ0vUEcOIXKFmSHuXFnEw/bws9TtHp+V5bSWJRQPnAqnxWumJAn6gqvIYiWeFbKxGYESMXtJI7smrdTWmHxK2fNZYrsdG0vxQWy/IpB0/X+xmhX08N1bTXDY4GedhiSY=
file: velux.zip
file:
- "$TRAVIS_BUILD_DIR/$WP_THEME.zip"
- "$TRAVIS_BUILD_DIR/$WP_THEME.zip.sha256"
skip_cleanup: true
overwrite: true
on:
tags: true
repo: godaddy/wp-velux-theme
skip_cleanup: true
overwrite: true
View
@@ -2,9 +2,11 @@
module.exports = function( grunt ) {
'use strict';
var pkg = grunt.file.readJSON( 'package.json' );
grunt.initConfig({
grunt.initConfig( {
pkg: pkg,
@@ -21,11 +23,38 @@ module.exports = function( grunt ) {
],
cascade: false
},
dist: {
src: [ '*.css' ]
editor: {
src: [ 'editor-style.css' ]
},
main: {
src: [ 'style.css' ]
}
},
clean: {
options: {
force: true
},
build: [ 'build/' ]
},
copy: {
build: {
expand: true,
cwd: '.',
src: [
'*.css',
'*.php',
'*.txt',
'screenshot.png',
'assets/**',
'inc/**',
'templates/**'
],
dest: 'build/'
},
},
cssjanus: {
theme: {
options: {
@@ -44,68 +73,119 @@ module.exports = function( grunt ) {
}
},
sass: {
devUpdate: {
packages: {
options: {
updateType: 'force'
}
}
},
imagemin: {
options: {
precision: 5,
sourceMap: false
optimizationLevel: 3
},
dist: {
files: [
{
'style.css': '.dev/sass/style.scss',
'editor-style.css': '.dev/sass/editor-style.scss'
}
]
assets: {
expand: true,
cwd: 'assets/images/',
src: [ '**/*.{gif,jpeg,jpg,png,svg}' ],
dest: 'assets/images/'
},
screenshot: {
files: {
'screenshot.png': 'screenshot.png'
}
}
},
watch: {
css: {
files: '.dev/sass/**/*.scss',
tasks: [ 'sass','autoprefixer','cssjanus' ]
}
jshint: {
gruntfile: [ 'Gruntfile.js' ]
},
replace: {
version_php: {
src: [
'**/*.php',
'.dev/**/*.scss',
'**/*.css'
charset: {
overwrite: true,
replacements: [
{
from: /^@charset "UTF-8";\n/,
to: ''
}
],
src: [ 'style*.css' ]
},
php: {
overwrite: true,
replacements: [ {
from: /Version:(\s*?)[a-zA-Z0-9\.\-\+]+$/m,
to: 'Version:$1' + pkg.version
}, {
from: /@version(\s*?)[a-zA-Z0-9\.\-\+]+$/m,
to: '@version$1' + pkg.version
}, {
from: /@since(.*?)NEXT/mg,
to: '@since$1' + pkg.version
}, {
from: /VERSION(\s*?)=(\s*?['"])[a-zA-Z0-9\.\-\+]+/mg,
to: 'VERSION$1=$2' + pkg.version
}, {
from: /'PRIMER_CHILD_VERSION', '[a-zA-Z0-9\.\-\+]+'/mg,
to: '\'PRIMER_CHILD_VERSION\', \'' + pkg.version + '\''
}]
replacements: [
{
from: /Version:(\s*?)[a-zA-Z0-9\.\-\+]+$/m,
to: 'Version:$1' + pkg.version
},
{
from: /@since(.*?)NEXT/mg,
to: '@since$1' + pkg.version
},
{
from: /@NEXT/g,
to: '<%= pkg.version %>'
},
{
from: /VERSION(\s*?)=(\s*?['"])[a-zA-Z0-9\.\-\+]+/mg,
to: 'VERSION$1=$2' + pkg.version
},
{
from: /'PRIMER_CHILD_VERSION', '[a-zA-Z0-9\.\-\+]+'/mg,
to: '\'PRIMER_CHILD_VERSION\', \'' + pkg.version + '\''
}
],
src: [ '*.php', 'inc/**/*.php', 'templates/**/*.php' ]
},
version_readme: {
src: 'readme.*',
readme: {
overwrite: true,
replacements: [ {
from: /^(\*\*|)Stable tag:(\*\*|)(\s*?)[a-zA-Z0-9.-]+(\s*?)$/mi,
to: '$1Stable tag:$2$3<%= pkg.version %>$4'
} ]
replacements: [
{
from: /Stable tag:(\s*)[\w.+-]+/,
to: 'Stable tag:$1<%= pkg.version %>'
}
],
src: [ 'readme.txt' ]
},
pot:{
src: 'languages/' + pkg.name + '.pot',
sass: {
overwrite: true,
replacements: [ {
from: 'charset=CHARSET',
to: 'charset=UTF-8'
} ]
replacements: [
{
from: /Version:(\s*)[\w.+-]+/,
to: 'Version:$1<%= pkg.version %>'
}
],
src: [ '.dev/sass/**/*.scss' ]
}
},
sass: {
options: {
precision: 5,
sourceMap: false
},
editor: {
files: {
'editor-style.css': '.dev/sass/editor-style.scss'
}
},
main: {
files: {
'style.css': '.dev/sass/style.scss'
}
}
},
watch: {
images: {
files: 'assets/images/**/*.{gif,jpeg,jpg,png,svg}',
tasks: [ 'imagemin' ]
},
sass: {
files: '.dev/sass/**/*.scss',
tasks: [ 'sass', 'replace:charset', 'autoprefixer', 'cssjanus' ]
}
},
@@ -139,12 +219,14 @@ module.exports = function( grunt ) {
}
}
});
} );
require( 'matchdep' ).filterDev( 'grunt-*' ).forEach( grunt.loadNpmTasks );
grunt.registerTask( 'default', [ 'sass', 'autoprefixer', 'cssjanus' ] );
grunt.registerTask( 'default', [ 'sass', 'replace:charset', 'autoprefixer', 'cssjanus', 'jshint', 'imagemin' ] );
grunt.registerTask( 'build', [ 'default', 'clean', 'copy' ] );
grunt.registerTask( 'check', [ 'devUpdate' ] );
grunt.registerTask( 'readme', [ 'wp_readme_to_markdown' ] );
grunt.registerTask( 'version', [ 'replace' ] );
grunt.registerTask( 'version', [ 'replace', 'readme', 'build' ] );
};
View
Binary file not shown.
View
BIN -17.7 KB (96%) assets/images/hero.jpg
Binary file not shown.
Oops, something went wrong.

0 comments on commit 2f6df2c

Please sign in to comment.