mirror of
https://github.com/kikobar/mastodon.git
synced 2024-12-25 15:24:14 +00:00
Stop using Babel with streaming server (#3950)
This commit is contained in:
parent
e5563843a2
commit
285038972b
|
@ -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/",
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
{
|
|
||||||
"presets": [
|
|
||||||
[
|
|
||||||
"env",
|
|
||||||
{
|
|
||||||
"targets": {
|
|
||||||
"node": "current"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"plugins": [
|
|
||||||
"transform-object-rest-spread"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -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';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue