1
mirror of https://github.com/jakejarvis/netlify-plugin-cache.git synced 2025-06-27 16:25:40 -04:00

add *very* basic example site

This commit is contained in:
2020-06-06 12:51:29 -04:00
parent 97c0823c18
commit 703b80244e
9 changed files with 37 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# Local Netlify folder
.netlify

1
.npmignore Normal file
View File

@ -0,0 +1 @@
example/

5
example/.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
# Local Netlify folder
.netlify
cache-output.json
package-lock.json

3
example/README.md Normal file
View File

@ -0,0 +1,3 @@
[![Netlify Status](https://api.netlify.com/api/v1/badges/8ceb6251-650b-481a-976c-fec1a4f95800/deploy-status)](https://app.netlify.com/sites/infallible-wing-581e78/deploys)
https://infallible-wing-581e78.netlify.app/cache-output.json

1
example/cached/file1.md Normal file
View File

@ -0,0 +1 @@
This is a file. A cached file.

BIN
example/cached/file2.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 MiB

8
example/index.html Normal file
View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<body>
<h1>Hello world!</h1>
<p>This is an example of <a href="https://github.com/jakejarvis/netlify-plugin-cache"><code>netlify-plugin-cache</code></a>. ⚡</p>
<p><img src="cached/file2.gif"></p>
</body>
</html>

7
example/netlify.toml Normal file
View File

@ -0,0 +1,7 @@
[[plugins]]
package = "netlify-plugin-cache"
[plugins.inputs]
paths = ["cached"]
[[plugins]]
package = "netlify-plugin-debug-cache"

10
example/package.json Normal file
View File

@ -0,0 +1,10 @@
{
"private": true,
"name": "netlify-plugin-cache-example",
"version": "1.0.0",
"description": "Just a test of netlify-plugin-cache.",
"dependencies": {
"netlify-plugin-cache": "*",
"netlify-plugin-debug-cache": "^1.0.3"
}
}