Skip to content

Commit

Permalink
sourcemaps support added
Browse files Browse the repository at this point in the history
  • Loading branch information
Granze committed Feb 20, 2015
1 parent 3ff96c1 commit 7f04095
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var gulp = require('gulp'),
del = require('del'),
notify = require('gulp-notify'),
browserSync = require('browser-sync'),
sourcemaps = require('gulp-sourcemaps'),
reload = browserSync.reload,
p = {
jsx: './scripts/app.jsx',
Expand All @@ -32,7 +33,7 @@ gulp.task('browserSync', function() {
server: {
baseDir: './'
}
})
});
});

gulp.task('watchify', function() {
Expand All @@ -58,7 +59,9 @@ gulp.task('browserify', function() {
.bundle()
.pipe(source(p.bundle))
.pipe(buffer())
.pipe(sourcemaps.init({loadMaps: true}))
.pipe(uglify())
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest(p.distJs));
});

Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-starterify",
"version": "0.0.6",
"version": "0.0.8",
"description": "React JS application skeleton using Browserify and other awesome tools",
"main": "app.js",
"repository": {
Expand All @@ -15,7 +15,8 @@
"boilerplate",
"kickstarter",
"ES6",
"6to5"
"6to5",
"babel"
],
"author": "Maurizio Mangione",
"license": "MIT",
Expand All @@ -26,7 +27,7 @@
"dependencies": {},
"devDependencies": {
"babelify": "^5.0.3",
"browser-sync": "^2.1.6",
"browser-sync": "^2.2.0",
"browserify": "^8.1.3",
"del": "^1.1.1",
"gulp": "^3.8.11",
Expand All @@ -35,6 +36,7 @@
"gulp-csso": "^1.0.0",
"gulp-notify": "^2.2.0",
"gulp-sass": "^1.3.3",
"gulp-sourcemaps": "^1.3.0",
"gulp-uglify": "^1.1.0",
"react": "^0.12.2",
"superagent": "^0.21.0",
Expand Down

0 comments on commit 7f04095

Please sign in to comment.