Skip to content

Commit

Permalink
fix: Skip sourcemapping in Node.js 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
hakatashi committed Oct 11, 2016
1 parent e23bea6 commit ce3f1a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
19 changes: 13 additions & 6 deletions Gulpfile.ls
Expand Up @@ -4,16 +4,23 @@ require! {
\vinyl-source-stream
\gulp-livescript
\gulp-rename
\gulp-sourcemaps
\lcov-sourcemap
}

if process.env.TRAVIS_NODE_VERSION isnt '0.12'
gulp-sourcemaps = require \gulp-sourcemaps

gulp.task \livescript ->
gulp.src <[*.ls test/*.ls !browser.ls !Gulpfile.ls]> base: \.
.pipe gulp-sourcemaps.init!
.pipe gulp-livescript!
.pipe gulp-sourcemaps.write \.
.pipe gulp.dest \.
if process.env.TRAVIS_NODE_VERSION isnt '0.12'
gulp.src <[*.ls test/*.ls !browser.ls !Gulpfile.ls]> base: \.
.pipe gulp-sourcemaps.init!
.pipe gulp-livescript!
.pipe gulp-sourcemaps.write \.
.pipe gulp.dest \.
else
gulp.src <[*.ls test/*.ls !browser.ls !Gulpfile.ls]> base: \.
.pipe gulp-livescript!
.pipe gulp.dest \.

gulp.task \browserify ->
browserify \browser.ls do
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"test": "gulp build && intern-client config=test/intern-node",
"build": "gulp build",
"coveralls": "gulp transform-lcov && cat lcov.info | coveralls",
"coveralls": "test \"$TRAVIS_NODE_VERSION\" = 0.12 || gulp transform-lcov && cat lcov.info | coveralls",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
Expand Down

0 comments on commit ce3f1a0

Please sign in to comment.