JSPM

@codelabai/nx

0.0.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q35879F
  • License MIT

Currents plugin for Nx

Package Exports

  • @codelabai/nx
  • @codelabai/nx/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@codelabai/nx) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@currents/nx

NX plugin for running cypress tests on Currents.dev

Setup

Install @currents/nx

npm i --save-dev @currents/nx

Add currents target to your project configuration

{
// ...
"targets": {
  "currents": {
    "executor": "@currents/nx:currents",
    "options": {
      "cypressExecutor": "e2e" // target name that runs "@nrwl/cypress:cypress"
    }
  },
 "e2e": {
    "executor": "@nrwl/cypress:cypress",
    "options": {
      // ...
    },
    "configurations": {
      // ...
    }
  }
}
// ...

Run cypress tests, using Currents.dev as a dashboard

nx run project:currents --group nx --record --key <key> --ci-build-id hello-currents-nx
  • The plugin requires an already installed @nrwl/cypress and a configured target that's running @nrwl/cypress:cypress
  • @currents/nx:currents will run @nrwl/cypress:cypress behind the scenes
  • You can set predefined options in target definition
  • Update your cypress.json file with projectId obtained at https://app.currents.dev
  • Use the record key obtained at https://app.currents.dev

Example

See https://github.com/currents-dev/currents-nx-example for example integration