Skip to content

Commit

Permalink
Fixing gulp deprecated warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gdelavald committed Oct 27, 2017
1 parent 5ab6745 commit 23f034a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tasks/build_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ gulp.task('build-unit', ['environment'], function () {
rollupPlugins: [
istanbul({
exclude: ['**/*.spec.js', '**/specs.js.autogenerated'],
sourceMap: true
sourcemap: true
})
]
});
Expand Down
8 changes: 4 additions & 4 deletions tasks/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = function (src, dest, opts) {
opts = opts || {};
opts.rollupPlugins = opts.rollupPlugins || [];
return rollup({
entry: src,
input: src,
external: generateExternalModulesList(),
cache: cached[src],
plugins: opts.rollupPlugins,
Expand All @@ -39,8 +39,8 @@ module.exports = function (src, dest, opts) {
const jsFile = path.basename(dest);
return bundle.generate({
format: 'cjs',
sourceMap: true,
sourceMapFile: jsFile,
sourcemap: true,
sourcemapFile: jsFile,
});
})
.then(function (result) {
Expand All @@ -49,7 +49,7 @@ module.exports = function (src, dest, opts) {
const isolatedCode = '(function () {' + result.code + '\n}());';
const jsFile = path.basename(dest);
return Promise.all([
jetpack.writeAsync(dest, isolatedCode + '\n//# sourceMappingURL=' + jsFile + '.map'),
jetpack.writeAsync(dest, isolatedCode + '\n//# sourcemappingURL=' + jsFile + '.map'),
jetpack.writeAsync(dest + '.map', result.map.toString()),
]);
});
Expand Down

0 comments on commit 23f034a

Please sign in to comment.