Skip to content

Commit

Permalink
Merge pull request #225 from derweili/derweili-plugin-package-json-sc…
Browse files Browse the repository at this point in the history
…ripts

Scripts added to plugin `package.json`
  • Loading branch information
schlessera authored Aug 12, 2019
2 parents 732b218 + 4f0ae20 commit f30f12b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scaffold_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ private function get_output_path( $assoc_args, $subdir ) {
*
* * `plugin-slug.php` is the main PHP plugin file.
* * `readme.txt` is the readme file for the plugin.
* * `package.json` needed by NPM holds various metadata relevant to the project. Packages: `grunt`, `grunt-wp-i18n` and `grunt-wp-readme-to-markdown`.
* * `package.json` needed by NPM holds various metadata relevant to the project. Packages: `grunt`, `grunt-wp-i18n` and `grunt-wp-readme-to-markdown`. Scripts: `start`, `readme`, `i18n`.
* * `Gruntfile.js` is the JS file containing Grunt tasks. Tasks: `i18n` containing `addtextdomain` and `makepot`, `readme` containing `wp_readme_to_markdown`.
* * `.editorconfig` is the configuration file for Editor.
* * `.gitignore` tells which files (or patterns) git should ignore.
Expand Down
5 changes: 5 additions & 0 deletions templates/plugin-packages.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"version": "0.1.0",
"main": "Gruntfile.js",
"author": "{{plugin_author}}",
"scripts" : {
"start" : "grunt default" ,
"readme" : "grunt readme",
"i18n" : "grunt i18n"
},
"devDependencies": {
"grunt": "~0.4.5",
"grunt-wp-i18n": "~0.5.0",
Expand Down

0 comments on commit f30f12b

Please sign in to comment.