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

@nx-squeezer/workspace

v6.0.4

Published

Executors and generators for Nx and Angular projects

Downloads

25

Readme

@nx-squeezer/workspace

CI npm latest version CHANGELOG codecov compodoc renovate semantic-release

Contributing and maintaining OSS projects can be boosted :rocket: through a set of tools :hammer: and processes :gear:. This package provides generators for Nx and Angular to configure a variety of those tools with just a command, integrating without any friction with your existing repo. Check the documentation to see all available features.

Setup

npm install --save-dev @nx-squeezer/workspace

Recommended order to setup all the generators:

nx g @nx-squeezer/workspace:prettier
nx g @nx-squeezer/workspace:eslint
nx g @nx-squeezer/workspace:tsconfig
nx g @nx-squeezer/workspace:lint-staged
nx g @nx-squeezer/workspace:contributors
nx g @nx-squeezer/workspace:github-workflow
nx g @nx-squeezer/workspace:codecov

Generators

codecov

Setup command:

nx g @nx-squeezer/workspace:codecov

Adds codecov to a project to have coverage information, including:

  • Generating configuration file .codecov.yml.
  • Configures individual projects with test target to expose coverage information.
  • Updates CI file to upload coverage report.
  • Adds badge to README.md.

commitlint

Setup command:

nx g @nx-squeezer/workspace:commitlint

Uses commitlint and husky to lint commit messages to adhere to conventional commits. It uses the default configuration provided by @commitlint/config-conventional.

contributors

Setup command:

nx g @nx-squeezer/workspace:contributors

Adds contributors attribution to README.md using contrib.rocks.

eslint

Setup command, which will prompt one by one the set of rules that can be added:

nx g @nx-squeezer/workspace:eslint

Adds a set of ESLint rules to enhance code style in projects. Shipped as a generator instead of a configuration package so that it can be customized and edited by repo, and to automate the configuration of projects with TypeScript. Additionally, since it is an Nx plugin it can automatically apply upgrade changes if needed. The rules that it adds include:

  • eslint:recommended
  • sonarjs/recommended
  • unused-imports
  • @typescript-eslint/recommended
  • deprecation
  • import/recommended

github-workflow

Setup command:

nx g @nx-squeezer/workspace:github-workflow

Adds a GitHub Action workflow to automate the CI pipeline for your repo. It includes the following actions:

  • Checkout.
  • Setup Node.
  • Install dependencies.
  • Targets for build, test, lint, e2e.
  • Configure nx.json.
  • Workflow adapted to Nx workspaces.
  • Add a badge to README.md.

Options:

  • Force overwriting of workflow with --force (default false).
  • Provide default branch with --branch=master (default main).
  • Use Nx Cloud --useNxCloud (default true).

lint-staged

Setup command:

nx g @nx-squeezer/workspace:lint-staged

Uses lint-staged and husky to lint files when being committed to the repo.

prettier

Setup command:

nx g @nx-squeezer/workspace:prettier

Updates prettier configuration with some defaults, and adds prettier/recommended rule to ESLint configuration.

tsconfig

Setup command:

nx g @nx-squeezer/workspace:tsconfig

Updates the tsconfig.json file adding a default configuration with stricter options enabled.

Contributors

contributors