From de2f2007b4942eb453f043d518bb550a3a53a6c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 17 Oct 2018 10:08:25 -0400 Subject: [PATCH] drop unused packages and stage-2 --- .babelrc | 5 ++--- gulpfile.js | 2 -- package.json | 8 ++------ 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.babelrc b/.babelrc index 737b503..b050e07 100644 --- a/.babelrc +++ b/.babelrc @@ -1,7 +1,6 @@ { "presets": [ - ["env", { "targets": {"node": "current"} }], - "stage-2" + ["@babel/env", { "targets": {"node": "current"} }] ], - "plugins": ["transform-async-to-generator"] + "plugins": ["@babel/plugin-transform-async-to-generator"] } diff --git a/gulpfile.js b/gulpfile.js index 14c22fb..73611a5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,6 +1,5 @@ const gulp = require('gulp') const babel = require('gulp-babel') -const concat = require('gulp-concat-util') const clean = require('gulp-clean') const print = require('gulp-print').default const nodemon = require('gulp-nodemon') @@ -23,7 +22,6 @@ gulp.task('build', () => gulp.src('src/**/*.js') .pipe(babel()) .pipe(print()) - .pipe(concat.scripts('counter.js')) .pipe(gulp.dest('dist/')) ) diff --git a/package.json b/package.json index a4fb96a..8f5b920 100644 --- a/package.json +++ b/package.json @@ -13,15 +13,11 @@ "devDependencies": { "@babel/cli": "^7.1.2", "@babel/core": "^7.1.2", + "@babel/plugin-transform-async-to-generator": "^7.1.0", "@babel/preset-env": "^7.1.0", - "@babel/preset-stage-2": "^7.0.0", "gulp": "^3.9.1", - "gulp-babel": "^7.0.1", + "gulp-babel": "^8.0.0-beta.2", "gulp-clean": "^0.4.0", - "gulp-concat": "^2.6.1", - "gulp-concat-util": "^0.5.5", - "gulp-count": "^1.0.0", - "gulp-debug": "^4.0.0", "gulp-nodemon": "^2.2.1", "gulp-print": "^5.0.0", "nodemon": "^1.18.4"