@mands/nx-playwright
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "@mands/nx-playwright", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -13,2 +13,4 @@ # nx-playwright | ||
`yarn playwright install --with-deps` | ||
`yarn nx e2e name-of-the-app-e2e` | ||
@@ -15,0 +17,0 @@ |
@@ -6,6 +6,4 @@ "use strict"; | ||
const run_tasks_in_serial_1 = require("@nrwl/workspace/src/utilities/run-tasks-in-serial"); | ||
const child_process_1 = require("child_process"); | ||
const fs_1 = require("fs"); | ||
const path = require("path"); | ||
const util_1 = require("util"); | ||
const generator_1 = require("../init/generator"); | ||
@@ -18,12 +16,2 @@ const add_linting_1 = require("./lib/add-linting"); | ||
const playwrightInitTask = yield generator_1.default(host, { skipFormat: true }); | ||
const installPlaywrightBinaries = () => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
console.info('Installing Playwright binaries'); | ||
const { stdout, stderr } = yield util_1.promisify(child_process_1.exec)('yarn playwright install --with-deps'); | ||
if (stdout) { | ||
console.info(stdout); | ||
} | ||
if (stderr) { | ||
throw new Error(stderr); | ||
} | ||
}); | ||
devkit_1.addProjectConfiguration(host, normalizedOptions.projectName, { | ||
@@ -55,3 +43,3 @@ root: normalizedOptions.projectRoot, | ||
} | ||
return run_tasks_in_serial_1.runTasksInSerial(installPlaywrightBinaries, playwrightInitTask, lintTask); | ||
return run_tasks_in_serial_1.runTasksInSerial(playwrightInitTask, lintTask); | ||
}); | ||
@@ -58,0 +46,0 @@ } |
Sorry, the diff of this file is not supported yet
25
1
29650
546