From 3bf4c8b7b4c0c195b9ec0548f2282a1f06fdda86 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Fri, 24 Jun 2016 12:13:38 -0700 Subject: [PATCH] separate source maps into another file --- .gitignore | 1 + Makefile | 11 ++++++++--- package.json | 1 + 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0e0697926..a8d753c14 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ build.js +build.js.map dist node_modules diff --git a/Makefile b/Makefile index 8130c0155..192b85e0d 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ bin = ./node_modules/.bin babel = $(bin)/babel browserify = $(bin)/browserify +exorcist = $(bin)/exorcist standard = $(bin)/standard mocha = $(bin)/mocha mocha-phantomjs = $(bin)/mocha-phantomjs @@ -34,10 +35,10 @@ dist: $(shell find ./lib) package.json # Build the examples. examples: @ $(browserify) \ + ./examples/index.js \ --debug \ --transform babelify \ - --outfile ./examples/build.js \ - ./examples/index.js + | $(exorcist) ./examples/build.js.map > ./examples/build.js # Install the dependencies. install: @@ -77,7 +78,11 @@ test-server: # Watch the examples. watch-examples: - @ $(MAKE) examples browserify=$(watchify) + @ $(watchify) \ + ./examples/index.js \ + --debug \ + --transform babelify \ + --outfile "$(exorcist) ./examples/build.js.map > ./examples/build.js" # Phony targets. .PHONY: examples diff --git a/package.json b/package.json index 5e047ea6d..96d5632ba 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "babelify": "^7.3.0", "browserify": "^13.0.1", "component-type": "^1.2.1", + "exorcist": "^0.4.0", "mocha": "^2.5.3", "mocha-phantomjs": "^4.0.2", "react-dom": "^15.1.0",