Added scratchy tasks and config.js docs

This commit is contained in:
Rashid Khan
2013-11-26 07:38:16 -07:00
parent e73ea4823d
commit 22993c46a5
8 changed files with 67 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
// Lint and build CSS
module.exports = function(grunt) {
grunt.registerTask('default', ['jshint:source', 'less:src']);
grunt.registerTask('default', ['jshint:source', 'less:src', 'docs']);
};

4
tasks/docs_task.js Normal file
View File

@@ -0,0 +1,4 @@
// Lint and build CSS
module.exports = function(grunt) {
grunt.registerTask('docs', ['clean:docs', 'scratchy:docs']);
};

View File

@@ -2,5 +2,6 @@ module.exports = function(config) {
return {
on_start: ['<%= destDir %>', '<%= tempDir %>'],
temp: ['<%= tempDir %>'],
docs: ['<%= docsDir %>']
};
};

12
tasks/options/scratchy.js Normal file
View File

@@ -0,0 +1,12 @@
module.exports = function(config) {
return {
docs: {
src: ['src/app/**/*.js','src/config.js'],
dest: config.docsDir,
options: {
unslash: true,
extension: '.asciidoc'
}
}
}
};