Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing script to plugins package.json #224

Closed
derweili opened this issue Apr 26, 2019 · 1 comment
Closed

Add missing script to plugins package.json #224

derweili opened this issue Apr 26, 2019 · 1 comment

Comments

@derweili
Copy link
Contributor

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

The Gruntfile has two main tasks:

  • A task to generate pot files from source code
  • A task to create a Readme.md file from `Readme.txt``

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
Copy link
Member

Fixed via #225

@schlessera schlessera added this to the 2.0.7 milestone Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants