Skip to content

Commit

Permalink
Revert "Try using gulp-sourcemaps"
Browse files Browse the repository at this point in the history
This reverts commit 7991114.
  • Loading branch information
ehmicky committed Feb 21, 2019
1 parent 2052c88 commit 1338aed
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 163 deletions.
157 changes: 0 additions & 157 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"gulp": "^4.0.0",
"gulp-babel": "^8.0.0",
"gulp-ignore": "^2.0.2",
"gulp-sourcemaps": "^2.6.5",
"gulp-yaml": "^2.0.3",
"is-ci": "^2.0.0",
"jscpd": "^2.0.6",
Expand Down
7 changes: 2 additions & 5 deletions src/tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const { include } = require('gulp-ignore')
const gulpBabel = require('gulp-babel')
const del = require('del')
const yamlToJson = require('gulp-yaml')
const sourcemaps = require('gulp-sourcemaps')

const { BUILD, BUILD_DIST } = require('../files')
const { getWatchTask } = require('../watch')
Expand All @@ -19,12 +18,10 @@ const copy = () =>
}).pipe(dest(BUILD_DIST))

const babel = () =>
src(`${BUILD}/**`, { dot: true, since: lastRun(babel) })
src(`${BUILD}/**`, { dot: true, since: lastRun(babel), sourcemaps: true })
.pipe(include(/\.(js)$/u))
.pipe(sourcemaps.init())
.pipe(gulpBabel({ comments: false, minified: true, retainLines: true }))
.pipe(sourcemaps.write('.'))
.pipe(dest(BUILD_DIST))
.pipe(dest(BUILD_DIST, { sourcemaps: '.' }))

const yaml = () =>
src(`${BUILD}/**`, { dot: true, since: lastRun(yaml) })
Expand Down

0 comments on commit 1338aed

Please sign in to comment.