Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Cai <jimmehcai@gmail.com>2021-07-09 14:23:18 +0300
committerJimmy Cai <jimmehcai@gmail.com>2021-07-09 14:23:18 +0300
commit230468d61323f7ad9af3c4eee562f1c881229c30 (patch)
tree04032e298cd89991fbf8408131a8eed0e060998d
parent0afa502cdd3be1f7d07259975813a389ccd1363a (diff)
ci: remove exampleSite/pluginsv2.6.0
-rw-r--r--exampleSite/plugins/netlify-plugin-hugo-cache-resources/README.md27
-rw-r--r--exampleSite/plugins/netlify-plugin-hugo-cache-resources/index.js39
-rw-r--r--exampleSite/plugins/netlify-plugin-hugo-cache-resources/manifest.yml5
3 files changed, 0 insertions, 71 deletions
diff --git a/exampleSite/plugins/netlify-plugin-hugo-cache-resources/README.md b/exampleSite/plugins/netlify-plugin-hugo-cache-resources/README.md
deleted file mode 100644
index a7c1ef2..0000000
--- a/exampleSite/plugins/netlify-plugin-hugo-cache-resources/README.md
+++ /dev/null
@@ -1,27 +0,0 @@
-> Original Repo: https://github.com/cdeleeuwe/netlify-plugin-hugo-cache-resources
->
-# Netlify Build Plugin: Persist Hugo resources Between Builds
-
-Persist [Hugo](https://gohugo.io/) resources folder between Netlify builds for huge build speed improvements! ⚡️
-
-This plugin caches the `resources` folder after build. If you are processing many images, this would improve build duration significantly.
-
-Note: Restoring cache only comes from the production branch. So once cache is saved on the production branch, the next preview build would use the cache. For example, when pushing to the same preview build, the latest preview build will not get the cache from the previous preview build, but will get it from master.
-
-## Usage
-
-To install, add the following lines to your `netlify.toml` file:
-
-```toml
-[build]
- publish = "public"
-
-[[plugins]]
- package = "netlify-plugin-hugo-cache-resources"
-
- [plugins.inputs]
- # If it should show more verbose logs (optional, default = true)
- debug = true
-```
-
-Note: The `[[plugins]]` line is required for each plugin, even if you have other plugins in your `netlify.toml` file already. \ No newline at end of file
diff --git a/exampleSite/plugins/netlify-plugin-hugo-cache-resources/index.js b/exampleSite/plugins/netlify-plugin-hugo-cache-resources/index.js
deleted file mode 100644
index fd8ffb6..0000000
--- a/exampleSite/plugins/netlify-plugin-hugo-cache-resources/index.js
+++ /dev/null
@@ -1,39 +0,0 @@
-const getResourcesDir = () => {
- return 'exampleSite/resources';
-}
-
-const printList = (items) => {
- console.log('---');
- items.forEach((item, index) => {
- console.log(`${index + 1}. ${item}`);
- });
-}
-
-module.exports = {
-
- async onPreBuild({ utils, inputs }) {
- const path = getResourcesDir();
- const success = await utils.cache.restore(path);
-
- if (success) {
- const cachedFiles = await utils.cache.list(path);
- console.log(`Restored cached resources folder. Total files: ${cachedFiles.length}`);
- if (inputs.debug) printList(cachedFiles);
- } else {
- console.log(`No cache found for resources folder`);
- }
- },
-
- async onPostBuild({ utils, inputs }) {
- const path = getResourcesDir();
- const success = await utils.cache.save(path);
-
- if (success) {
- const cachedFiles = await utils.cache.list(path);
- console.log(`Saved resources folder to cache. Total files: ${cachedFiles.length}`);
- if (inputs.debug) printList(cachedFiles);
- } else {
- console.log(`No resources folder cached`);
- }
- }
-}; \ No newline at end of file
diff --git a/exampleSite/plugins/netlify-plugin-hugo-cache-resources/manifest.yml b/exampleSite/plugins/netlify-plugin-hugo-cache-resources/manifest.yml
deleted file mode 100644
index d6a208f..0000000
--- a/exampleSite/plugins/netlify-plugin-hugo-cache-resources/manifest.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-name: netlify-plugin-hugo-cache
-inputs:
- - name: debug
- description: Show more verbose logs
- default: true \ No newline at end of file