Skip to content

Commit a78a1b7

Browse files
committed
Remove grunt
1 parent 7a7d145 commit a78a1b7

File tree

5 files changed

+10
-75
lines changed

5 files changed

+10
-75
lines changed

src/Scaffold_Command.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,7 @@ public function plugin( $args, $assoc_args ) {
670670
$files_to_create = [
671671
$plugin_path => self::mustache_render( 'plugin.mustache', $data ),
672672
$plugin_readme_path => self::mustache_render( 'plugin-readme.mustache', $data ),
673-
"{$plugin_dir}/package.json" => self::mustache_render( 'plugin-packages.mustache', $data ),
674-
"{$plugin_dir}/Gruntfile.js" => self::mustache_render( 'plugin-gruntfile.mustache', $data ),
673+
"{$plugin_dir}/composer.json" => self::mustache_render( 'plugin-composer.mustache', $data ),
675674
"{$plugin_dir}/.gitignore" => self::mustache_render( 'plugin-gitignore.mustache', $data ),
676675
"{$plugin_dir}/.distignore" => self::mustache_render( 'plugin-distignore.mustache', $data ),
677676
"{$plugin_dir}/.editorconfig" => file_get_contents( self::get_template_path( '.editorconfig' ) ),

templates/plugin-composer.mustache

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"require-dev": {
3+
"wp-cli/i18n-command": "^2"
4+
},
5+
"scripts": {
6+
"makepot": "./vendor/bin/wp i18n make-pot ."
7+
}
8+
}

templates/plugin-gitignore.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ phpunit.xml
44
Thumbs.db
55
wp-cli.local.yml
66
node_modules/
7+
vendor/
78
*.sql
89
*.tar.gz
910
*.zip

templates/plugin-gruntfile.mustache

Lines changed: 0 additions & 56 deletions
This file was deleted.

templates/plugin-packages.mustache

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)