Browse Source

Updates for using composer

Grant Kinney 3 năm trước cách đây
mục cha
commit
09a060dfda
3 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 3 1
      .gitignore
  2. 1 1
      blockbase/composer.json
  3. 1 0
      blockbase/functions.php

+ 3 - 1
.gitignore

@@ -3,7 +3,9 @@ deploy/
 twentynineteen/
 theme-dev-utils/
 theme-dev-utils
-# vendor/
+vendor/
+# Don't ignore blockbase/vendor, which has package code needed by the theme
+!blockbase/vendor
 *.DS_Store
 *.zip
 *.rej

+ 1 - 1
blockbase/composer.json

@@ -1,6 +1,6 @@
 {
     "name": "automattic/blockbase",
-    "description": "WordPress theme",
+    "description": "A universal WordPress theme that bridges classic and block-based themes",
     "type": "project",
     "require": {
         "automattic/jetpack-google-fonts-provider": "^0.3.0"

+ 1 - 0
blockbase/functions.php

@@ -1,6 +1,7 @@
 <?php
 
 // Load Jetpack packages included with theme (Jetpack plugin is not required).
+// Run `composer update --no-dev` to update packages and commit the changes.
 require_once 'vendor/autoload.php';
 
 if ( ! function_exists( 'blockbase_support' ) ) :