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

generator-moxie-lean

v0.4.0

Published

Set of generators used for Lean libs.

Downloads

19

Readme

Lean generators

Set of generators to speed things a bit for some repetitive tasks.

Requirements

Installation

npm install -g generator-moxie-lean

Update

npm update -g generator-moxie-lean

Commands

  • new-wp: Generates a new WordPress project.
  • new-wp-project: Generates the config for a new WordPress project and initialises Git.
  • new-wp-plugin: Generates a new WordPress plugin.
  • php-lib: Command to generate files from a PHP library with files like: composer, codesniffer and others.

yo moxie-lean

This is the main command.

yo moxie-lean:new-wp

This generator creates a new WordPress project, including root level config and Lean plugin.

Command

yo moxie-lean:new-wp

It will prompt you for:

  • The project name
  • github/bitbucket repo uri. (optional)

Note: that the plugin will take the same name as the project. You should use a lowercase name separated with -'s.

yo moxie-lean:new-wp-project

Generates the config files required for a WordPress project.

Command

yo moxie-lean:new-wp-project

You need to set-up the remote repo first on GitHub or Bitbucket.

This generator creates:

  • composer.json file
  • Default .gitignore file
  • .travis.yml file to set up CI.

It then initialises Git and pushes to your remote repo.

It will prompt you for the project name and github/bitbucket repo uri. Alternatively you can pass the name as a CLI argument:

yo moxie-lean:new-wp-project --name my-plugin-name

yo moxie-lean:new-wp-plugin

Generates a new WordPress plugin.

To run this command just type on the terminal:

yo moxie-lean:new-wp-plugin

This generator creates a new plugin and updates the namespace and constant names.

It will prompt you for the plugin name, which defaults to the folder name. Alternatively you can pass the name as a CLI argument:

yo moxie-lean:new-wp-plugin --name my-plugin-name

yo moxie-lean:php-lib

Command

yo moxie-lean:php-lib

This generator is useful to create a new PHP libs with the same files used across other PHP libraries, that uses composer as the package manager, and set a CI (continus integration) system to used with travis in order to follow the WordPress Code Standard as much as possible.

This generator creates:

  • A composer.json file
  • A set of rules used for the codesniffer with some exceptions to allow PSR4 and namespaces.
  • A default .gitignore file
  • An .editorconfig file
  • A .travis.yml file to set up CI.
  • A MIT licence file