Skip to content

Instantly share code, notes, and snippets.

@ChrisWren
Created May 13, 2014 05:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisWren/f2b2bd9fb7ce99b6496c to your computer and use it in GitHub Desktop.
Save ChrisWren/f2b2bd9fb7ce99b6496c to your computer and use it in GitHub Desktop.
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,
8 verbose parsed url auth: null,
8 verbose parsed url host: null,
8 verbose parsed url port: null,
8 verbose parsed url hostname: null,
8 verbose parsed url hash: null,
8 verbose parsed url search: null,
8 verbose parsed url query: null,
8 verbose parsed url pathname: '.',
8 verbose parsed url path: '.',
8 verbose parsed url href: '.' }
9 silly lockFile 3a52ce78- .
10 verbose lock . /Users/christopherwren/.npm/3a52ce78-.lock
11 verbose tar pack [ '/var/folders/df/_m1_3w794cd14v8vtl10sx1w0000gn/T/npm-83379-HGurc6h_/1399960297882-0.17486420436762273/tmp.tgz',
11 verbose tar pack '.' ]
12 verbose tarball /var/folders/df/_m1_3w794cd14v8vtl10sx1w0000gn/T/npm-83379-HGurc6h_/1399960297882-0.17486420436762273/tmp.tgz
13 verbose folder .
14 info prepublish grunt-pages@0.11.1
15 silly lockFile 1f1177db-tar tar://.
16 verbose lock tar://. /Users/christopherwren/.npm/1f1177db-tar.lock
17 silly lockFile 3fc65a66-7882-0-17486420436762273-tmp-tgz tar:///var/folders/df/_m1_3w794cd14v8vtl10sx1w0000gn/T/npm-83379-HGurc6h_/1399960297882-0.17486420436762273/tmp.tgz
18 verbose lock tar:///var/folders/df/_m1_3w794cd14v8vtl10sx1w0000gn/T/npm-83379-HGurc6h_/1399960297882-0.17486420436762273/tmp.tgz /Users/christopherwren/.npm/3fc65a66-7882-0-17486420436762273-tmp-tgz.lock
19 silly lockFile 1f1177db-tar tar://.
20 silly lockFile 1f1177db-tar tar://.
21 silly lockFile 3fc65a66-7882-0-17486420436762273-tmp-tgz tar:///var/folders/df/_m1_3w794cd14v8vtl10sx1w0000gn/T/npm-83379-HGurc6h_/1399960297882-0.17486420436762273/tmp.tgz
22 silly lockFile 3fc65a66-7882-0-17486420436762273-tmp-tgz tar:///var/folders/df/_m1_3w794cd14v8vtl10sx1w0000gn/T/npm-83379-HGurc6h_/1399960297882-0.17486420436762273/tmp.tgz
23 verbose tar unpack /var/folders/df/_m1_3w794cd14v8vtl10sx1w0000gn/T/npm-83379-HGurc6h_/1399960297882-0.17486420436762273/tmp.tgz
24 silly lockFile 56001fd1-n-npm-grunt-pages-0-11-1-package tar:///Users/christopherwren/.npm/grunt-pages/0.11.1/package
25 verbose lock tar:///Users/christopherwren/.npm/grunt-pages/0.11.1/package /Users/christopherwren/.npm/56001fd1-n-npm-grunt-pages-0-11-1-package.lock
26 silly lockFile 3fc65a66-7882-0-17486420436762273-tmp-tgz tar:///var/folders/df/_m1_3w794cd14v8vtl10sx1w0000gn/T/npm-83379-HGurc6h_/1399960297882-0.17486420436762273/tmp.tgz
27 verbose lock tar:///var/folders/df/_m1_3w794cd14v8vtl10sx1w0000gn/T/npm-83379-HGurc6h_/1399960297882-0.17486420436762273/tmp.tgz /Users/christopherwren/.npm/3fc65a66-7882-0-17486420436762273-tmp-tgz.lock
28 silly gunzTarPerm modes [ '755', '644' ]
29 silly gunzTarPerm extractEntry package.json
30 silly gunzTarPerm extractEntry .npmignore
31 silly gunzTarPerm extractEntry README.md
32 silly gunzTarPerm extractEntry LICENSE
33 silly gunzTarPerm extractEntry tasks/pages.js
34 silly lockFile 56001fd1-n-npm-grunt-pages-0-11-1-package tar:///Users/christopherwren/.npm/grunt-pages/0.11.1/package
35 silly lockFile 56001fd1-n-npm-grunt-pages-0-11-1-package tar:///Users/christopherwren/.npm/grunt-pages/0.11.1/package
36 silly lockFile 3fc65a66-7882-0-17486420436762273-tmp-tgz tar:///var/folders/df/_m1_3w794cd14v8vtl10sx1w0000gn/T/npm-83379-HGurc6h_/1399960297882-0.17486420436762273/tmp.tgz
37 silly lockFile 3fc65a66-7882-0-17486420436762273-tmp-tgz tar:///var/folders/df/_m1_3w794cd14v8vtl10sx1w0000gn/T/npm-83379-HGurc6h_/1399960297882-0.17486420436762273/tmp.tgz
38 silly lockFile 3a52ce78- .
39 silly lockFile 3a52ce78- .
40 silly publish { name: 'grunt-pages',
40 silly publish version: '0.11.1',
40 silly publish description: 'Grunt task to create pages using markdown and templates',
40 silly publish main: 'Gruntfile.js',
40 silly publish dependencies:
40 silly publish { jade: '~1.0.0',
40 silly publish ejs: '~0.8.4',
40 silly publish colors: '~0.6.0-1',
40 silly publish 'pygmentize-bundled': '~2.1.0',
40 silly publish marked: '~0.3.0',
40 silly publish rss: '~0.2.0',
40 silly publish lodash: '~2.4.1',
40 silly publish 'node-fs': '~0.1.7',
40 silly publish handlebars: '~1.3.0' },
40 silly publish devDependencies:
40 silly publish { grunt: '~0.4.1',
40 silly publish 'grunt-simple-mocha': '~0.4.0',
40 silly publish 'grunt-contrib-jshint': '^0.10.0',
40 silly publish 'grunt-contrib-connect': '~0.3.0',
40 silly publish 'grunt-contrib-watch': '~0.4.4',
40 silly publish 'grunt-concurrent': '~0.3.1',
40 silly publish matchdep: '~0.1.2',
40 silly publish 'grunt-contrib-copy': '~0.4.1',
40 silly publish 'grunt-contrib-clean': '~0.4.1',
40 silly publish should: '~1.2.2',
40 silly publish sinon: '~1.7.3',
40 silly publish 'grunt-release': '~0.4.0',
40 silly publish 'grunt-mdlint': '0.0.0',
40 silly publish 'grunt-node-inspector': '~0.1.0',
40 silly publish 'grunt-shell': '~0.4.0',
40 silly publish q: '~0.9.7',
40 silly publish 'pygmentize-bundled': '^2.1.0' },
40 silly publish peerDependencies: { grunt: '~0.4.1' },
40 silly publish scripts: { test: 'grunt test' },
40 silly publish repository:
40 silly publish { type: 'git',
40 silly publish url: 'https://github.com/CabinJS/grunt-pages.git' },
40 silly publish keywords:
40 silly publish [ 'grunt',
40 silly publish 'gruntplugin',
40 silly publish 'static site generator',
40 silly publish 'workflow',
40 silly publish 'jekyll',
40 silly publish 'blog' ],
40 silly publish contributors:
40 silly publish [ { name: 'Larry Davis', email: 'lazd@lazd.net' },
40 silly publish { name: 'Colin Wren', email: 'colin@cawren.com' },
40 silly publish { name: 'Justin Helmer', email: 'jhelmer25@gmail.com' } ],
40 silly publish author: { name: 'ChrisWren' },
40 silly publish license: 'MIT',
40 silly publish readme: '# grunt-pages\n> Grunt task to create pages using markdown and templates\n\n[![NPM version](https://badge.fury.io/js/grunt-pages.png)](http://badge.fury.io/js/grunt-pages)\n[![Dependency Status](https://david-dm.org/CabinJS/grunt-pages.png)](https://david-dm.org/CabinJS/grunt-pages)\n[![Travis Status](https://travis-ci.org/CabinJS/grunt-pages.png?branch=master)](https://travis-ci.org/CabinJS/grunt-pages)\n\n## Prerequisites\nThis Grunt task uses [pygments](http://pygments.org/) which requires [Python](http://www.python.org/getit/) to be installed.\n\n## Getting Started\nIf you haven\'t used Grunt before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you\'re familiar with that process, install this plugin with this command:\n```shell\nnpm install grunt-pages --save-dev\n```\n\nThen add this line to your project\'s `Gruntfile.js` Gruntfile:\n\n```javascript\ngrunt.loadNpmTasks(\'grunt-pages\');\n```\n\n## Documentation\n\n### Sample config\nHere is a sample config to create a blog using grunt-pages:\n```js\npages: {\n options: {\n pageSrc: \'src/pages\'\n },\n posts: {\n src: \'posts\',\n dest: \'dev\',\n layout: \'src/layouts/post.jade\',\n url: \'posts/:title/\'\n }\n}\n```\n\n### Authoring posts\n\n#### Post Format\nPosts are written in markdown and include a metadata section at the top to provide information about the post. The metadata format is a JavaScript Object, and here is an example:\n\n```js\n{\n title: \'Blogging in my Cabin\',\n date: \'2014-1-1\',\n author: \'Firstname Lastname\'\n}\n```\n\nThe only property that is not interpreted literally is the `date`. If it is specified, it is used as a `dateString` when constructing a [Date object](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date) in JavaScript, and must be in a [parseable format](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/parse). If unspecified, the post\'s date will be the result of constructing a Date object using the post\'s last modified time.\n\n#### Syntax Highlighting\nFor adding code to your posts, grunt-pages has [GitHub flavoured markdown](https://help.github.com/articles/github-flavored-markdown) and syntax highlighting using [pygments](http://pygments.org/).\n\n#### Draft Posts\nTo make a post a draft when deploying your site, simply prefix its filename with a `_`. These posts will not be rendered or available in list pages.\n\n### Styling Headers\n\nBy default, grunt-pages generates header tags that include nested anchor tags with span\'s to allow for header section linking. Here is an example of the HTML that the above header would generate:\n```html\n<h3>\n <a name="styling-headers" class="anchor" href="#styling-headers">\n <span class="header-link"></span>\n </a>\n "Styling Headers"\n</h3>\n```\nThe generated markup follows the same format as GitHub README\'s and it is recommended to reference [Cabin theme](http://www.cabinjs.com/#themes)\'s styling when trying to create header linking. Note that you can override this by implementing [`options.markedOptions.renderer.heading`](#markedoptions).\n\n### Required properties\n\n#### src\nType: `string`\n\nThe directory where the source posts are located.\n\n#### dest\nType: `string`\n\nThe directory where pages are generated.\n\n#### layout\nType: `string`\n\nThe [jade](https://github.com/visionmedia/jade), [EJS](https://github.com/visionmedia/ejs), or [Handlebars](http://handlebarsjs.com/) layout template used for each post. The post metadata will be stored in a `post` object to be rendered in the layout template. Posts also have access to other posts via the `posts` array, and know about their `currentIndex` within the array so that they can optionally create navigation to nearby posts. [Here](https://github.com/CabinJS/grunt-pages/blob/master/test/fixtures/integration/input/target2/layouts/post.jade) is an example post layout template.\n\n##### Handlebars partials\n\nHandlebars partials can be specified using the `options.partials` property. This allows you to specify a file glob of partials to use in your layout and page templates. The partials are available as the basename of the partial file, so a file with the path `src/layouts/partials/nav.hbs` would be referenced as `{{> nav}}` Here is an example config which shows how to configure Handlebars partials:\n\n```js\ntarget4: {\n src: \'posts\',\n dest: \'dest4\',\n layout: \'src/layouts/post.hbs\',\n url: \'blog/posts/:title/\',\n options: {\n partials: \'src/layouts/partials/**/*.hbs\'\n }\n}\n```\n\n**Note: you can run grunt-pages with the `--debug` flag set to see all the data passed to templates for rendering**.\n\n#### url\nType: `string || function`\n\nThe URL format of each post. When specified as a string, the `url` takes variables as parameters using the `:variable` syntax. Variables specified in the `url` are required in each post\'s metadata. URLs with a trailing `/` will generate posts as index.html files inside of the URL\'s folder.\n\nYou can also specify the `url` as a function which receives a post\'s metadata and grunt options object and returns the post\'s url. Note that the post metadata also includes the `sourcePath` of the post and `lastModified` time. This is used to maintain legacy post urls when migrating from another static site tool and to account for post titles that have all special characters(foreign languages).\n\nHere is an example config which demonstrates how to implement the `url` as a function:\n\n```js\npages: {\n customURL: {\n src: \'posts\',\n dest: \'dist\',\n url: function (post, options) {\n // use post source path and apply default post url formatting\n return options.formatPostUrl(post.sourcePath.replace(\'.md\', \'/\'));\n }\n }\n}\n```\n\nParsed posts are cached in the `.grunt/grunt-pages` folder based on the `lastModified` time to improve the task run time.\n\n*Note: posts are not re-compiled when the grunt config changes, you can either run the task with the `--no-cache` flag or delete the `.grunt/grunt-pages` folder to force all posts to be re-built.*\n\n### Options\n\n#### pageSrc\nType: `string`\n\nThe folder where the jade, EJS, or Handlebars source pages of your website are located. These pages have access to each post\'s `content` and metadata properties via a `posts` array. Additionally, pages have access to their own filename(without extension) via the `currentPage` variable to optionally display it differently when linking to pages. All of the files in this folder are generated in the `dest` folder maintaining the same relative path from `options.pageSrc`.\n\n#### data\nType: `object || string`\n\nA JavaScript object or the location of a JSON file which is passed as data to templates. This option is primarily used to specify config that is shared across all pages. It is available in page and post templates via the `data` object.\n\n#### markedOptions\nType: `function || object`\n\nYou can configure how [marked](https://github.com/chjj/marked) parses your markdown by overriding options here. Check out the [marked options](https://github.com/chjj/marked#options-1) to see what you can alter. When `options.markedOptions` is implemented as a function, it receives `marked` as an argument so you can instantiate `marked.Renderer` and override particular properties.\n\n*Note: all marked renderer methods are extened to have access to the current `post` as an extra argument.*\n\n#### rss\nType: `object`\n\nAn object containing config for RSS feed generation.\n\nAll [options accepted by dylang/node-rss](https://github.com/dylang/node-rss#feed-options) are supported, with notable options listed below.\n\nHere is a sample config to create a blog with an RSS feed using grunt-pages:\n```js\npages: {\n options: {\n pageSrc: \'src/pages\',\n rss: {\n title: \'Chris Wren\\\'s Blog\',\n description: \'A blog about code.\',\n url: \'http://chrisawren.com\'\n }\n },\n posts: {\n src: \'posts\',\n dest: \'dev\',\n layout: \'src/layouts/post.jade\',\n url: \'posts/:title/\'\n }\n}\n```\n\n#### Required RSS properties\n\n##### rss.url\nType: `string`\n\nThe URL of your site.\n\n##### rss.title\nType: `string`\n\nThe title of the feed.\n\n##### rss.description\nType: `string`\n\nShort description of the feed.\n\n#### Optional RSS properties\n\n##### rss.numPosts\nType: `number` Default: `10`\n\nNumber of posts to output in the RSS feed. This is used to avoid hitting a max file size limit.\n\n##### rss.author\nType: `string`\n\nThe feed owner. Also used as `managingEditor` and `webMaster` if those options are not specified.\n\n##### rss.path\nType: `string`\n\nThe path of the file to store the RSS XML in. This is specific to grunt-pages and is not part of dylang/node-rss.\n\n#### pagination\nType: `object || array`\n\nObject or an array of objects containing config for pagination. This option generates paginated list pages which each contain a specified group of posts.\n\n### Config using the default pagination scheme\n\n```js\npages: {\n options: {\n pagination: {\n postsPerPage: 3,\n listPage: \'src/layouts/listPage.jade\'\n }\n },\n posts: {\n src: \'posts\',\n dest: \'dev\',\n layout: \'src/layouts/post.jade\',\n url: \'posts/:title/\'\n }\n}\n```\n\nThis config will generate paginated list pages by grouping the specified number of posts per page and using the default url scheme specified in the [pagination.url](#paginationurl) parameter.\n\n##### pagination.postsPerPage\nType: `number`\n\nThe number of posts each list page will contain.\n\n##### pagination.listPage\nType: `string`\n\nThe location of the layout template which is used for each list page. This page will not be rendered as a regular page if `options.pageSrc` is specified. Instead it will be rendered as the root paginated list page with the first post group instead of all the posts. [Here](https://github.com/CabinJS/grunt-pages/blob/master/test/fixtures/integration/input/target2/pages/blog/index.jade) is a sample `options.pagination.listPage` template. This template has access to the following variables:\n\n###### posts\nType: `array` of `object`s\n\nAn array of post objects assigned to this page which each contain the post `content` and other metadata properties of the post.\n\n###### pages\nType: `array` of `object`s\n\nAn array of page objects which each contain a `url` and `id` property.\n\n###### currentIndex\nType: `number`\n\nA reference to the index of the list page currently being rendered. This can be used to display the current page differently than the rest of the pages in a list, or to display links to the surrounding pages based on their position relative to the `currentIndex`.\n\n##### pagination.url\nType: `string` Default: `pages/:id/`\n\nThe location of the generated list pages relative to the `options.pagination.listPage`. You can override this property to have a custom url scheme for list pages. You **must** have a `:id` variable in your url scheme which will be replaced by the page\'s id.\n\n### Config using a custom pagination scheme\n\nTo paginate in a custom manor, you can use the following parameter:\n\n##### pagination.getPostGroups\nType: `function`\n\nDefault: `Group by options.pagination.postsPerPage`\n\n```js\nfunction (postCollection, pagination) {\nvar postsPerPage = pagination.postsPerPage;\n var postGroups = [];\n var postGroup;\n var i = 0;\n\n while ((postGroup = postCollection.slice(i * postsPerPage, (i + 1) * postsPerPage)).length) {\n postGroups.push({\n posts: postGroup,\n id: i\n });\n i++;\n }\n return postGroups;\n}\n```\n\nThis function returns an array of post groups to be rendered as list pages. It takes the `posts` array and `options.pagination` config object as parameters and is expected to return an array of postGroup objects which each contain the `id` of the group(to be used in the url) and the array of `posts` in the following format:\n\n```js\n[{\n id: \'javascript\',\n posts: [{\n title: \'Front end web development\',\n tags: [\'javascript\', \'css\'],\n content: \'...\'\n }, {\n title: \'Backbone.js\',\n tags: [\'javascript\'],\n content: \'...\'\n }]\n}, {\n id: \'css\',\n posts: [{\n title: \'Style and Sass\',\n tags: [\'css\'],\n content: \'...\'\n },{\n title: \'Front end web development\',\n tags: [\'javascript\', \'css\'],\n content: \'...\'\n }]\n}];\n```\n\nHere is a sample pagination config which paginates using the `tags` property of each post:\n\n```js\npages: {\n options: {\n pagination: {\n listPage: \'src/layouts/tagListPage.jade\',\n getPostGroups: function (posts) {\n var postGroups = {};\n\n posts.forEach(function (post) {\n post.tags.forEach(function (tag) {\n tag = tag.toLowerCase();\n if (postGroups[tag]) {\n postGroups[tag].posts.push(post);\n } else {\n postGroups[tag] = {\n posts: [post]\n };\n }\n });\n });\n\n return grunt.util._.map(postGroups, function (postGroup, id) {\n return {\n id: id,\n posts: postGroup.posts\n };\n });\n }\n }\n },\n posts: {\n src: \'src/posts\',\n dest: \'dev\',\n layout: \'src/layouts/post.jade\',\n url: \'posts/:title\'\n }\n}\n```\n\n#### sortFunction\nType: `function`\n\nDefault: Sort by `date` descending\n\n```js\nfunction (a, b) {\n return b.date - a.date;\n}\n```\n\nA compare function used by [Array.sort](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) to sort posts.\n\n#### formatPostUrl\nType: `function`\n\nDefault:\n```js\nfunction (url) {\n return url\n .toLowerCase() // change everything to lowercase\n .replace(/^\\s+|\\s+$/g, \'\') // trim leading and trailing spaces\n .replace(/[_|\\s|\\.]+/g, \'-\') // change all spaces, periods and underscores to a hyphen\n .replace(/[^a-z\\u0400-\\u04FF0-9-]+/g, \'\') // remove all non-cyrillic, non-numeric characters except the hyphen\n .replace(/[-]+/g, \'-\') // replace multiple instances of the hyphen with a single instance\n .replace(/^-+|-+$/g, \'\'); // trim leading and trailing hyphens\n}\n```\n\nA function that takes a `url` as a parameter and returns a formatted URL string. This is primarily used to remove special characters and replace whitespace.\n\n#### metadataValidator\nType: `function`\n\nA function that takes an array of posts as an argument and determines if the supplied metadata is valid for those posts. This is helpful in catching issues when metadata is forgotten or invalid like having two posts with the same `index` property when displaying posts in a list.\n\n#### templateEngine\nType: `string`\n\nThe file extension of the template engine to be used. This option filters template files in the `options.pageSrc` folder when developing a grunt-pages configuration for multiple template engines.\n\n# Changelog\n\n**0.11.1** - Fixed leading `/` issue for post URLs. Added `post.sourcePath` and `post.lastModified` to template data. Added current `post` as an extra argument to all marked renderer methods. Added `metadataValidator` option to ensure metadata is proper for all posts. Added `--no-cache` flag to invalidate caching when altering how posts are parsed.\n\n**0.11.0** - Fixed required RSS properties, now correctly matching the [RSS spec](http://cyber.law.harvard.edu/rss/rss.html), thanks to [@rogeriopvl](https://github.com/rogeriopvl). Added [Handlebars support with partials](https://github.com/CabinJS/grunt-pages#handlebars-partials) thanks to [@thomasboyt](https://github.com/thomasboyt). Updated to marked ~0.3.0 now supporting [`options.markedOptions`](#markedoptions) to configure any [marked options](https://github.com/chjj/marked#options-1) that you desire.\n\n**Breaking changes:**\n- `options.rss.description` is now required, and `options.rss.author` is not.\n- Updated to jade 1.0, check [here](https://github.com/visionmedia/jade/blob/master/History.md#100--2013-12-22) for the changelog.\n\n**0.10.1** - [`url`](#url) can now be specified as a function to allow for foreign language post titles and to support legacy URLs for those migrating to grunt-pages from another static site tool.\n\n**0.10.0** - Added [`options.rss.numPosts`](#rssnumposts) option to determine the number of posts included in the RSS feed, defaulting to 10. Header links now use the same URL formatting function as post URLs.\n\n**Breaking changes:**\n\n- The generated RSS feed now uses the first 10 posts(after sorting) instead of all of them to prevent a max file size error in RSS readers.\n- Header links now use the same URL formatting function as post URLs.\n\n**0.9.1** - Fixed bug where the `options.pagination.listPage` wasn\'t properly ignored for certain filenames.\n\n**0.9.0** - Posts now have access to their `currentIndex` within the `posts` array for navigating between nearby posts. Parsed posts are now cached in the `.grunt/grunt-pages` folder instead of `node_modules/grunt-pages` to provide more visibility and follow Grunt conventions. Header anchor tags now have correct attribute spacing thanks to [@gmarty](https://github.com/gmarty). Improved template debugging by printing data passed to template when an error is encountered. Reduced `--debug` output for post content to allow for easier debugging. \n\n**Breaking changes:**\n\n- Parsed posts are now cached in the `.grunt/grunt-pages` folder instead of `node_modules/grunt-pages`.\n- Jade template output is no longer pretty printed unless `--debug` is specified.\n- Posts no longer have access to the post `dest` property which was mistakenly leaked to the template.\n\n**0.8.3** - Posts without the `date` specified now default to using the post\'s last modified time as the date thanks to [@danburzo](https://github.com/danburzo). Fixed bug where draft posts in nested folders weren\'t ignored properly.\n\n**0.8.2** - Temporarily reverted bug fix as caching issues resulted from code change.\n\n**0.8.1** - Fixed bug where draft posts in nested folders weren\'t ignored properly. \n\n**0.8.0** - Header tags are now rendered with a child span and anchor tag for linking into post sections. Removed support for YAML metadata. Added more robust metadata extraction for JavaScript object metadata. Added `--debug` flag to debug template data rendering. Standardized error logging to use the same format. \n\n**Breaking changes:**\n\n- Header tags are now rendered with a nested span and anchor tag for linking into post sections instead of being wrapped with anchor tags.\n- No more YAML metadata in posts.\n\n**0.7.2** - Added support for Python 3 due to updating of [node-pygmentize-bundled](https://github.com/rvagg/node-pygmentize-bundled/) dependency. \n\n**0.7.1** - Wrong node_modules were pushed to npm. Pushed correct dependencies listed in package.json to fix bug. \n\n**0.7.0** - See breaking changes below. \n\n**Breaking changes:**\n\n- Pagination urls now have trailing `index.html` sections removed by default. The pagination url for a root list page is now `\'\'` instead of `/` to allow for [base](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base) tags. Updated default [pagination.url](#paginationurl) to `pages/:id/` following new scheme that doesn\'t use `index.html`\'s.\n\n**0.6.1** - Removed accidental logging pushed to npm.\n\n**0.6.0** - Updated pagination urls to not have a leading `/`.\n\n**Breaking changes:**\n\n- Pagination urls will no longer have a leading `/` by default. This is a bug fix and the implementation now matches what is documented in the [pagination.url](#paginationurl) API.\n\n**0.5.0** - Updated default post url regex to capture more cases thanks to [@justinhelmer](https://github.com/justinhelmer). Fixed bugs regarding normalizing the post dest and ignoring draft posts thanks to [@justinhelmer](https://github.com/justinhelmer).\n\n**Breaking changes:**\n\n- Post urls will potentially be altered because of the new regex. To update, you will have to provide redirects to altered post urls if you need to maintain them i.e. social media share buttons.\n\n**0.4.1** - `.html` excluded from post url :variable replacement.\n\n**0.4.0** - Altered post url to *not* automatically add `.html` to urls.\n\n**Breaking changes:**\n\n- Post urls will now require .html to be listed explicitly to be in the url. The recommended convention is to put each post in its own folder, like `posts/:title/` so that a post with the title `hello` would be generated at posts/hello/index.html.\n\n**0.3.3** - Added lodash as a hard dependency.\n\n**0.3.2** - Added post caching for unmodified posts to speed up task.\n\n**0.3.1** - Added [rss option](#rss) to generates feeds thanks to [@lazd](https://github.com/lazd).\n\n**0.3.0** - Altered pagination API to allow for custom pagination schemes.\n\n**Breaking changes:**\n\n- Paginated pages no longer have a `currentPage` as a property of the current page in the `pages` array, rather it is exposed as a global variable called `currentIndex` for easier accessibility.\n\n**0.2.5** - Fixed metadata parsing bug, added `formatPostUrl` option & added `pagination.url` option.\n\n**0.2.4** - Added `sortFunction` option & allowed for `data` option to take an object as a parameter.\n\n**0.2.3** - Ignored dotfiles, added error reporting for incorrect data JSON files, and added new header anchor link format.\n\n**0.2.2** - Used forked version of marked to enable header anchor links.\n\n**0.2.1** - Added support for `_` prefixed draft posts and pages now receive their filename as a `currentPage` variable.\n\n**0.2.0** - Fixed `templateEngine` bug, changed `pagination` and `data` api.\n\n**0.1.0** - Added `data` option, added `templateEngine` option, added `pagination` option, and changed post data format to be a `post` object rather than global variables for each post property.\n\n**0.0.0** - Initial release.\n',
40 silly publish readmeFilename: 'README.md',
40 silly publish bugs: { url: 'https://github.com/CabinJS/grunt-pages/issues' },
40 silly publish homepage: 'https://github.com/CabinJS/grunt-pages',
40 silly publish _id: 'grunt-pages@0.11.1',
40 silly publish _shasum: '750113822874896b075aaaf554171ccc988160ce',
40 silly publish _from: '.' }
41 verbose url raw grunt-pages
42 verbose url resolving [ 'https://registry.npmjs.org/', './grunt-pages' ]
43 verbose url resolved https://registry.npmjs.org/grunt-pages
44 info trying registry request attempt 1 at 22:51:37
45 http PUT https://registry.npmjs.org/grunt-pages
46 http 500 https://registry.npmjs.org/grunt-pages
47 verbose bad json An internal server error occurred. Please try again later.
48 error registry error parsing json
49 info retry will retry, error on last attempt: SyntaxError: Unexpected token A
49 info retry An internal server error occurred. Please try again later.
50 info trying registry request attempt 2 at 22:51:48
51 http PUT https://registry.npmjs.org/grunt-pages
52 http 503 https://registry.npmjs.org/grunt-pages
53 verbose bad json <?xml version="1.0" encoding="utf-8"?>
53 verbose bad json <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
53 verbose bad json "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
53 verbose bad json <html>
53 verbose bad json <head>
53 verbose bad json <title>503 backend write error</title>
53 verbose bad json </head>
53 verbose bad json <body>
53 verbose bad json <h1>Error 503 backend write error</h1>
53 verbose bad json <p>backend write error</p>
53 verbose bad json <h3>Guru Meditation:</h3>
53 verbose bad json <p>XID: 43549568</p>
53 verbose bad json <hr>
53 verbose bad json <p>Varnish cache server</p>
53 verbose bad json </body>
53 verbose bad json </html>
54 error registry error parsing json
55 info retry will retry, error on last attempt: SyntaxError: Unexpected token <
55 info retry
55 info retry <?xml version="1.0" encoding="utf-8"?>
55 info retry <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
55 info retry "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
55 info retry <html>
55 info retry <head>
55 info retry <title>503 backend write error</title>
55 info retry </head>
55 info retry <body>
55 info retry <h1>Error 503 backend write error</h1>
55 info retry <p>backend write error</p>
55 info retry <h3>Guru Meditation:</h3>
55 info retry <p>XID: 43549568</p>
55 info retry <hr>
55 info retry <p>Varnish cache server</p>
55 info retry </body>
55 info retry </html>
56 info trying registry request attempt 3 at 22:52:49
57 http PUT https://registry.npmjs.org/grunt-pages
58 http 500 https://registry.npmjs.org/grunt-pages
59 verbose bad json An internal server error occurred. Please try again later.
60 error registry error parsing json
61 verbose headers { date: 'Tue, 13 May 2014 05:52:56 GMT',
61 verbose headers server: 'Apache',
61 verbose headers 'content-type': 'text/html',
61 verbose headers expires: 'now',
61 verbose headers pragma: 'no-cache',
61 verbose headers 'cache-control': 'max-age=0',
61 verbose headers 'content-length': '58',
61 verbose headers 'accept-ranges': 'bytes',
61 verbose headers via: '1.1 varnish',
61 verbose headers 'x-served-by': 'cache-c48-CHI',
61 verbose headers 'x-cache': 'MISS',
61 verbose headers 'x-cache-hits': '0',
61 verbose headers 'x-timer': 'S1399960376.020198345,VS0,VE227',
61 verbose headers connection: 'close' }
62 error publish Failed PUT 500
63 error SyntaxError: Unexpected token A
63 error An internal server error occurred. Please try again later.
63 error at Object.parse (native)
63 error at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:239:23)
63 error at Request._callback (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:211:65)
63 error at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:123:22)
63 error at Request.EventEmitter.emit (events.js:98:17)
63 error at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:893:14)
63 error at Request.EventEmitter.emit (events.js:117:20)
63 error at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:844:12)
63 error at IncomingMessage.EventEmitter.emit (events.js:117:20)
63 error at _stream_readable.js:920:16
64 error If you need help, you may report this *entire* log,
64 error including the npm and node versions, at:
64 error <http://github.com/npm/npm/issues>
65 error System Darwin 13.1.0
66 error command "node" "/usr/local/bin/npm" "publish"
67 error cwd /Users/christopherwren/github/grunt-pages
68 error node -v v0.10.26
69 error npm -v 1.4.10
70 error type unexpected_token
71 verbose exit [ 1, true ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment