Skip to content

Instantly share code, notes, and snippets.

@ChrisWren
ChrisWren / Gruntfile.js
Created June 15, 2013 03:31
yeoman webapp Gruntfile
'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 December 29, 2013 20:42
Cabin Gruntfile for deploying to a subdir like /blog/
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 05:54
npm-debug.log when publishing grunt-pages
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,