|
5 | 5 |
|
6 | 6 | # Install dependencies |
7 | 7 | composer update |
8 | | -yarn |
| 8 | +npm install |
9 | 9 |
|
10 | 10 | # Build the project |
11 | | -yarn workspaces run build |
| 11 | +npm run build --workspaces |
12 | 12 |
|
13 | 13 | # Setup the environment |
14 | | -yarn wp-env start --update |
| 14 | +npm run wp-env start --update |
15 | 15 |
|
16 | 16 | # Update wp configs |
17 | | -yarn wp-env run cli wp config set JETPACK_DEV_DEBUG true |
18 | | -yarn wp-env run cli wp config set WPORG_SANDBOXED true |
| 17 | +npm run wp-env run cli wp config set JETPACK_DEV_DEBUG true |
| 18 | +npm run wp-env run cli wp config set WPORG_SANDBOXED true |
19 | 19 |
|
20 | 20 | # Create the table for locales |
21 | | -yarn wp-env run cli wp db import wp-content/uploads/data/wporg_locales.sql |
| 21 | +npm run wp-env run cli wp db import wp-content/uploads/data/wporg_locales.sql |
22 | 22 |
|
23 | 23 | # Activate plugins |
24 | | -yarn wp-env run cli wp plugin activate wordpress-importer |
25 | | -yarn wp-env run cli wp plugin activate gutenberg |
26 | | -yarn wp-env run cli wp plugin activate pattern-directory/bootstrap.php |
27 | | -yarn wp-env run cli wp plugin activate pattern-creator |
| 24 | +npm run wp-env run cli wp plugin activate wordpress-importer |
| 25 | +npm run wp-env run cli wp plugin activate gutenberg |
| 26 | +npm run wp-env run cli wp plugin activate pattern-directory/bootstrap.php |
| 27 | +npm run wp-env run cli wp plugin activate pattern-creator |
28 | 28 |
|
29 | 29 | # Activate theme |
30 | | -yarn wp-env run cli wp theme activate pattern-directory |
| 30 | +npm run wp-env run cli wp theme activate pattern-directory |
31 | 31 |
|
32 | 32 | # Change permalinks |
33 | | -yarn wp-env run cli wp rewrite structure '/%postname%/' |
| 33 | +npm run wp-env run cli wp rewrite structure '/%postname%/' |
34 | 34 |
|
35 | 35 | # Set up site title |
36 | | -yarn wp-env run cli wp option update blogname "Pattern Directory" |
37 | | -yarn wp-env run cli wp option update blogdescription "Add a beautifully designed, ready to go layout to any WordPress site with a simple copy/paste." |
| 36 | +npm run wp-env run cli wp option update blogname "Pattern Directory" |
| 37 | +npm run wp-env run cli wp option update blogdescription "Add a beautifully designed, ready to go layout to any WordPress site with a simple copy/paste." |
38 | 38 |
|
39 | 39 | # Create the default pages |
40 | | -yarn wp-env run cli wp post create --post_type=page --post_status='publish' --post_name='front-page' --post_title='Pattern Directory' |
41 | | -yarn wp-env run cli wp post create --post_type=page --post_status='publish' --post_name='archives' --post_title='Archives' |
| 40 | +npm run wp-env run cli wp post create --post_type=page --post_status='publish' --post_name='front-page' --post_title='Pattern Directory' |
| 41 | +npm run wp-env run cli wp post create --post_type=page --post_status='publish' --post_name='archives' --post_title='Archives' |
42 | 42 |
|
43 | | -yarn wp-env run cli wp option update show_on_front 'page' |
44 | | -yarn wp-env run cli wp option update page_on_front 4 |
45 | | -yarn wp-env run cli wp option update page_for_posts 5 |
46 | | -yarn wp-env run cli wp option update posts_per_page 18 |
| 43 | +npm run wp-env run cli wp option update show_on_front 'page' |
| 44 | +npm run wp-env run cli wp option update page_on_front 4 |
| 45 | +npm run wp-env run cli wp option update page_for_posts 5 |
| 46 | +npm run wp-env run cli wp option update posts_per_page 18 |
47 | 47 |
|
48 | 48 | # Import content |
49 | | -yarn wp-env run cli wp import --authors=create --skip=image_resize wp-content/uploads/data/exports/pattern-dir.000.xml |
50 | | -yarn wp-env run cli wp import --authors=create --skip=image_resize wp-content/uploads/data/exports/pattern-dir.001.xml |
| 49 | +npm run wp-env run cli wp import --authors=create --skip=image_resize wp-content/uploads/data/exports/pattern-dir.000.xml |
| 50 | +npm run wp-env run cli wp import --authors=create --skip=image_resize wp-content/uploads/data/exports/pattern-dir.001.xml |
0 commit comments