Skip to content

Commit

Permalink
Merge pull request #94 from vladimirpikul/master
Browse files Browse the repository at this point in the history
babelify upgraded; deleted unnecessary dependencies
  • Loading branch information
sgurin authored Aug 23, 2019
2 parents 8f973ab + 1911df7 commit c7a0e8f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
17 changes: 7 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@
},
"homepage": "https://github.com/justcoded/web-starter-kit",
"devDependencies": {
"babel-eslint": "^10.0.1",
"babel-preset-es2015": "^6.24.0",
"babelify": "^7.3.0",
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"babelify": "^10.0.0",
"browser-sync": "^2.18.0",
"browserify": "^14.0.0",
"browserify": "^16.5.0",
"del": "^3.0.0",
"eslint": "^5.11.1",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.14.0",
"files-exist": "^1.0.2",
"files-exist": "^1.1.0",
"gulp": "^4.0.0",
"gulp-autoprefixer": "^4.0.0",
"gulp-concat": "^2.6.1",
"gulp-cssimport": "^5.0.0",
"gulp-cssnano": "^2.1.2",
"gulp-debug": "^3.1.0",
"gulp-eslint": "^5.0.0",
"gulp-file-include": "^2.0.1",
"gulp-group-css-media-queries": "^1.2.0",
"gulp-htmlhint": "^0.3.1",
"gulp-if": "^2.0.2",
Expand All @@ -46,12 +46,9 @@
"gulp-sass": "^4.0.2",
"gulp-sourcemaps": "^2.4.1",
"gulp-uglify": "^3.0.0",
"gulp-util": "^3.0.8",
"gulp-file-include": "^2.0.1",
"htmlhint-stylish": "^1.0.3",
"node-notifier": "^5.0.2",
"path": "^0.12.7",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^2.0.0"
},
"engines": {
Expand Down
5 changes: 2 additions & 3 deletions tasks/browser-sync-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
*/
'use strict';

const gulp = require('gulp'),
fs = require('fs');
const fs = require('fs');

module.exports = function(options) {

Expand All @@ -15,7 +14,7 @@ module.exports = function(options) {
options.browserSync.init({
notify: false,
server: {
baseDir: "./",
baseDir: './',
directory: listDirectory
},
snippetOptions: {
Expand Down
14 changes: 12 additions & 2 deletions tasks/build-custom-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

const gulp = require('gulp'),
browserify = require('browserify'),
babelify = require('babelify'),
source = require('vinyl-source-stream');

module.exports = function(options) {
Expand All @@ -16,8 +15,19 @@ module.exports = function(options) {
// Remove sourcemap for production
debug: !options.isProduction
})
// If you need to 'babelify' with options:
// .transform('babelify', {
// presets: [
// ['@babel/preset-env', {
// exclude: [
// 'transform-template-literals',
// ],
// debug: true,
// }],
// ],
// })
.transform('babelify', {
presets: ['es2015']
presets: ['@babel/preset-env'],
})
.bundle().on('error', function(err) {
options.showError.apply(this, ['JS error', err])
Expand Down

0 comments on commit c7a0e8f

Please sign in to comment.