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

tekta

v1.2.2

Published

Generates and udpates WordPress plugins using the Tekta framework

Downloads

7

Readme

generator-tekta NPM version

Generates (or regenerates) structure for a WordPress plugin, using the Tekta framework.

Installation

  1. Install Tekta using using npm or yarn (we assume you have already installed node.js).
# npm
npm install -g tekta
# yarn
yarn global add tekta
  1. Generate your new project:
mkdir my-new-plugin
cd my-new-plugin
tekta

Usage

The first time you run tekta in a directory, it will walk you through the plugin scaffolding process, asking you questions, and generating a plugin.

Your answers are written out to a file called tekta.json. Keep this. Check it into your plugin's Git repo. This stores all the information that Tekta knows about your plugin.

If you want to change your answers and re-generate the plugin framework, you can run tekta --ask-answered or you can just edit the tekta.json file and run tekta again.

Note: most files within the app/ diretory will only be generated if they do not exist, so if you do something like change the namespace of your plugin, it will not be updated here. To regenerate those files, you can just delete (or move aside) the app/ directory and re-run tekta.

If a run of tekta is going to edit files (which it will, if Tekta has been updated or if you changed anything in tekta.json), it will prompt you for each change. You can press d to see the diff of changes, and y (or just return) to accept the change. If you want to blindly apply the changes, you can run tekta --force.

Structure

├── LICENSE *            # Your license file.
├── app                  # Your app directory.
│   ├── Plugin.php       # Your main plugin file.
│   ├── functions.php    # A place for namespaced helper functions.
│   └── setup.php        # For things like plugin activation hooks.
├── index.php *          # Your plugin entry file.
├── lib                  # Library files.
│   ├── Tekta *          # Tekta support files.
│   └── Mozart *         # Namespaced Mozart (Composer) packages.
├── load.php *           # Bootstrap file for your plugin.
└── tekta.json           # Tekta configuration.

* = do not edit

Anything marked with a * should never be edited. These files and directories are auto-generated every time you run tekta.

License

MIT © Mark Jaquith