gatsby-theme-wirehead-tree 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.circleci/config.yml +5 -6
- package/gatsby-node.js +7 -0
- package/package.json +2 -2
package/.circleci/config.yml
CHANGED
|
@@ -3,7 +3,7 @@ version: 2.1
|
|
|
3
3
|
defaults: &defaults
|
|
4
4
|
working_directory: ~/repo
|
|
5
5
|
docker:
|
|
6
|
-
- image:
|
|
6
|
+
- image: cimg/node:12.22
|
|
7
7
|
jobs:
|
|
8
8
|
test:
|
|
9
9
|
<<: *defaults
|
|
@@ -35,11 +35,10 @@ jobs:
|
|
|
35
35
|
- attach_workspace:
|
|
36
36
|
at: ~/repo
|
|
37
37
|
- run:
|
|
38
|
-
name:
|
|
39
|
-
command:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
command: npm publish
|
|
38
|
+
name: Publish package with OIDC
|
|
39
|
+
command: |
|
|
40
|
+
export NPM_ID_TOKEN=$(circleci run oidc get --claims '{"aud": "npm:registry.npmjs.org"}')
|
|
41
|
+
npm publish
|
|
43
42
|
|
|
44
43
|
workflows:
|
|
45
44
|
version: 2
|
package/gatsby-node.js
CHANGED
|
@@ -93,6 +93,11 @@ exports.onCreateNode = ({ node, actions }, pluginOptions) => {
|
|
|
93
93
|
name: "date",
|
|
94
94
|
value: node.frontmatter.date,
|
|
95
95
|
});
|
|
96
|
+
createNodeField({
|
|
97
|
+
node,
|
|
98
|
+
name: "hidden",
|
|
99
|
+
value: node.frontmatter.hidden,
|
|
100
|
+
});
|
|
96
101
|
createNodeField({
|
|
97
102
|
node,
|
|
98
103
|
name: "updated",
|
|
@@ -250,6 +255,7 @@ exports.createPages = async ({ actions, graphql, pathPrefix, reporter }, themeOp
|
|
|
250
255
|
title
|
|
251
256
|
type
|
|
252
257
|
description
|
|
258
|
+
hidden
|
|
253
259
|
}
|
|
254
260
|
excerpt(pruneLength: 300)
|
|
255
261
|
}
|
|
@@ -285,6 +291,7 @@ exports.createPages = async ({ actions, graphql, pathPrefix, reporter }, themeOp
|
|
|
285
291
|
title: title,
|
|
286
292
|
type: node.frontmatter.type,
|
|
287
293
|
date: node.fields.date,
|
|
294
|
+
hidden: node.frontmatter.hidden,
|
|
288
295
|
breadcrumbs: toBreadcrumb(basePath, pagePath, titles),
|
|
289
296
|
excerpt: node.frontmatter.description || node.excerpt,
|
|
290
297
|
updated: node.fields.updated,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-theme-wirehead-tree",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"engines": {
|
|
27
27
|
"npm": ">=6.0.0",
|
|
28
|
-
"node": ">=
|
|
28
|
+
"node": ">=12.22.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"gatsby": "^3.3.0",
|