Skip to content

Commit

Permalink
Activate wporg-learn plugin at env setup (#2503)
Browse files Browse the repository at this point in the history
* Add wporg-learn plugin to index.sh

#2495 add wporg-learn to the list of plugins that need to be activated during the environment setup

* Fix import content command

#2495 remove double quotes from the import content command

* Update build process and uncomment content import

Covers #2495
  • Loading branch information
freibergergarcia authored Jun 6, 2024
1 parent 3f9f9d5 commit 380e12c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm run wp-env run cli wp db import wp-content/uploads/wporg_events.sql
npm run wp-env run cli wp db import wp-content/uploads/wporg_locales.sql

# Activate plugins
npm run wp-env run cli wp plugin activate edit-flow jetpack wordpress-importer sensei-lms gutenberg locale-detection code-syntax-block
npm run wp-env run cli wp plugin activate edit-flow jetpack wordpress-importer sensei-lms gutenberg locale-detection code-syntax-block wporg-learn

# Activate jetpack modules
npm run wp-env run cli wp jetpack module activate contact-form
Expand All @@ -27,4 +27,4 @@ npm run wp-env run cli wp theme activate pub/wporg-learn-2024
npm run wp-env run cli wp rewrite structure '/%postname%/'

# Import content
# npm run wp-env run cli "php bin/import-test-content.php"
npm run wp-env run cli php bin/import-test-content.php
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
]
},
"scripts": {
"build": "yarn workspaces run build",
"create": "composer install && yarn setup:tools && yarn workspace wporg-learn-2024 run build && yarn run install:env",
"create:old": "composer install && yarn setup:tools && yarn workspaces run build && yarn run install:env:old",
"build": "yarn workspace wporg-learn-2024 run build && yarn workspace wporg-learn-plugin run build",
"build:old": "yarn workspace wporg-learn-theme run build && yarn workspace wporg-learn-plugin run build",
"create": "composer install && yarn setup:tools && yarn build && yarn run install:env",
"create:old": "composer install && yarn setup:tools && yarn build:old && yarn run install:env:old",
"format:php": "composer run format",
"install:env": "./bin/index.sh",
"install:env:old": "./bin/index.old.sh",
Expand Down

0 comments on commit 380e12c

Please sign in to comment.