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

wp-simple-setup

v1.1.3

Published

This node pack will help you create Wp plugin with single command.

Downloads

103

Readme

About Package

This node module will help you set up you WordPress plugin,cms,theme with one commands, that help reducing you time in inverting on base setup.

Minimum Requirements ( Fully tested and Working as of the current version )

  • WordPress : 6.0 and higher
  • PHP: 8.1 and higher
  • Node: v18.17.0
  • Npm: 9.6.7
  • Docker: 20.10.22

Feature including:

  • :white_check_mark: Local Setup via Docker
  • :white_check_mark: Composer based dependency
  • :white_check_mark: NPM for NODE modules as dependency management for both Plugin and Theme.
  • :white_check_mark: Circle ci for CI/CD to test JS, automation or PHP unit and Linting.
  • :white_check_mark: GitHub Workflows to deploying code to AWS EC2 instances via SSH, but you can use other Severs since we use SSH deploy.
  • :white_check_mark: PHPCS for coding standards
  • :white_check_mark: PHP UNIT using WP PHPUNIT.
  • :white_check_mark: Automation test via cypress.
  • :x: Js tests using react testing library if working on wp blocks or react based development.
  • :white_check_mark: Generate Build packages in -built branch to github ( Example : test branch will have a built package of test-built branch )

Quick start

To Install

$ npm install -g wp-simple-setup

To Create Plugin :white_check_mark:

$ npx wp-simple-setup --type=plugin
$ cd wp-simple-setup

To Create Theme :x:

$ npx wp-simple-setup --type=theme
$ cd wp-simple-setup

To Create WP CMS :white_check_mark:

$ npx wp-simple-setup --type=cms
$ cd wp-simple-setup

As of this version we only support

  • :white_check_mark: Plugin creation
  • :white_check_mark: CMS creation
  • :x: Theme creation.

Additional Params

  • -t, --type Project Type, allowed values: "cms", "plugin", "theme"
  • -n, --name Project Name, Default value : --slug parameter
  • -s, --slug Project Slug
  • -ns, --namespace NameSpace
  • -a, --author Project Author
  • -arl, --author_url Author Url
  • -phpv, --phpversion PHP VERSION, Default value : 8.0
  • -wpv, --wpversion WP VERSION, Default value : 6.3
  • -pv, --pluginversion Plugin VERSION, Default value : 1.0.0
  • -idp, --installDependency Installs Dependency after project clone, Default value: true.
  • -fp, --fingerprint Circle Ci Footprint to build package, Default value: true.
  • -cicd, --circleci Required circleCi, Default value: true.
  • -gwf, --gitworkflow Required Git Work Flow ci?, Default value: true.
  • -dkr, --docker Required docker?, Default value: true.
  • -cyp, --cypress Required Cypress?, Default value: true.

Troubleshoot:

If you have below issue with docker open /Users/{USER}/.docker/buildx/current: permission denied Run the follwoing

sudo chmod -r g+rw "$HOME/.docker"

About Me:

My name is Arun Chaitanya Jami, Lead Engineer with 10+ plus years of experience with a solid understanding of all the phases of the Software Development Life-cycle (SDLC), which includes Event Driven Architecture, Analysis, Design, Development, Testing, and Maintenance of UI applications with TDD/BDD development techniques.

Release Notes:

1.1.2 && 1.1.3

  • Update Readme.md file.

1.1.1

  • CMS SETUP Completed.

1.1.0

  • CMS SETUP Work in progress.

1.0.32

  • Added auto generated build package for all the branches that were created in git ( Example : test branch will have a built package of test-built branch ).
  • Provide flexibility in adding additional components like CICD, CYPRESS, git work flows, dokcer based on requirement.
    • -fp, --fingerprint Circle Ci Footprint to build package, Default value: true.
    • -cicd, --circleci Required circleCi, Default value: true.
    • -gwf, --gitworkflow Required Git Work Flow ci?, Default value: true.
    • -dkr, --docker Required docker?, Default value: true.
    • -cyp, --cypress Required Cypress?, Default value: true.

1.0.31

  • Fix Cypress tests for plugin activation check.
  • Add Cypress automation on Circle CI
  • Fix phpcs linting : exclude cypress and wp cypress config file excluded
  • Added new flag --installDependency to install dependency after project setup.