@@ -10,6 +10,9 @@ interface CLIArguments {
1010 tsConfig ?: PathFactory . Type ;
1111 exclude ?: string ;
1212 webpackConfig ?: PathFactory . Type ;
13+ exportStatic ?: PathFactory . Type ;
14+ publicPath ?: string ;
15+ dryRun : boolean ;
1316}
1417
1518export const validateCliArguments = ( args : commander . Command ) : CLIArguments => {
@@ -25,6 +28,9 @@ export const validateCliArguments = (args: commander.Command): CLIArguments => {
2528 tsConfig : args [ "tsConfig" ] && PathFactory . create ( { source : args [ "tsConfig" ] } ) ,
2629 exclude : args [ "exclude" ] ,
2730 webpackConfig : args [ "webpackConfig" ] && PathFactory . create ( { source : args [ "webpackConfig" ] } ) ,
31+ exportStatic : args [ "exportStatic" ] && PathFactory . create ( { source : args [ "exportStatic" ] } ) ,
32+ publicPath : args [ "publicPath" ] ,
33+ dryRun : ! ! args [ "dryRun" ] ,
2834 } ;
2935} ;
3036
@@ -36,6 +42,9 @@ export const executeCommandLine = (): CLIArguments => {
3642 . option ( "--ts-config [path]" , "tsconfig.json path" , undefined )
3743 . option ( "--webpack-config [path]" , "webpack.config.js path (only js file)" )
3844 . option ( "--exclude [string pattern]" , "cruise exclude pattern" , "node_modules" )
45+ . option ( "--export-static [static directory]" , "static file hosting directory" )
46+ . option ( "--public-path [host public path]" , "the base path for all the assets" )
47+ . option ( "--dry-run" , "only use --export-static option" )
3948 . parse ( process . argv ) ;
4049 return validateCliArguments ( commander ) ;
4150} ;
0 commit comments