Closed derweili closed 5 years ago
The wp scaffold plugincommand creates a package.json and a Gruntfile.js
wp scaffold plugin
package.json
Gruntfile.js
The Gruntfile has two main tasks:
Readme.md
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" },
start
readme
i18n
Fixed via #225
The
wp scaffold plugin
command creates apackage.json
and aGruntfile.js
The Gruntfile has two main tasks:
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
:start
This represents the default grunt task in Gruntfile.jsreadme
This script represents the Grunt Task for Readme.md generationi18n
This script represents the Grund Task for .pot generation