Remove grunt from plugin scaffolding by ernilambar · Pull Request #337 · wp-cli/scaffold-command · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions features/scaffold.feature
3 changes: 1 addition & 2 deletions src/Scaffold_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,7 @@ public function plugin( $args, $assoc_args ) {
$files_to_create = [
$plugin_path => self::mustache_render( 'plugin.mustache', $data ),
$plugin_readme_path => self::mustache_render( 'plugin-readme.mustache', $data ),
"{$plugin_dir}/package.json" => self::mustache_render( 'plugin-packages.mustache', $data ),
"{$plugin_dir}/Gruntfile.js" => self::mustache_render( 'plugin-gruntfile.mustache', $data ),
"{$plugin_dir}/composer.json" => self::mustache_render( 'plugin-composer.mustache', $data ),
"{$plugin_dir}/.gitignore" => self::mustache_render( 'plugin-gitignore.mustache', $data ),
"{$plugin_dir}/.distignore" => self::mustache_render( 'plugin-distignore.mustache', $data ),
"{$plugin_dir}/.editorconfig" => file_get_contents( self::get_template_path( '.editorconfig' ) ),
Expand Down
8 changes: 8 additions & 0 deletions templates/plugin-composer.mustache
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"require-dev": {
"wp-cli/i18n-command": "^2"
},
"scripts": {
"makepot": "wp i18n make-pot ."
}
}
1 change: 1 addition & 0 deletions templates/plugin-gitignore.mustache
56 changes: 0 additions & 56 deletions templates/plugin-gruntfile.mustache

This file was deleted.

17 changes: 0 additions & 17 deletions templates/plugin-packages.mustache

This file was deleted.