mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-04-21 13:51:59 +02:00
separate source maps into another file
This commit is contained in:
parent
9e4f452c1c
commit
3bf4c8b7b4
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
build.js
|
||||
build.js.map
|
||||
dist
|
||||
node_modules
|
||||
|
11
Makefile
11
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
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user