Logo
Explore Help
Sign In
honeymoose/angular-cn
1
0
Fork 0
You've already forked angular-cn
Code Issues Pull Requests Packages Projects Releases Wiki Activity
angular-cn/tools/build/pubserve.js

14 lines
370 B
JavaScript
Raw Normal View History

refactor(build): simplify and modularize 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
2014-12-05 16:26:30 -08:00
var util = require('./util');
var spawn = require('child_process').spawn;
module.exports = function(gulp, plugins, config, module) {
return function() {
chore(dart/transform): Create targets for serving transformed Dart code - 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.
2015-04-06 14:48:07 -07:00
var pubMode = config.mode || 'debug';
var pubArgs = ['serve', '--mode', pubMode];
return util.streamToPromise(spawn(config.command, pubArgs, {
refactor(build): simplify and modularize 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
2014-12-05 16:26:30 -08:00
cwd: config.path, stdio: 'inherit'
}));
};
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 66ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API