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

@deepkit-community/nx-plugins

v0.0.7-alpha

Published

- [@deepkit-community/nx-plugins](#deepkit-communitynx-plugins) - [Getting Started](#getting-started) - [Generators](#generators) - [Application Generator](#application-generator) - [Running the App](#running-the-app) - [Interacting wi

Downloads

16

Readme

@deepkit-community/nx-plugins

Getting Started

The easiest way to use the generators included with this package is to scaffold a new NX monorepo. When prompted, select the empty option unless you are familiar with NX monorepos and would like to add some additional app scaffolding (eg for a front end application).

npx create-nx-workspace@latest test-deepkit

Add the plugins as a dev dependency using your package manager of choice

yarn add -D @deepkit-community/nx-plugins

Generators

Application Generator

Generate a new Deepkit application by invoking the NX generator:

yarn nx generate @deepkit-community/nx-plugins:application --name=my-app

If using NPM make sure you add the additional -- as arguments are not automatically forwarded to the underlying script as they are with yarn.

npm run nx generate @deepkit-community/nx-plugins:application -- --name=my-app

Running the App

To start the live reload development server

yarn start

Interacting with the Deepkit CLI

A package.json script entrypoint will be added for you automatically that is derived from the name of your scaffolded application. Based on the example above where we created a new application called my-app the appropriate command for invoking the CLI would be

yarn my-app:cli

Configuration

The default application configuration is managed externally using a .env file at the root of your NX monorepo. If you need to alter the configuration of the Deepkit kernel this is the best place to do it

Postgres Database Generator

This generator will configure an existing Deepkit application to interact with a Postgres database. It can be used to connect to an existing Postgres database on your host machine or to configure a working Docker Compose Postgres instance.

Run the generator providing the app argument for the name of the Deepkit application in your NX workspace which you would like to add Postgres support to.

yarn nx generate @deepkit-community/nx-plugins:db-postgres --app=my-app

If using NPM make sure you add the additional -- as arguments are not automatically forwarded to the underlying script as they are with yarn.

npm run nx generate @deepkit-community/nx-plugins:application -- --app=my-app

Use the interactive prompt or additional flags to customize your Postgres configuration. The generator will update your application and the .env file for configuration so that you can immediately start interacting with the database.

Postgres Docker Compose

If you chose to include the Docker Compose option don't forget to start services. From the root of your NX workspace run

docker-compose up -d