@@ -15,9 +15,11 @@ module.exports = function (envArguments) {
1515 const pkg = require ( path . join ( process . cwd ( ) , 'package.json' ) ) ;
1616 let PLATFORM = 'web' ;
1717 let TARGET = ENV ;
18+ let DOCS = false ;
1819 if ( envArguments ) {
1920 PLATFORM = envArguments . platform || PLATFORM ;
2021 TARGET = envArguments . target || TARGET ;
22+ DOCS = envArguments . docs || DOCS ;
2123 }
2224 console . log ( '' ) ;
2325 console . log ( chalk . yellow ( '➜' ) + ' ' + chalk . white ( 'NODE_ENV: ' ) + chalk . green . bold ( ENV ) ) ;
@@ -33,6 +35,7 @@ module.exports = function (envArguments) {
3335 const rootDir = path . resolve ( ) ;
3436 const srcDir = path . resolve ( 'src/app' ) ;
3537 const outDir = path . resolve ( 'dist' ) ;
38+ const outDirDocs = path . resolve ( 'docs' ) ;
3639 const faviconPath = 'src/assets/images/favicon.ico' ;
3740
3841 // context to fill the index file
@@ -176,6 +179,16 @@ module.exports = function (envArguments) {
176179 }
177180 } ;
178181
182+ const typedocsOptions = {
183+ run : DOCS ,
184+ output : outDirDocs ,
185+ inputs : [
186+ path . join ( rootDir , 'typings' ) ,
187+ path . join ( rootDir , 'typings_custom' ) ,
188+ srcDir
189+ ]
190+ } ;
191+
179192 // advanced configuration:
180193 switch ( ENV ) {
181194 /**
@@ -266,7 +279,7 @@ module.exports = function (envArguments) {
266279 require ( './config/config-globals.js' ) ( ) ,
267280 require ( './config/config-favicon.js' ) ( configFavicon ) ,
268281 require ( './config/config-notifier.js' ) ( configNotifier ) ,
269- require ( './config/config-typedoc.js' ) ( ) ,
282+ require ( './config/config-typedoc.js' ) ( typedocsOptions ) ,
270283 require ( './config/config-loader-options.js' ) ( WebpackOptionLoader ( ) . initalConfig , WebpackOptionLoader ( ) . extraction )
271284 ) ;
272285 break ;
0 commit comments