98e5af1480
* No longer builds the example e2e tests using "tsc". The examples are now built with Bazel and can therefore be built with Ivy by using the `--define=compile=aot` switch. * No longer runs the example e2e tests using the protractor CLI. example e2e tests are executed with the Bazel protractor rule and can therefore run incrementally. NOTE: Unit tests found within the examples are still running within the legacy jobs. PR Close #28402
27 lines
591 B
JavaScript
27 lines
591 B
JavaScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
module.exports = {
|
|
|
|
// Serve the built files
|
|
default: (gulp) => () => {
|
|
const connect = require('gulp-connect');
|
|
const cors = require('cors');
|
|
const path = require('path');
|
|
|
|
connect.server({
|
|
root: path.resolve(__dirname, '../../dist'),
|
|
port: 8000,
|
|
livereload: false,
|
|
open: false,
|
|
middleware: (connect, opt) => [cors()],
|
|
});
|
|
},
|
|
|
|
};
|