chore(test): setup a gulp task for quickly running e2e tests against the dev server

This commit is contained in:
Matias Niemelä 2015-06-10 16:52:19 -07:00
parent 60b97b27fa
commit 6cafaba993
3 changed files with 15 additions and 5 deletions

View File

@ -247,6 +247,16 @@ gulp.task('serve.js.dev', ['build.js.dev'], function(neverDone) {
})();
});
gulp.task('serve.e2e.dev', ['build.js.dev', 'build.js.cjs', 'build.css.material'], function(neverDone) {
watch('modules/**', { ignoreInitial: true }, '!broccoli.js.dev');
watch('modules/**', { ignoreInitial: true }, '!build.js.cjs');
jsserve(gulp, gulpPlugins, {
path: CONFIG.dest.js.dev.es5,
port: 8000
})();
});
gulp.task('serve.js.prod', jsserve(gulp, gulpPlugins, {
path: CONFIG.dest.js.prod.es5,
port: 8001

View File

@ -0,0 +1,3 @@
var data = module.exports = require('./protractor-shared.js');
var config = data.config;
config.baseUrl = 'http://localhost:8000/';

View File

@ -178,11 +178,8 @@ module.exports = function makeBrowserTree(options, destinationPath) {
]
});
var assetsTree = new Funnel(modulesTree,{
include: ['**/*'],
exclude: ['**/*.{html,ts,dart}'],
destDir: '/'
});
var assetsTree =
new Funnel(modulesTree, {include: ['**/*'], exclude: ['**/*.{html,ts,dart}'], destDir: '/'});
var scripts = mergeTrees(servingTrees);
var polymerFiles = new Funnel('.', {