Skip to content

Commit

Permalink
Add initial simplistic version
Browse files Browse the repository at this point in the history
  • Loading branch information
ain committed May 28, 2014
0 parents commit d0c399d
Show file tree
Hide file tree
Showing 76 changed files with 1,995 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitignore
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]
14 changes: 14 additions & 0 deletions .jshintrc
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
}
105 changes: 105 additions & 0 deletions Gruntfile.js
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']);

};
Loading

0 comments on commit d0c399d

Please sign in to comment.