forked from Ziv-Barber/officegen
-
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.
Start cleaning the code and to improve the documentation.
- Loading branch information
1 parent
fbcf2ea
commit 9cf9037
Showing
18 changed files
with
966 additions
and
902 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
node_modules | ||
doc | ||
.DS_Store | ||
out.* | ||
.idea/ | ||
|
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,75 @@ | ||
var path = require ( 'path' ); | ||
|
||
/** | ||
* List of grunt tasks. | ||
* @namespace gruntfile | ||
*/ | ||
module.exports = function ( grunt ) { | ||
// We are checking how much time took each grunt task: | ||
require ( 'time-grunt' ) ( grunt ); | ||
|
||
function lastModified ( minutes ) { | ||
return function ( filepath ) { | ||
var filemod = ( require ( 'fs' ).statSync ( filepath ) ).mtime; | ||
var timeago = ( new Date () ).setDate ( (new Date () ).getMinutes () - minutes ); | ||
return ( filemod > timeago ); | ||
}; | ||
} | ||
|
||
grunt.initConfig ({ | ||
pkg: grunt.file.readJSON ( 'package.json' ), | ||
|
||
jshint: { | ||
// List of all the source files to test: | ||
files: [ 'gruntfile.js', 'lib/**/*.js' ], | ||
|
||
// Configure JSHint (documented at http://www.jshint.com/docs/): | ||
options: { | ||
evil: false, | ||
multistr: true, // We need to take care about it. | ||
globals: { | ||
console: true, | ||
module: true | ||
} | ||
} | ||
}, | ||
|
||
jsdoc : { | ||
dist : { | ||
src: ['gruntfile.js', 'lib/**/*.js'], | ||
options: { | ||
'destination': 'doc', | ||
'package': 'package.json', | ||
'readme': 'README.md', | ||
// template : "node_modules/grunt-jsdoc/node_modules/ink-docstrap/template", | ||
// configure : "node_modules/grunt-jsdoc/node_modules/ink-docstrap/template/jsdoc.conf.json" | ||
} | ||
} | ||
} | ||
}); | ||
|
||
// | ||
// The default task: | ||
// | ||
|
||
/** | ||
* The default grunt task. | ||
* @name default | ||
* @memberof gruntfile | ||
* @kind function | ||
*/ | ||
grunt.registerTask ( 'default', [ | ||
'jshint' | ||
]); | ||
|
||
// | ||
// More Grunt tasks: | ||
// | ||
|
||
// | ||
// Load all the modules that we need: | ||
// | ||
|
||
grunt.loadNpmTasks ( 'grunt-contrib-jshint' ); | ||
grunt.loadNpmTasks ( 'grunt-jsdoc' ); | ||
}; |
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
Oops, something went wrong.