denvned / isomorphic-relay-boilerplate

MIT License
30 stars 2 forks source link

Using server.babel.js rather than building each server. #5

Closed ncrmro closed 8 years ago

ncrmro commented 8 years ago

I currently have it working (I think?) where the backend and proxy both work with entries like this.

server.babel.js

require('babel-register');
require('babel-polyfill');
require('./index');

backend package.json

{
  "private": true,
  "dependencies": {
    "express-graphql": "^0.4.9",
    "graphql": "^0.4.18",
    "graphql-relay": "^0.3.6"
  },
  "scripts": {
    "postinstall": "npm run update-schema",
    "start": "node ./src/server.babel.js",
    "update-schema": "babel-node scripts/updateSchema.js"
  }
}

And working on getting the frontend working. Would you be open to a pull request like this?

denvned commented 8 years ago

Isn't that the same as just "start": "babel-node src"?

ncrmro commented 8 years ago

After looking into it your definitely right. Thanks for the info! Closing.