Clean up

This commit is contained in:
syuilo 2017-03-04 19:20:58 +09:00
parent b99dc759e6
commit f210260826
5 changed files with 2 additions and 16 deletions

View file

@ -6,7 +6,6 @@ import * as fs from 'fs';
import * as Path from 'path'; import * as Path from 'path';
import * as gulp from 'gulp'; import * as gulp from 'gulp';
import * as gutil from 'gulp-util'; import * as gutil from 'gulp-util';
import * as babel from 'gulp-babel';
import * as ts from 'gulp-typescript'; import * as ts from 'gulp-typescript';
import tslint from 'gulp-tslint'; import tslint from 'gulp-tslint';
import * as glob from 'glob'; import * as glob from 'glob';
@ -43,9 +42,6 @@ gulp.task('rebuild', ['clean', 'build']);
gulp.task('build:js', () => gulp.task('build:js', () =>
gulp.src(['./src/**/*.js', '!./src/web/**/*.js']) gulp.src(['./src/**/*.js', '!./src/web/**/*.js'])
.pipe(babel({
presets: ['es2015', 'stage-3']
}))
.pipe(gulp.dest('./built/')) .pipe(gulp.dest('./built/'))
); );

View file

@ -37,7 +37,6 @@
"@types/glob": "5.0.30", "@types/glob": "5.0.30",
"@types/gm": "1.17.29", "@types/gm": "1.17.29",
"@types/gulp": "3.8.32", "@types/gulp": "3.8.32",
"@types/gulp-babel": "6.1.29",
"@types/gulp-mocha": "0.0.29", "@types/gulp-mocha": "0.0.29",
"@types/gulp-rename": "0.0.31", "@types/gulp-rename": "0.0.31",
"@types/gulp-tslint": "3.6.30", "@types/gulp-tslint": "3.6.30",
@ -65,10 +64,6 @@
"@types/webpack-stream": "3.2.6", "@types/webpack-stream": "3.2.6",
"@types/websocket": "0.0.33", "@types/websocket": "0.0.33",
"autwh": "0.0.1", "autwh": "0.0.1",
"babel-core": "6.23.1",
"babel-polyfill": "6.23.0",
"babel-preset-es2015": "6.22.0",
"babel-preset-stage-3": "6.22.0",
"bcryptjs": "2.4.3", "bcryptjs": "2.4.3",
"body-parser": "1.17.0", "body-parser": "1.17.0",
"chai": "3.5.0", "chai": "3.5.0",
@ -94,7 +89,6 @@
"glob": "7.1.1", "glob": "7.1.1",
"gm": "1.23.0", "gm": "1.23.0",
"gulp": "3.9.1", "gulp": "3.9.1",
"gulp-babel": "6.1.2",
"gulp-cssnano": "2.1.2", "gulp-cssnano": "2.1.2",
"gulp-imagemin": "3.1.1", "gulp-imagemin": "3.1.1",
"gulp-mocha": "4.0.1", "gulp-mocha": "4.0.1",

View file

@ -26,10 +26,6 @@ import loadConfig from './config';
const clusterLog = debug('misskey:cluster'); const clusterLog = debug('misskey:cluster');
// Init babel
require('babel-core/register');
require('babel-polyfill');
enum InitResult { enum InitResult {
Success, Success,
Warn, Warn,

View file

@ -8,7 +8,7 @@
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"declaration": false, "declaration": false,
"sourceMap": false, "sourceMap": false,
"target": "es6", "target": "es2017",
"module": "commonjs", "module": "commonjs",
"removeComments": false, "removeComments": false,
"noLib": false "noLib": false

View file

@ -8,7 +8,7 @@
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"declaration": false, "declaration": false,
"sourceMap": false, "sourceMap": false,
"target": "es6", "target": "es2017",
"module": "commonjs", "module": "commonjs",
"removeComments": false, "removeComments": false,
"noLib": false "noLib": false