@@ -4,17 +4,19 @@ import {JS, NativeProcess, SASSLint} from 'webcompiler';
44import { join } from 'path' ;
55
66const rootDir = join ( __dirname , '..' ) ,
7+ modulesDir = join ( rootDir , 'node_modules' ) ,
78 binDir = join ( rootDir , 'bin' ) ,
89 buildDir = join ( rootDir , 'build' ) ,
910 libDir = join ( rootDir , 'lib' ) ,
1011 devDir = join ( rootDir , 'development' ) ,
1112 docsDir = join ( rootDir , 'docs' ) ,
1213 specDir = join ( rootDir , 'spec' ) ,
1314 readme = join ( rootDir , 'README.md' ) ,
15+ jsdocConfig = join ( modulesDir , 'webcompiler' , 'config' , 'jsdoc.json' ) ,
1416 style = join ( rootDir , '_index.scss' ) ,
1517 devStyle = join ( devDir , 'app.scss' ) ,
1618 js = new JS ( ) ,
17- jsdoc = new NativeProcess ( join ( rootDir , 'node_modules' , '.bin' , 'jsdoc' ) ) ;
19+ jsdoc = new NativeProcess ( join ( modulesDir , '.bin' , 'jsdoc' ) ) ;
1820
1921new SASSLint ( ) . run ( [ style , devStyle ] , function ( ) {
2022 js . beDir ( libDir , buildDir , function ( ) {
@@ -23,6 +25,6 @@ new SASSLint().run([style, devStyle], function () {
2325 return console . error ( e ) ;
2426 }
2527 console . log ( '\x1b[32mGenerated API documentation!\x1b[0m' ) ;
26- } , [ buildDir , '-d' , docsDir , '-R' , readme ] ) ;
28+ } , [ buildDir , '-d' , docsDir , '-R' , readme , '-c' , jsdocConfig ] ) ;
2729 } , specDir , binDir , devDir ) ;
2830} ) ;
0 commit comments