mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 11:44:05 +08:00
Uses existing Protractor API to run it directly instead of using `npm run e2e`. Also adds support for the following flags: `--serve`, `--config`, `--specs`, `--element-explorer`, `--webdriver-update`. Fix #4256 Fix #4478 BREAKING CHANGE: `ng e2e` no longer needs `ng serve` to be running.
7 lines
225 B
TypeScript
7 lines
225 B
TypeScript
const resolve = require('resolve');
|
|
|
|
// require dependencies within the target project
|
|
export function requireProjectModule(root: string, moduleName: string) {
|
|
return require(resolve.sync(moduleName, { basedir: root }));
|
|
}
|