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

@wedgekit/scripts

v1.2.0

Published

Configuration & Scripts for A2W Apps

Downloads

154

Readme

@wedgekit/scripts

Usage

npx @wedgekit/scripts <command>

MUST HAVE NODE v14+

Application vs Package Development

@wedgekit/scripts can be used to develop both A2W applications and Wedgekit packages (libraries). The following commands are valid for both application and package development; they will have different effects depending on the type of development.

The default type of development is application development. To indicate you are using a package, use the -p or --package flag with any of the following commands. Alternatively, use the -s or --script flag with any of the following commands to indicate you are using a node script.

Commands

Tip: Typing -h after either the application name or any of the commands will pull up a help menu*.

create

$ npx @wedgekit/scripts create <name> / $ wedgekit create <name>

Creates a new web application

Note: Currently create is only configured for web applications. Package creation is coming someday*.

| Subcommand | Required | Description | | ---------- | -------- | -------------------------------------------------------------------- | | name | ✅ | The web application name; a directory will be created with this name |

| Option | Flag(s) | App/Package/Script | Example | Description | | ----------- | ------------ | ------------------ | ------------------------------------------------ | -------------------------------------------------------------------------------------------------- | | directory | -d --dir | A/P/S | $ wedgekit create example-app -d test | Defines the location of the application if different from <name>/ | | description | --desc | A/P/S | $ wedgekit create example-app --desc "My App" | Adds a description of the application/package | | template | --template | A | $ wedgekit create example-app --template force | Makes the created application with the specified template possible options are force and basic |

build

$ npx @wedgekit/scripts build / $ wedgekit build

Build the src directory. Expects an src/index.ts entry file.

| Option | Flag(s) | App/Package/Script | Example | Description | | ---------- | ------------------- | ------------------ | --------------------- | ----------------------------------------------------------------------------- | | clean | -c --clean | P/S | $ wedgekit build -c | Removes the dist/ directory before building package | | dev | -d --dev | P/S | $ wedgekit build -d | Builds with dev options set to true; used for local development | | types-only | -t --types-only | P | $ wedgekit build -t | Only builds type declaration files; used for type-only packages | | unbundled | -u --unbundled | P | $ wedgekit build -u | Distributes the unbundled files in addition to the ESM and CJS bundles | | watch | -w --watch | P/S | $ wedgekit build -w | Watches source files for changes that would invalidate the build and rebuilds |

start

$ npx @wedgekit/scripts start / $ wedgekit start

Starts a dev server for local app development if in app mode. Expects an index.html in the current working directory. If in script mode, runs the script in src/index.ts using ts-node.

Note: start is only intended for use with web applications and scripts. Package developers should use wedgekit build -w instead.

Note: vite flags will be applied to wedgekit start. For a list type npx vite --h

Note: proxy flag is necessary to use samesite cookies locally

| Option | Flag(s) | App/Package/Script | Example | Description | | ------------- | ----------------- | ------------------ | ------------------------------------------------------------------------- | -------------------------------------------------------------------------- | | graphql proxy | --graphql-proxy | A | $wedgekit start --graphql-proxy https://develop.agility.dmsi.io/graphql | Uses the Vite proxy middleware to proxy to the desired graphql environment | | rest proxy | --rest-proxy | A | $wedgekit start --rest-proxy https://develop.agility.dmsi.io/rest | Uses the Vite proxy middleware to proxy to the desired rest environment |

Definitions

someday - The long-promised day in which all prioritized features will be complete and developers can tackle long-delayed tech debt.

soon - As soon as all urgent work is complete, which is a state of existence which will surely be upon us any day now.