Skip to content

Commit 04f84a6

Browse files
committed
need to run npm install before npm run start
1 parent 3ad1870 commit 04f84a6

File tree

11 files changed

+5
-27409
lines changed

11 files changed

+5
-27409
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Go to your WordPress Admin area and set "Celestial" as your active theme.
4343

4444
Back at your command prompt, type:
4545

46+
npm install
4647
npm run start
4748
```
4849

functions.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,6 @@
66
*/
77

88

9-
require __DIR__ . '/vendor/autoload.php';
10-
use Automattic\WooCommerce\Client;
11-
12-
$woocommerce = new Client(
13-
'http://localhost/wordpress',
14-
'ck_b66c7465b74ff0616f64451439b3ae44364700e4',
15-
'cs_e184fed6c116e7933130e90cee2795e08e9d71b5',
16-
[
17-
'wp_api' => true,
18-
'version' => 'wc/v2',
19-
]
20-
);
21-
22-
239
function celestial_scripts() {
2410

2511
// Load our main stylesheet.

index.php

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,4 @@
88
* @subpackage Celestial
99
* @since Celestial 1.0
1010
*/
11-
?>
12-
<!DOCTYPE html>
13-
14-
<html <?php language_attributes(); ?> class="no-js">
15-
<head>
16-
<meta charset="<?php bloginfo( 'charset' ); ?>">
17-
<meta name="viewport" content="width=device-width">
18-
<link rel="profile" href="http://gmpg.org/xfn/11">
19-
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
20-
<title>Celestial</title>
21-
<?php wp_head(); ?>
22-
<link href="/wordpress/wp-content/themes/celestial/static/css/main.389ead95.css" rel="stylesheet"></head>
23-
<body <?php body_class(); ?>>
24-
<div id="page" class="hfeed site">
25-
<div id="content">
26-
<div class="loader-gif">
27-
<img src="<?php echo $TEMPLATE_PATH ?>/dist/images/loading-icon.gif" alt="Loader">
28-
</div>
29-
</div>
30-
<?php wp_footer(); ?>
31-
</div>
32-
<script type="text/javascript" src="/wordpress/wp-content/themes/celestial/static/js/bundle.js"></script><?php $BRC_TEMPLATE_PATH = parse_url(get_template_directory_uri(), PHP_URL_PATH); ?>
33-
<script src='<?php echo $BRC_TEMPLATE_PATH; ?>/react-src/node_modules/@devloco/react-scripts-wptheme-utils/wpThemeClient.js'></script>
34-
<script src='<?php echo $BRC_TEMPLATE_PATH; ?>/react-src/node_modules/@devloco/react-scripts-wptheme-error-overlay/wpThemeErrorOverlay.js'></script>
35-
36-
<script> wpThemeClient.start("wss", "127.0.0.1", "8090"); </script>
37-
38-
</body>
39-
</html>
11+
?> <!doctype html><html <?php language_attributes(); ?> class="no-js"><head><meta charset="<?php bloginfo( 'charset' ); ?>"><meta name="viewport" content="width=device-width"><link rel="profile" href="http://gmpg.org/xfn/11"><link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"><title>Celestial</title> <?php wp_head(); ?> <link href="/wordpress/wp-content/themes/celestial/static/css/main.d6d1251c.css" rel="stylesheet"></head><body <?php body_class(); ?>><div id="page" class="hfeed site"><div id="content"><div class="loader-gif"><img src="<?php echo $TEMPLATE_PATH ?>/dist/images/loading-icon.gif" alt="Loader"></div></div> <?php wp_footer(); ?> </div><script type="text/javascript" src="/wordpress/wp-content/themes/celestial/static/js/main.49b703c0.js"></script></body></html>

react-src/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Go to your WordPress Admin area and set "Celestial" as your active theme.
4343

4444
Back at your command prompt, type:
4545

46+
npm install
4647
npm run start
4748
```
4849

react-src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "celestial",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"private": true,
55
"dependencies": {
66
"@devloco/react-scripts-wptheme": "1.2.2",

react-src/public/functions.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,6 @@
66
*/
77

88

9-
require __DIR__ . '/vendor/autoload.php';
10-
use Automattic\WooCommerce\Client;
11-
12-
$woocommerce = new Client(
13-
'http://localhost/wordpress',
14-
'ck_b66c7465b74ff0616f64451439b3ae44364700e4',
15-
'cs_e184fed6c116e7933130e90cee2795e08e9d71b5',
16-
[
17-
'wp_api' => true,
18-
'version' => 'wc/v2',
19-
]
20-
);
21-
22-
239
function celestial_scripts() {
2410

2511
// Load our main stylesheet.

service-worker.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/main.389ead95.css

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

static/css/main.389ead95.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)