npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@push-based/user-flow-nx-plugin

v0.1.4

Published

Run generators, executors and helper code to seamlessly integrate user flow into your Nx workspace.

Downloads

31

Readme

Nx plugin to execute lighthouse user flows

Run generators, executors and helper code to seamlessly integrate user flow into your Nx workspace.

Quick Start

  1. Add @push-based/user-flow-nx-plugin to your project. It will unlock generators, executors and migrations for a seamless DX:
npm install --save-dev @push-based/user-flow-nx-plugin
nx generate @push-based/user-flow-nx-plugin:init
  1. Add a target to your project and configure it.
 nx generate @push-based/user-flow-nx-plugin:target

optionally provide a different target name

   nx generate @push-based/user-flow-nx-plugin:target --targetName=xyz

2.1 To test out the result before changing your code add --dry-run to the options

Init user flows in your Nx workspace

You can easily use the generators to setup user flows in the workspace.

run: nx generate @push-based/user-flow-nx-plugin:init

This should add the necessary dependencies your package.json.

>  NX  Generating @push-based/user-flow-nx-plugin:install

Adding packages
UPDATE nx.json
UPDATE package.json

In your workspace package.json you will find the packages added. You can find the details about the executor options under Executor Options.

In your nx.json you will find the generator defaults. You can set the workspace base configurations.

Now you can go and setup user-flows under a target or generate tests over the CLI.

Add a target to execute user flows in a project

You have to add a target over the generator to be able to execute user-flows.

run:
nx generate @push-based/user-flow-nx-plugin:target

This should add the new target to your project.json.

>  NX  Generating @push-based/user-flow-nx-plugin:target [target-name-here]

? What project would you like to add your target to? …
project-name

Adding target user-flow to project project-name
UPDATE packages/project-name/project.json

In your workspace project.json you will find the target added. Now you can go and execute the target over the CLI.

Execute user flows as Nx target

To execute user flows you need to have a target set up as pre-condition.

npx user-flow [project-name]

This should add the new target to your project.json.

> nx run user-flow-gh-integration:user-flow

 >  NX   Successfully ran target user-flow for project [project-name]

You will find the artefacts in your configured outpath, by default dist/user-flow.

Executor Options

| Option | Type | Default | Description |
|------------------------|-----------|-------------|------------------------------------------------------------------------------------------------|
| --help, -h | boolean | undefined | Show help |
| --targetName, | string | user-flow | The target name for user-flow execution |
| --projectName, | string | user-flow | The project name to add the user-flow target |
| --cliMode, | string | DEFAULT | CLI mode for execution of user-flows SANDBOX. This is useful when you debug or write tests. |
| --ouputPath | boolean | undefined | Alias for --outPath. |

Other available options are listed under collect command options.