forked from googlearchive/polymer-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
35 lines (32 loc) · 888 Bytes
/
gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
yuidoc: {
compile: {
name: '<%= pkg.name %>',
description: '<%= pkg.description %>',
version: '<%= pkg.version %>',
url: '<%= pkg.homepage %>',
options: {
exclude: 'docs',
extension: '.js,.html',
paths: '.',
outdir: 'docs',
linkNatives: 'true',
tabtospace: 2,
themedir: 'tools/doc/themes/polymerase'
}
}
}
});
// plugins
grunt.loadNpmTasks('grunt-contrib-yuidoc');
// tasks
grunt.registerTask('default', ['yuidoc']);
grunt.registerTask('docs', ['yuidoc']);
};