1
0
Fork 0
forked from fedi/mastodon

Stop using Babel with streaming server (#3950)

This commit is contained in:
Yamagishi Kazutoshi 2017-06-26 11:49:39 +09:00 committed by Eugen Rochko
parent e5563843a2
commit 285038972b
3 changed files with 12 additions and 27 deletions

View file

@ -6,7 +6,7 @@
"build:development": "cross-env RAILS_ENV=development ./bin/webpack", "build:development": "cross-env RAILS_ENV=development ./bin/webpack",
"build:production": "cross-env RAILS_ENV=production ./bin/webpack", "build:production": "cross-env RAILS_ENV=production ./bin/webpack",
"manage:translations": "node ./config/webpack/translationRunner.js", "manage:translations": "node ./config/webpack/translationRunner.js",
"start": "rimraf ./tmp/streaming && babel ./streaming/index.js --out-dir ./tmp && node ./tmp/streaming/index.js", "start": "node ./streaming/index.js",
"storybook": "cross-env NODE_ENV=test start-storybook -s ./public -p 9001 -c storybook", "storybook": "cross-env NODE_ENV=test start-storybook -s ./public -p 9001 -c storybook",
"test": "npm run test:lint && npm run test:mocha", "test": "npm run test:lint && npm run test:mocha",
"test:lint": "eslint -c .eslintrc.yml --ext=js app/javascript/ config/webpack/ spec/javascript/ storybook/ streaming/", "test:lint": "eslint -c .eslintrc.yml --ext=js app/javascript/ config/webpack/ spec/javascript/ storybook/ streaming/",

View file

@ -1,15 +0,0 @@
{
"presets": [
[
"env",
{
"targets": {
"node": "current"
}
}
]
],
"plugins": [
"transform-object-rest-spread"
]
}

View file

@ -1,14 +1,14 @@
import os from 'os'; const os = require('os');
import throng from 'throng'; const throng = require('throng');
import dotenv from 'dotenv'; const dotenv = require('dotenv');
import express from 'express'; const express = require('express');
import http from 'http'; const http = require('http');
import redis from 'redis'; const redis = require('redis');
import pg from 'pg'; const pg = require('pg');
import log from 'npmlog'; const log = require('npmlog');
import url from 'url'; const url = require('url');
import WebSocket from 'uws'; const WebSocket = require('uws');
import uuid from 'uuid'; const uuid = require('uuid');
const env = process.env.NODE_ENV || 'development'; const env = process.env.NODE_ENV || 'development';