Skip to content

Commit 703b802

Browse files
committed
add *very* basic example site
1 parent 97c0823 commit 703b802

File tree

9 files changed

+37
-0
lines changed

9 files changed

+37
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Local Netlify folder
2+
.netlify

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
example/

example/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Local Netlify folder
2+
.netlify
3+
4+
cache-output.json
5+
package-lock.json

example/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[![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)
2+
3+
https://infallible-wing-581e78.netlify.app/cache-output.json

example/cached/file1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is a file. A cached file.

example/cached/file2.gif

4.22 MB
Loading

example/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
<h1>Hello world!</h1>
5+
<p>This is an example of <a href="https://github.com/jakejarvis/netlify-plugin-cache"><code>netlify-plugin-cache</code></a>. ⚡</p>
6+
<p><img src="cached/file2.gif"></p>
7+
</body>
8+
</html>

example/netlify.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[[plugins]]
2+
package = "netlify-plugin-cache"
3+
[plugins.inputs]
4+
paths = ["cached"]
5+
6+
[[plugins]]
7+
package = "netlify-plugin-debug-cache"

example/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"private": true,
3+
"name": "netlify-plugin-cache-example",
4+
"version": "1.0.0",
5+
"description": "Just a test of netlify-plugin-cache.",
6+
"dependencies": {
7+
"netlify-plugin-cache": "*",
8+
"netlify-plugin-debug-cache": "^1.0.3"
9+
}
10+
}

0 commit comments

Comments
 (0)