Skip to content

Commit

Permalink
Merge pull request #4 from iteam-consulting/data-source
Browse files Browse the repository at this point in the history
List item data source
  • Loading branch information
mlynam authored Apr 21, 2020
2 parents 287a743 + 713b155 commit 577eb32
Show file tree
Hide file tree
Showing 13 changed files with 19,403 additions and 3,786 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,9 @@ dist

# TernJS port file
.tern-port

# Gatsby build results
public/

# Build results
plugins/gatsby-source-sharepoint-online/
4 changes: 4 additions & 0 deletions config/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
plugins: [["@babel/plugin-proposal-class-properties", { loose: true }]],
presets: [["@babel/preset-env", { targets: { esmodules: true } }]],
};
27 changes: 27 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
require("dotenv").config();

module.exports = {
plugins: [
{
resolve: "gatsby-source-sharepoint-online",
options: {
host: "iteamnm.sharepoint.com",
appId: process.env.AppId,
appSecret: process.env.AppSecret,
tenantId: process.env.TenantId,
sites: [
{
name: "gatsby-source-sharepoint-online",
relativePath: "sites/gatsby-source-sharepoint-online",
lists: [
{
title: "People",
fields: ["Person", "Apply", "Office"],
},
],
},
],
},
},
],
};
5 changes: 0 additions & 5 deletions gatsby-node.js

This file was deleted.

1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// noop
6 changes: 0 additions & 6 deletions lib/client.js

This file was deleted.

Loading

0 comments on commit 577eb32

Please sign in to comment.