gatsby-source-google-sheets:一个GatsbyJS插件,可从Google表格中的行中提取节点

时间:2021-05-01 07:29:14
【文件属性】:
文件名称:gatsby-source-google-sheets:一个GatsbyJS插件,可从Google表格中的行中提取节点
文件大小:34KB
文件格式:ZIP
更新时间:2021-05-01 07:29:14
JavaScript gatsby-source-google-sheets 当Google表格已经具有用户权限,修订历史记录和功能强大的UI时,为什么还要麻烦设置复杂的无头CMS? 此源插件会将所有Google表格工作表都转换为GraphQL类型,以节省构建时间。 如何: 第1步:设置工作表/权限 创建一个并下载凭据文件。 打开您的Google工作表,单击“文件>共享...”,然后输入服务帐户的电子邮件地址(您可以在凭据文件中找到它)。 步骤2:配置您的Gatsby项目 标准源插件安装。 yarn add gatsby-source-google-sheets // gatsby-config.js // ... { resolve: 'gatsby-source-google-sheets', options: { spreadsheetId: 'get this f
【文件预览】:
gatsby-source-google-sheets-master
----fetch-sheet.js(2KB)
----.babelrc(167B)
----index.js(14B)
----.babelrc.js(1KB)
----.flowconfig(48B)
----package.json(1KB)
----yarn-error.log(93KB)
----src()
--------fetch-sheet.js(3KB)
--------__test__()
--------gatsby-node.js(942B)
----.npmignore(637B)
----.gitignore(233B)
----README.md(2KB)
----__test__()
--------fetch-sheet.test.js(2KB)
----gatsby-node.js(883B)

网友评论