@@ -60,13 +60,18 @@ var jsTasks = [
6060 }
6161] ;
6262
63- /* Define strings to replace using 'gelp rename', defined in the config section of package.json */
63+ /* Define strings to replace using 'gulp rename', defined in the config section of package.json */
6464var renameStrings = [
6565 [ 'dmhendricks\/wordpress-base-plugin' , pkg . config . username + '/' + pkg . name ] , // Git/Composer identifier
66- [ 'wordpress-base-plugin' , pkg . name ] , // Plugin slug
67- [ 'VendorName\\PluginName' , pkg . config . php_namespace ] , // PHP namespace for your plugin
68- [ 'VendorName\\\\PluginName' , pkg . config . php_namespace . replace ( / \\ / g, '\\\\' ) ] , // Rename Composer namespace
69- [ 'WPBP_NS' , pkg . config . javascript_object ] // Unique JavaScript object for your plugin
66+ [ 'VendorName\\PluginName' , pkg . config . php_namespace ] , // PHP namespace for your plugin
67+ [ 'VendorName\\\\PluginName' , pkg . config . php_namespace . replace ( / \\ / g, '\\\\' ) ] , // Rename Composer namespace
68+ [ 'wordpress-base-plugin' , pkg . name ] , // Plugin slug
69+ [ 'wordpress_base_plugin' , pkg . name . replace ( '-' , '_' ) ] , // Plugin underscored slug
70+ [ 'WPBP_NS' , pkg . config . prefix . toUpperCase ( ) + '_NS' ] , // Unique JavaScript object for your plugin
71+ [ 'wpbp' , pkg . config . prefix ] , // Replace remaining plugin prefixes
72+ [ 'WordPress Base Plugin' , pkg . config . plugin_name ] , // Replace plugin long name
73+ [ 'My Plugin' , pkg . config . plugin_short_name ] // Replace plugin short name
74+
7075] ;
7176
7277/**
0 commit comments