All Projects → gedex → wp-tools

gedex / wp-tools

Licence: MIT license
Command line interface to reduce boring tasks when working on WordPress plugin / theme project that will be published to wp.org

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to wp-tools

Air Light
WordPress starter theme - designed to be minimal, lightweight and easy for all kinds of WordPress projects. Public Roadmap: https://favro.com/organization/3b45e73eaf083f68fefef368/c1dd2d4a99d6723904d2e763
Stars: ✭ 285 (+763.64%)
Mutual labels:  wordpress-development, wordpress-theme
humescores
IMPORTANT: Download the Exercise Files from the course page to get the Gulp process files and other important data.
Stars: ✭ 58 (+75.76%)
Mutual labels:  wordpress-development, wordpress-theme
Wpintel
Chrome extension designed for WordPress Vulnerability Scanning and information gathering!
Stars: ✭ 70 (+112.12%)
Mutual labels:  wordpress-development, wordpress-theme
huh
Turn huh into eureka with in dashboard documentation for your WordPress themes.
Stars: ✭ 46 (+39.39%)
Mutual labels:  wordpress-development, wordpress-theme
Understrap
Understrap is the renowned open-source WordPress starter theme that combines Underscores with Bootstrap. Trusted by more than 100,000 developers.
Stars: ✭ 2,822 (+8451.52%)
Mutual labels:  wordpress-development, wordpress-theme
Fabrica Dev Kit
A toolkit for faster, smoother WordPress 5 development
Stars: ✭ 256 (+675.76%)
Mutual labels:  wordpress-development, wordpress-theme
Wp Functions List
This is a list of all WordPress functions from version 0 to version 4.8.1 along with the data of when they were first introduced and if they are deprecated or not
Stars: ✭ 88 (+166.67%)
Mutual labels:  wordpress-development, wordpress-theme
starter-kit-theme
WordPress starter theme with a modern development stack for launching projects faster and easily
Stars: ✭ 25 (-24.24%)
Mutual labels:  wordpress-development, wordpress-theme
Aquila
🎨 An Advanced WordPress theme
Stars: ✭ 204 (+518.18%)
Mutual labels:  wordpress-development, wordpress-theme
Wp Tailwindcss Theme Boilerplate
A minimalist boilerplate for WordPress theme development using Tailwind CSS, SCSS, and Laravel Mix.
Stars: ✭ 199 (+503.03%)
Mutual labels:  wordpress-development, wordpress-theme
eightshift-docs
A documentation website for Eightshift open source projects
Stars: ✭ 44 (+33.33%)
Mutual labels:  wordpress-development, wordpress-theme
barebones
React based WordPress Theme, built with create-react-wptheme. This is a starter theme with just the core WordPress functionality.
Stars: ✭ 35 (+6.06%)
Mutual labels:  wordpress-development, wordpress-theme
WordPress-UIkit-Starter-Theme
A WordPress starter theme for developers using the frontend framework UIkit
Stars: ✭ 55 (+66.67%)
Mutual labels:  wordpress-development, wordpress-theme
Lumberjack
Lumberjack is a powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code.
Stars: ✭ 261 (+690.91%)
Mutual labels:  wordpress-development, wordpress-theme
untheme
A blank WordPress theme for developers.
Stars: ✭ 82 (+148.48%)
Mutual labels:  wordpress-development, wordpress-theme
Theme
Tonik is a WordPress Starter Theme which aims to modernize, organize and enhance some aspects of WordPress theme development.
Stars: ✭ 1,197 (+3527.27%)
Mutual labels:  wordpress-development, wordpress-theme
air
A hyper-minimal WordPress starter theme for developers built with Tailwind CSS.
Stars: ✭ 45 (+36.36%)
Mutual labels:  wordpress-development, wordpress-theme
wordpress
📚 Recursos para aprender WordPress
Stars: ✭ 20 (-39.39%)
Mutual labels:  wordpress-development, wordpress-theme
Startwordpress
Learn how to develop a WordPress theme from scratch with this basic skeleton and accompanying tutorial.
Stars: ✭ 187 (+466.67%)
Mutual labels:  wordpress-development, wordpress-theme
Create React Wptheme
Create modern, React-enabled WordPress themes with a single command.
Stars: ✭ 252 (+663.64%)
Mutual labels:  wordpress-development, wordpress-theme

wp-tools (wpt)

npm version build status dependency status

wp-tools (wpt) is a command line interface to reduce boring tasks when working on WordPress plugin / theme project that will be published to wp.org. Most commands in wpt are shamelessly borrowed from existing task runner plugin (see credits) so that you can run it without task runner and embed it easily in npm scripts (which is the main goal of wpt).

Install

$ npm install -g wp-tools

Usage

Once installed globally, wpt should be available from shell.

$ wpt

  Usage:  [options] [command]


  Commands:

    bump:wp-version [options] <from> <to>  Bump WP version in readme.txt
    generate:pot [options]                 Generate POT.
    generate:readme-md [options]           Generate README.md from readme.txt.
    generate:release-zip [options]         Generates project zip like in wp.org without releasing.
    info [options]                         View plugin/theme project info.
    init [options]                         Initialize .wpt.yaml.
    release:gh [options]                   Release the project to GitHub.
    release:wporg [options]                Release the project to WP.org.
    preview:gh                             Preview GitHub README.md.
    validate:i18n [options]                Check your code for incorrect text-domain.
    validate:readme-txt                    Check your readme.txt.

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

For more help on specific command, supply -h or --help, for example:

$ wpt init -h

  Usage: init [options]

  Initialize .wpt.yaml in current directory.

  If .wpt.yml exists in current directory, it will read that first, and default to the options there.

  Options:

    -h, --help          output usage information
    -d, --use-defaults  Use only defaults and not prompt you for any options.

Project Config (.wpt.yml)

Some commands in wpt expect config file to be present in your project directory. To add / modify config file in a project:

$ wpt init

Just like npm init this will create .wpt.yml file. Following is an example of .wpt.yml content:

type: plugin
files:
    src:
        - '**'
        - '!node_modules/**'
        - '!vendor/**'
        - '!tests/**'
        - '!test/**'
        - '!build/**'
        - '!tmp/**'
        - '!README.md'
    main: slack.php
    assets:
        - assets/*.png
gh:
    username: gedex
    repo: gedex/wp-slack
    branch: master
wporg:
    slug: slack
    username: akeda
    buildPath: build
  • type is project type (plugin or theme).

  • files.src is list of files / patterns that are part of the plugin or theme. All files that match with the pattern will be pushed to wp.org when using command release:wporg. Command wpt generate:pot also uses matched files to scan gettext functions.

  • files.main is main file of the plugin or theme. For theme it should be style.css.

  • files.assets is list of files / patterns that are assets in wp.org. See here.

  • gh.username is your GitHub username, if the project is hosted on GitHub.

  • gh.repo is GitHub repository with following format:

    owner/repo
    

    For example https://github.com/Automattic/jetpack would be Automattic/jetpack.

  • gh.branch is git branch for stable release. If not specified it defaults to master. This branch is checkout'ed when releasing to GitHub and wp.org.

  • wporg.slug is the plugin slug in wp.org directory.

  • wporg.username is your wp.org username that has commit access to the plugin svn. Required by command wpt release:wporg.

  • wporg.buildPath is the directory containing all files to be pushed to wp.org. By default it's under build of current directory. The directory must be gitignore'ed. The checkout, diff, and commit are performed against this directory.

Credits

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].