Skip to content

Commit

Permalink
chore: removed sourcemaps
Browse files Browse the repository at this point in the history
Closes #215
  • Loading branch information
ocombe committed Jul 23, 2015
1 parent 023e4bb commit f170c49
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 23 deletions.
3 changes: 1 addition & 2 deletions dist/ocLazyLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -1296,5 +1296,4 @@ if (!Array.prototype.indexOf) {
}
return -1;
};
}
//# sourceMappingURL=ocLazyLoad.js.map
}
1 change: 0 additions & 1 deletion dist/ocLazyLoad.js.map

This file was deleted.

3 changes: 1 addition & 2 deletions dist/ocLazyLoad.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/ocLazyLoad.min.js.map

This file was deleted.

3 changes: 1 addition & 2 deletions dist/ocLazyLoad.require.js
Original file line number Diff line number Diff line change
Expand Up @@ -1285,5 +1285,4 @@ if (!Array.prototype.indexOf) {
}
return -1;
};
}
//# sourceMappingURL=ocLazyLoad.require.js.map
}
1 change: 0 additions & 1 deletion dist/ocLazyLoad.require.js.map

This file was deleted.

3 changes: 1 addition & 2 deletions dist/ocLazyLoad.require.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/ocLazyLoad.require.min.js.map

This file was deleted.

9 changes: 0 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ gulp.task('build-minify', ['build-files-require'], function() {
uglify = require('gulp-uglify'),
header = require('gulp-header'),
pkg = require('./package.json'),
sourcemaps = require('gulp-sourcemaps'),
banner = ['/**',
' * <%= pkg.name %> - <%= pkg.description %>',
' * @version v' + (newVer ? newVer : '<%= pkg.version %>'),
Expand All @@ -36,11 +35,9 @@ gulp.task('build-minify', ['build-files-require'], function() {
'dist/ocLazyLoad.js',
'dist/ocLazyLoad.require.js'
])
.pipe(sourcemaps.init())
.pipe(uglify())
.pipe(header(banner, {pkg: pkg}))
.pipe(rename({suffix: '.min'}))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('dist'));

});
Expand All @@ -53,7 +50,6 @@ gulp.task('build-files-require', ['build-files'], function() {
ngAnnotate = require('gulp-ng-annotate'),
pkg = require('./package.json'),
concat = require('gulp-concat'),
sourcemaps = require('gulp-sourcemaps'),
banner = ['/**',
' * <%= pkg.name %> - <%= pkg.description %>',
' * @version v' + (newVer ? newVer : '<%= pkg.version %>'),
Expand All @@ -73,13 +69,11 @@ gulp.task('build-files-require', ['build-files'], function() {
'src/ocLazyLoad.loaders.templatesLoader.js',
'src/ocLazyLoad.polyfill.ie8.js'
])
.pipe(sourcemaps.init())
.pipe(babel({ blacklist: ["strict"] }))
.pipe(ngAnnotate())
.pipe(gulp.dest('dist/modules'))
.pipe(concat('ocLazyLoad.require.js'))
.pipe(header(banner, {pkg: pkg}))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('dist'));
});

Expand All @@ -91,7 +85,6 @@ gulp.task('build-files', ['clean'], function() {
ngAnnotate = require('gulp-ng-annotate'),
pkg = require('./package.json'),
concat = require('gulp-concat'),
sourcemaps = require('gulp-sourcemaps'),
banner = ['/**',
' * <%= pkg.name %> - <%= pkg.description %>',
' * @version v' + (newVer ? newVer : '<%= pkg.version %>'),
Expand All @@ -111,13 +104,11 @@ gulp.task('build-files', ['clean'], function() {
'src/ocLazyLoad.loaders.templatesLoader.js',
'src/ocLazyLoad.polyfill.ie8.js'
])
.pipe(sourcemaps.init())
.pipe(babel({ blacklist: ["strict"] }))
.pipe(ngAnnotate())
.pipe(gulp.dest('dist/modules'))
.pipe(concat('ocLazyLoad.js'))
.pipe(header(banner, {pkg: pkg}))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('dist'));
});

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"gulp-ng-annotate": "~1.0.0",
"gulp-prompt": "~0.1.2",
"gulp-rename": "~1.2.2",
"gulp-sourcemaps": "~1.5.2",
"gulp-uglify": "~1.2.0",
"jasmine-core": "~2.3.4",
"karma": "~0.12.35",
Expand All @@ -58,4 +57,4 @@
"semver": "~4.3.6",
"streamqueue": "~0.1.3"
}
}
}

0 comments on commit f170c49

Please sign in to comment.