Don't precompile Dart2JS for pull requests, instead serve the dart sources with pub serve. We were already testing with Dartium so all we lose is some test coverage of defects exposed only by the Dart2JS transpiler. This still runs the dart transformer. Fixes #3030
15 lines
501 B
JavaScript
15 lines
501 B
JavaScript
var util = require('./util');
|
|
var spawn = require('child_process').spawn;
|
|
|
|
module.exports = function(gulp, plugins, config, module) {
|
|
return function() {
|
|
config.port = config.port || 8080;
|
|
var pubMode = config.mode || 'debug';
|
|
var pubArgs = ['serve', '--mode', pubMode, '--port', config.port];
|
|
return util.streamToPromise(spawn(config.command, pubArgs, {
|
|
// pub serve is very spammy, and --verbosity flag doesn't fix it
|
|
cwd: config.path, stdio: 'ignore'
|
|
}));
|
|
};
|
|
};
|