wp-cli / scaffold-command

Generates code for post types, taxonomies, blocks, plugins, child themes, etc.
MIT License
165 stars 87 forks source link

Add missing script to plugins package.json #224

Closed derweili closed 5 years ago

derweili commented 5 years ago

The wp scaffold plugincommand creates a package.json and a Gruntfile.js

The Gruntfile has two main tasks:

Both are create tasks but you can't run them directly out of the box.

To run them you need to global install grunt or you need to add scripts to the package.json.

I would recommend to add following scripts to the package.json:

  "scripts" : {
    "start" : "grunt default" ,
    "readme" : "grunt readme",
    "i18n" : "grunt i18n"
  },
  1. start This represents the default grunt task in Gruntfile.js
  2. readme This script represents the Grunt Task for Readme.md generation
  3. i18n This script represents the Grund Task for .pot generation
schlessera commented 5 years ago

Fixed via #225