mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-18 21:21:21 +02:00
separate source maps into another file
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
build.js
|
build.js
|
||||||
|
build.js.map
|
||||||
dist
|
dist
|
||||||
node_modules
|
node_modules
|
||||||
|
11
Makefile
11
Makefile
@@ -3,6 +3,7 @@
|
|||||||
bin = ./node_modules/.bin
|
bin = ./node_modules/.bin
|
||||||
babel = $(bin)/babel
|
babel = $(bin)/babel
|
||||||
browserify = $(bin)/browserify
|
browserify = $(bin)/browserify
|
||||||
|
exorcist = $(bin)/exorcist
|
||||||
standard = $(bin)/standard
|
standard = $(bin)/standard
|
||||||
mocha = $(bin)/mocha
|
mocha = $(bin)/mocha
|
||||||
mocha-phantomjs = $(bin)/mocha-phantomjs
|
mocha-phantomjs = $(bin)/mocha-phantomjs
|
||||||
@@ -34,10 +35,10 @@ dist: $(shell find ./lib) package.json
|
|||||||
# Build the examples.
|
# Build the examples.
|
||||||
examples:
|
examples:
|
||||||
@ $(browserify) \
|
@ $(browserify) \
|
||||||
|
./examples/index.js \
|
||||||
--debug \
|
--debug \
|
||||||
--transform babelify \
|
--transform babelify \
|
||||||
--outfile ./examples/build.js \
|
| $(exorcist) ./examples/build.js.map > ./examples/build.js
|
||||||
./examples/index.js
|
|
||||||
|
|
||||||
# Install the dependencies.
|
# Install the dependencies.
|
||||||
install:
|
install:
|
||||||
@@ -77,7 +78,11 @@ test-server:
|
|||||||
|
|
||||||
# Watch the examples.
|
# Watch the examples.
|
||||||
watch-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 targets.
|
||||||
.PHONY: examples
|
.PHONY: examples
|
||||||
|
@@ -21,6 +21,7 @@
|
|||||||
"babelify": "^7.3.0",
|
"babelify": "^7.3.0",
|
||||||
"browserify": "^13.0.1",
|
"browserify": "^13.0.1",
|
||||||
"component-type": "^1.2.1",
|
"component-type": "^1.2.1",
|
||||||
|
"exorcist": "^0.4.0",
|
||||||
"mocha": "^2.5.3",
|
"mocha": "^2.5.3",
|
||||||
"mocha-phantomjs": "^4.0.2",
|
"mocha-phantomjs": "^4.0.2",
|
||||||
"react-dom": "^15.1.0",
|
"react-dom": "^15.1.0",
|
||||||
|
Reference in New Issue
Block a user