From f210260826e9d81680b1e3a8db9b97aa00e4fb6b Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 4 Mar 2017 19:20:58 +0900 Subject: [PATCH] Clean up :sparkles: --- gulpfile.ts | 4 ---- package.json | 6 ------ src/index.ts | 4 ---- src/tsconfig.json | 2 +- tsconfig.json | 2 +- 5 files changed, 2 insertions(+), 16 deletions(-) diff --git a/gulpfile.ts b/gulpfile.ts index 688ca29d3..ba0bc6c6d 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -6,7 +6,6 @@ import * as fs from 'fs'; import * as Path from 'path'; import * as gulp from 'gulp'; import * as gutil from 'gulp-util'; -import * as babel from 'gulp-babel'; import * as ts from 'gulp-typescript'; import tslint from 'gulp-tslint'; import * as glob from 'glob'; @@ -43,9 +42,6 @@ gulp.task('rebuild', ['clean', 'build']); gulp.task('build:js', () => gulp.src(['./src/**/*.js', '!./src/web/**/*.js']) - .pipe(babel({ - presets: ['es2015', 'stage-3'] - })) .pipe(gulp.dest('./built/')) ); diff --git a/package.json b/package.json index 2b83e2043..1c4d4add3 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,6 @@ "@types/glob": "5.0.30", "@types/gm": "1.17.29", "@types/gulp": "3.8.32", - "@types/gulp-babel": "6.1.29", "@types/gulp-mocha": "0.0.29", "@types/gulp-rename": "0.0.31", "@types/gulp-tslint": "3.6.30", @@ -65,10 +64,6 @@ "@types/webpack-stream": "3.2.6", "@types/websocket": "0.0.33", "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", "body-parser": "1.17.0", "chai": "3.5.0", @@ -94,7 +89,6 @@ "glob": "7.1.1", "gm": "1.23.0", "gulp": "3.9.1", - "gulp-babel": "6.1.2", "gulp-cssnano": "2.1.2", "gulp-imagemin": "3.1.1", "gulp-mocha": "4.0.1", diff --git a/src/index.ts b/src/index.ts index 937fef299..a226fdd6c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -26,10 +26,6 @@ import loadConfig from './config'; const clusterLog = debug('misskey:cluster'); -// Init babel -require('babel-core/register'); -require('babel-polyfill'); - enum InitResult { Success, Warn, diff --git a/src/tsconfig.json b/src/tsconfig.json index 2909810da..ecff047a7 100644 --- a/src/tsconfig.json +++ b/src/tsconfig.json @@ -8,7 +8,7 @@ "noFallthroughCasesInSwitch": true, "declaration": false, "sourceMap": false, - "target": "es6", + "target": "es2017", "module": "commonjs", "removeComments": false, "noLib": false diff --git a/tsconfig.json b/tsconfig.json index 515d1847b..064a04e4d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,7 @@ "noFallthroughCasesInSwitch": true, "declaration": false, "sourceMap": false, - "target": "es6", + "target": "es2017", "module": "commonjs", "removeComments": false, "noLib": false