Skip to content

Commit

Permalink
Move nteract-members to generated/
Browse files Browse the repository at this point in the history
  • Loading branch information
lgeiger authored and rgbkrk committed Nov 10, 2018
1 parent c22fe12 commit dc24659
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jspm_packages
.idea

package-lock.json
nteract-members.json
generated/
5 changes: 3 additions & 2 deletions fetch-members.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { GraphQLClient } = require("graphql-request");
const { writeFileSync } = require("fs");
const { writeFileSync, existsSync, mkdirSync } = require("fs");

async function fetchMembers(organisation) {
const token = process.env.GH_TOKEN;
Expand Down Expand Up @@ -46,7 +46,8 @@ async function fetchMembers(organisation) {

async function main() {
const members = await fetchMembers("nteract");
writeFileSync("./nteract-members.json", JSON.stringify(members));
if (!existsSync("generated")) mkdirSync("generated");
writeFileSync("./generated/nteract-members.json", JSON.stringify(members));
}

main();
2 changes: 1 addition & 1 deletion pages/about.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from "react";
import { GithubCircleIcon, WebIcon } from "mdi-react";
const NTERACT_MEMBERS = require("../nteract-members.json");
const NTERACT_MEMBERS = require("../generated/nteract-members.json");

import Layout from "@components/layout";
import {
Expand Down

1 comment on commit dc24659

@vercel
Copy link

@vercel vercel bot commented on dc24659 Nov 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully aliased the URL https://nteract-site-yolceptssn.now.sh to the following alias.

Please sign in to comment.