Skip to content

Commit

Permalink
Updated index file
Browse files Browse the repository at this point in the history
  • Loading branch information
myhendry committed May 6, 2018
1 parent 182c2c4 commit 84610d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/index.js → index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { ApolloEngine } from "apollo-engine";
import { makeExecutableSchema } from "graphql-tools";
import cors from "cors";

import "./config/db";
import constants from "../src/config/constants";
import { typeDefs } from "./graphql/schema";
import { resolvers } from "./graphql/resolvers";
import middlewares from "../src/config/middlewares";
import "./src/config/db";
import constants from "./src/config/constants";
import { typeDefs } from "./src/graphql/schema";
import { resolvers } from "./src/graphql/resolvers";
import middlewares from "./src/config/middlewares";

const app = express();

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"private": true,
"main": "./src/index.js",
"main": "index.js",
"scripts": {
"start": "babel-node ./src/index.js",
"start": "babel-node index.js",
"client": "npm run start --prefix client",
"server": "cross-env NODE_ENV=dev nodemon --exec babel-node ./src/index.js",
"server": "cross-env NODE_ENV=dev nodemon --exec babel-node index.js",
"dev": "concurrently \"npm run server\" \"npm run client\"",
"prettier": "prettier --single-quote --print-width 80 --trailing-comma all --write 'src/**/*.js'"
"prettier":
"prettier --single-quote --print-width 80 --trailing-comma all --write 'src/**/*.js'"
},
"dependencies": {
"apollo-engine": "^1.0.1",
Expand Down

0 comments on commit 84610d0

Please sign in to comment.