build-workflow
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -0,1 +1,13 @@ | ||
/** | ||
* @module build-workflow | ||
* | ||
* @class config-loader | ||
* @static | ||
**/ | ||
/** | ||
* Loads the now separated grunt configuration files | ||
* | ||
* @method config-loader | ||
**/ | ||
module.exports = function ( grunt, args ) { | ||
@@ -2,0 +14,0 @@ 'use strict'; |
@@ -24,4 +24,4 @@ module.exports = function ( grunt, pkg, options ) { | ||
command: function ( file ) { | ||
var doccoHusky = commonConfig.docco_husky || {}; | ||
var filesOrFolders = doccoHusky.sources; | ||
var doccoHusky = pkg.docco_husky || {}; | ||
var filesOrFolders = doccoHusky.sources || []; | ||
@@ -32,2 +32,6 @@ if ( file ) { | ||
if ( filesOrFolders.length === 0 ) { | ||
grunt.fail.warn( 'No files to process' ); | ||
} | ||
return lib.format( 'node_modules/docco-husky/bin/generate {0}', filesOrFolders.join( ' ' )); | ||
@@ -127,7 +131,7 @@ } | ||
command: function ( glob ) { | ||
glob = glob || './src/'; | ||
glob = glob || './'; | ||
var files = glob.split( ',' ); | ||
var yuidoc = commonConfig.yuidoc || {}; | ||
var pathToConfig = yuidoc.config || path.resolve( __dirname, '../resources/json-configs/yuidoc.json' ); | ||
return lib.format( 'node_modules/yuidocjs/lib/cli.js {0} --config-file={1} --server', files, pathToConfig ); | ||
return lib.format( 'node_modules/yuidocjs/lib/cli.js {0} -c {1}', files, pathToConfig ); | ||
} | ||
@@ -134,0 +138,0 @@ }, |
@@ -6,3 +6,5 @@ module.exports = function ( grunt ) { | ||
"!resources/hooks/*.js", | ||
"!node_modules/**/*.*" | ||
"!node_modules/**/*.*", | ||
'!documentation/**/*.js', | ||
'!apidocs/**/*.js' | ||
]; | ||
@@ -17,20 +19,22 @@ | ||
"docco_husky": { | ||
"content_dir": "documentation/docs-source", | ||
"output_dir": "documentation/docs", | ||
"sources": [ | ||
"Gruntfile.js", | ||
"./" | ||
], | ||
"project_name": "Build workflow", | ||
"show_timestamp": true | ||
}, | ||
// "docco_husky": { | ||
// "content_dir": "documentation/docs-source", | ||
// "output_dir": "documentation/docs", | ||
// "sources": [ | ||
// "Gruntfile.js", | ||
// "./" | ||
// ], | ||
// "project_name": "Build workflow", | ||
// "show_timestamp": true | ||
// }, | ||
"codepainter": { | ||
"sources": prepushFiles | ||
"sources": [ | ||
"**/*.js, !resources/hooks/*.js, !node_modules/**/*.*" | ||
] | ||
}, | ||
"yuidoc": { | ||
"config": "./grunt-deps/yuidoc/yuidoc.json" | ||
}, | ||
// "yuidoc": { | ||
// "config": "./grunt-deps/yuidoc/yuidoc.json" | ||
// }, | ||
@@ -37,0 +41,0 @@ "filesToValidate": { |
{ | ||
"name": "build-workflow", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Simple gruntfile helper to define build workflows", | ||
@@ -27,2 +27,5 @@ "main": "config-loader.js", | ||
"homepage": "https://github.com/royriojas/build-workflow", | ||
"dependencies": { | ||
}, | ||
"devDependencies": { | ||
@@ -49,9 +52,6 @@ "grunt": "~0.4.5", | ||
"grunt-newer": "~0.6.1", | ||
"lodash": "~2.4.1", | ||
"codepainter": "~0.3.27", | ||
"marked": "~0.3.1", | ||
"cheerio": "~0.13.1", | ||
"grunt-karma": "~0.8.3", | ||
@@ -88,4 +88,15 @@ "grunt-contrib-csslint": "~0.2.0", | ||
"docco-husky": "https://github.com/royriojas/docco-husky/tarball/d3aaec2", | ||
"karma-react-jsx-preprocessor": "https://github.com/royriojas/karma-react-jsx-preprocessor/tarball/1824de4" | ||
"karma-react-jsx-preprocessor": "https://github.com/royriojas/karma-react-jsx-preprocessor/tarball/1824de4", | ||
"yuidocjs": "https://github.com/royriojas/yuidoc/tarball/exampleurl", | ||
"yuidoc-theme-blue": "https://github.com/royriojas/yuidoc-theme-blue/tarball/master" | ||
}, | ||
"docco_husky": { | ||
"content_dir": "./docs", | ||
"output_dir": "./documentation", | ||
"sources": [ | ||
"Gruntfile.js" | ||
], | ||
"project_name": "Build Workflow", | ||
"show_timestamp": true | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
145500
92
2041
58