Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Wren ChrisWren

View GitHub Profile
@ChrisWren
ChrisWren / Gruntfile.js
Created Jun 15, 2013
yeoman webapp Gruntfile
View Gruntfile.js
'use strict';
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to match all subfolders:
@ChrisWren
ChrisWren / Gruntfile.js
Created Dec 29, 2013
Cabin Gruntfile for deploying to a subdir like /blog/
View Gruntfile.js
module.exports = function (grunt) {
grunt.initConfig({
pages: {
posts: {
src: 'posts',
dest: 'dist/blog',
layout: 'src/layouts/post.jade',
url: 'posts/:title/',
options: {
@ChrisWren
ChrisWren / npm-debug.log
Created May 13, 2014
npm-debug.log when publishing grunt-pages
View npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'publish' ]
2 info using npm@1.4.10
3 info using node@v0.10.26
4 verbose node symlink /usr/local/bin/node
5 verbose publish [ '.' ]
6 verbose cache add [ '.', null ]
7 verbose cache add name=undefined spec="." args=[".",null]
8 verbose parsed url { protocol: null,
8 verbose parsed url slashes: null,
You can’t perform that action at this time.