chore(test): setup a gulp task for quickly running e2e tests against the dev server
This commit is contained in:
parent
60b97b27fa
commit
6cafaba993
10
gulpfile.js
10
gulpfile.js
|
@ -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
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
var data = module.exports = require('./protractor-shared.js');
|
||||
var config = data.config;
|
||||
config.baseUrl = 'http://localhost:8000/';
|
|
@ -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('.', {
|
||||
|
|
Loading…
Reference in New Issue