simplify: - use same html file for dart and JS - build benchmarks automatically when doing `gulp build` - centralize configuration modularize: - move all build tasks into separate node.js modules under `tools/build`. changes: - the `build` folder is now the `dist` folder Closes #284
		
			
				
	
	
		
			12 lines
		
	
	
		
			282 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			282 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| var util = require('./util');
 | |
| var spawn = require('child_process').spawn;
 | |
| 
 | |
| module.exports = function(gulp, plugins, config, module) {
 | |
|   return function() {
 | |
|     return util.streamToPromise(spawn(config.command, ['serve'], {
 | |
|       cwd: config.path, stdio: 'inherit'
 | |
|     }));
 | |
|   };
 | |
| };
 | |
| 
 |