-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d0c399d
Showing
76 changed files
with
1,995 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
lib-cov | ||
*.seed | ||
*.log | ||
*.csv | ||
*.dat | ||
*.out | ||
*.pid | ||
*.gz | ||
|
||
pids | ||
logs | ||
results | ||
|
||
npm-debug.log | ||
node_modules | ||
tmp | ||
*.sublime-* | ||
*.sw[op] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"boss": true, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"eqnull": true, | ||
"immed": true, | ||
"latedef": true, | ||
"newcap": true, | ||
"noarg": true, | ||
"node": true, | ||
"sub": true, | ||
"undef": true, | ||
"unused": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
/* | ||
* grunt-readme | ||
* https://github.com/assemble/grunt-readme | ||
* | ||
* Copyright (c) 2014 Ain Tohvri | ||
* Licensed under the GPL license. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
module.exports = function(grunt) { | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg : grunt.file.readJSON('package.json'), | ||
|
||
jshint: { | ||
all: ['Gruntfile.js', 'test/*.js', '*.js'], | ||
options: { | ||
jshintrc: '.jshintrc' | ||
} | ||
}, | ||
|
||
title: 'this title is from the config (root context).', | ||
description: 'this description is from the config (root context).', | ||
|
||
// Pull down a list of repos from Github. | ||
assemble: { | ||
options: { | ||
flatten: true, | ||
subtitle: 'This subtitle is a custom property in the Assemble options', | ||
|
||
// Ensure that assets path calculates properly | ||
assets: 'test/assets', | ||
data: ['test/fixtures/data/*.json'], | ||
partials: ['test/fixtures/includes/*.hbs'], | ||
layout: 'test/fixtures/layouts/default.hbs', | ||
helpers: ['index.js'], | ||
}, | ||
site_data: { | ||
options: { | ||
site: '<%= site %>' | ||
}, | ||
files: { | ||
'test/actual/site_data/': ['test/fixtures/*.{hbs,md}'] | ||
} | ||
}, | ||
options_context: { | ||
options: { | ||
title: 'this title is from the options.', | ||
description: 'this description is from the options.' | ||
}, | ||
files: { | ||
'test/actual/options_data/': ['test/fixtures/*.{hbs,md}'] | ||
} | ||
}, | ||
root_context: { | ||
files: { | ||
'test/actual/root_context/': ['test/fixtures/*.{hbs,md}'] | ||
} | ||
} | ||
}, | ||
|
||
// Pull down a list of repos from Github. | ||
repos: { | ||
helpers: { | ||
options: { | ||
username: 'helpers', | ||
include: ['handlebars-helper', 'partial'], | ||
exclude: ['examples'] | ||
}, | ||
files: { | ||
'docs/helpers.json': ['repos?page=1&per_page=100'] | ||
} | ||
} | ||
}, | ||
|
||
// Use helpers.json for context to generate list | ||
// of related repos | ||
readme: { | ||
options: { | ||
metadata: ['docs/helpers.json'] | ||
} | ||
}, | ||
|
||
clean: { | ||
test: ['test/actual/**/*.html'] | ||
} | ||
}); | ||
|
||
// These plugins provide necessary tasks. | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-clean'); | ||
grunt.loadNpmTasks('grunt-readme'); | ||
grunt.loadNpmTasks('grunt-repos'); | ||
grunt.loadNpmTasks('grunt-sync-pkg'); | ||
grunt.loadNpmTasks('assemble'); | ||
|
||
// Docs | ||
grunt.registerTask('docs', ['repos', 'readme', 'sync']); | ||
|
||
// By default, lint and run all tests. | ||
grunt.registerTask('default', ['jshint', 'clean', 'assemble', 'docs']); | ||
|
||
}; |
Oops, something went wrong.