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

wpnd

v0.7.3

Published

WPND is a command line tool that provisions a working local WordPress development setup using nodejs and docker (with experimental support for podman). There's an expectation that NodeJS and your container engine of choice is also pre-installed.

Downloads

177

Readme

WPND

WPND is a command line tool that provisions a working local WordPress development setup using nodejs and docker (with experimental support for podman). There's an expectation that NodeJS and your container engine of choice is also pre-installed.

A quick test dev environment using config defaults can be spun off leveraging npx by running the following command;

npx --package=wpnd@latest wpnd start

Usage

WPND itself is packaged as a NodeJS package, whilst it can be used as a globally installed package, but it's probably better to use it as local installed package so switching versions is easy and your project experience is consistent across machines.

Ideally WPND expects a src directory that mirrors the directory structure for wp-content, the only difference here is said src directory would only contain the functionality being prototyped. So, for example when creating a theme, a theme directory is created in the specified project src directory.

One might then provision an environment for the project, by running the start command wpnd provides. it's also possible to make customizations to the provisioned environment and inform wpnd of deviations from the default project structure expectations by specifying a config file. Checkout the playground here for ideas on structuring your project.

Config Files

WPND currently supports a wpnd.config.json file. It is expected to be in the project working directory, adjacent to the project src directory. An alternative path to the config file might could be provided with --config <file> option, when this is done the resolution of the srcDir and distDir will be relative to the containing directory of the config file.

Config Options

| Property | Description | Type | Default | |-----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------|-------------| | name | Name of container that will be created for project | string | | | distDir | Name of custom directory where artifact required for wpnd will be stored | string | .wpnd | | srcDir | Name of directory contain the theme/plugins we intend to develop | string | src | | engine | Container engine to use to provision environment | string | docker | | environment.port | value at which the wordpress installation should be available at | string | 8085 | | environment.db.name | specifies the name of the database to use, if it doesn't exist it will be created | string | exampledb | | environment.db.user | specifies the user that should be attached to said database | string | exampleuser | | environment.db.password | provides the password to the database in question | string | examplepass | | environment.skipEngineCheck | When enabled, a check is performed to ensure the user actually has the container engine specified | boolean | false | | environment.rebuildOnStart | Determines if the docker image in use should be rebuilt on every start | boolean | false | | wpackagist | Specify themes or plugins from wpackagist to be bundled by default in the provision environment, config follows the same definition that would be specified in a composer config file | object | {} |