Skip to content
Permalink
Browse files

feat(babel): use npm package babel-plugin-transform-strict-mode

  • Loading branch information
jyounce committed Nov 6, 2015
1 parent 20d65a2 commit 206ade4a07265a0065168ad10b39c3a156e59a8e
Showing with 9 additions and 6 deletions.
  1. +1 −0 package.json
  2. +8 −6 tasks/compile/es6.coffee
@@ -28,6 +28,7 @@
"prepend-file": "1.3.0"
},
"dependencies": {
"babel-plugin-transform-strict-mode": "6.1.2",
"body-parser": "1.14.1",
"bower": "1.6.5",
"browser-sync": "2.9.12",
@@ -1,15 +1,17 @@
module.exports = (config, gulp, taskOpts={}) ->
q = require 'q'
babel = require 'gulp-babel'
plumber = require 'gulp-plumber'
tasks = require("#{config.req.helpers}/tasks") config
forWatchFile = !!taskOpts.watchFile
q = require 'q'
babel = require 'gulp-babel'
plumber = require 'gulp-plumber'
useStrictMode = require 'babel-plugin-transform-strict-mode'
tasks = require("#{config.req.helpers}/tasks") config
forWatchFile = !!taskOpts.watchFile
babelOpts = plugins: [useStrictMode]

runTask = (src, dest) ->
defer = q.defer()
gulp.src src
.pipe plumber()
.pipe babel()
.pipe babel babelOpts
.pipe gulp.dest dest
.on 'end', ->
# console.log dest

0 comments on commit 206ade4

Please sign in to comment.
You can’t perform that action at this time.