- Allow pub (build|serve) to specify mode - Update pubbuild.js & pubserve.js to allow the caller to provide a `mode` value. - Update settings to allow the di benchmark to be transformed to run statically.
		
			
				
	
	
		
			14 lines
		
	
	
		
			370 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			370 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| var util = require('./util');
 | |
| var spawn = require('child_process').spawn;
 | |
| 
 | |
| module.exports = function(gulp, plugins, config, module) {
 | |
|   return function() {
 | |
|     var pubMode = config.mode || 'debug';
 | |
|     var pubArgs = ['serve', '--mode', pubMode];
 | |
|     return util.streamToPromise(spawn(config.command, pubArgs, {
 | |
|       cwd: config.path, stdio: 'inherit'
 | |
|     }));
 | |
|   };
 | |
| };
 | |
| 
 |