This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express from 'express'; | |
import cors from 'cors'; | |
import graphQLHTTP from 'express-graphql'; | |
import path from 'path'; | |
import webpack from 'webpack'; | |
import WebpackDevServer from 'webpack-dev-server'; | |
import {Schema} from './data/schema'; | |
const APP_PORT = 3000; | |
const GRAPHQL_PORT = 8080; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var babelify = require('babelify'); | |
var source = require('vinyl-source-stream'); | |
gulp.task('build', function () { | |
return browserify('js/src/main.js') | |
.transform("babelify", {presets: ["es2015", "react"], plugins: ["./babelRelayPlugin"]}) | |
.bundle() | |
.pipe(source('app.js')) |