Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/uploads
/node_modules
/dist
/tmp
/tmp
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ For continuous builds, run
$ npm run watch
```

Now just select the theme `PWAWP-theme` in the WordPress _wp-admin_ page.

#### Docker

The Docker setup is a network consisting of Caddy, Apache2/PHP7 and a MySQL container. The image for the Apache2/PHP7 container is based on the [official Wordpress Docker image](https://hub.docker.com/_/wordpress/). It is also published to the [Docker Hub](https://hub.docker.com/r/surma/progressivewordpress/) if you don’t want to build locally. WordPress also needs a MySQL server for which the [official MySQL Docker image](https://hub.docker.com/_/mysql/) is used. [Caddy](https://hub.docker.com/r/abiosoft/caddy/) is added to the mix for easy local HTTP/2 development.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "ProgressiveWordPress",
"version": "0.0.3411",
"version": "0.0.3436",
"description": "A Sample WordPress-based Progressive Web App.",
"main": "index.js",
"scripts": {
"build": "npm version --no-git-tag-version -f patch && mkdir -p dist; node build.js",
"build": "npm version --no-git-tag-version -f patch && mkdir -p dist; node build.js && npm run link",
"copy-static": "cp -r src/*.php dist/",
"link": "ln -sf \"$(pwd)/dist/theme\" ../PWAWP-theme",
"minify-css": "for file in src/*.css; do csso src/*.css dist/ -m file",
"watch": "npm-watch"
},
Expand Down
3 changes: 2 additions & 1 deletion src/theme/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
*/
?>
<?php
require_once(dirname(__FILE__).'/../../../wp-load.php');
require('paths.php');
require_once($WP_LOADER_PATH);
etag_start();
?>
</pwp-view>
Expand Down
3 changes: 2 additions & 1 deletion src/theme/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
*/
?>
<?php
require_once(dirname(__FILE__).'/../../../wp-load.php');
require('paths.php');
require_once($WP_LOADER_PATH);
etag_start();
?>
<!doctype html>
Expand Down
3 changes: 3 additions & 0 deletions src/theme/paths.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php
$WP_LOADER_PATH = dirname(__FILE__).'../../../../../../wp-load.php'
?>
3 changes: 2 additions & 1 deletion src/theme/scripts/sw.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
*/
?>
<?
require('../../../../wp-load.php');
require('paths.php');
require_once($WP_LOADER_PATH);
etag_start();
header('Service-Worker-Allowed: /');
header('Content-Type: application/javascript');
Expand Down
Loading