mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-01 05:16:10 +01:00
add disc make target for checking build size
This commit is contained in:
parent
ac53f8e1ad
commit
a46dd61686
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,4 +3,5 @@ build.js
|
||||
build.js.map
|
||||
dist
|
||||
node_modules
|
||||
tmp
|
||||
!dist/slate.js
|
||||
|
@ -3,3 +3,4 @@ docs
|
||||
examples
|
||||
lib
|
||||
test
|
||||
tmp
|
||||
|
7
Makefile
7
Makefile
@ -3,6 +3,7 @@
|
||||
bin = ./node_modules/.bin
|
||||
babel = $(bin)/babel
|
||||
browserify = $(bin)/browserify
|
||||
discify = $(bin)/discify
|
||||
exorcist = $(bin)/exorcist
|
||||
eslint = $(bin)/eslint
|
||||
http-server = $(bin)/http-server
|
||||
@ -34,6 +35,12 @@ check: lint test
|
||||
clean:
|
||||
@ rm -rf ./dist ./node_modules
|
||||
|
||||
# Check the size of the dependencies.
|
||||
disc: dist
|
||||
@ mkdir -p ./tmp
|
||||
@ $(browserify) ./dist/index.js --full-paths --outfile ./tmp/build.js
|
||||
@ $(discify) ./tmp/build.js --open
|
||||
|
||||
# Build the source.
|
||||
dist: $(shell find ./lib) package.json
|
||||
@ $(babel) $(babel_flags) --out-dir ./dist ./lib
|
||||
|
@ -35,6 +35,7 @@
|
||||
"babelify": "^7.3.0",
|
||||
"browserify": "^13.0.1",
|
||||
"component-type": "^1.2.1",
|
||||
"disc": "^1.3.2",
|
||||
"eslint": "^3.0.1",
|
||||
"eslint-plugin-import": "^1.10.2",
|
||||
"eslint-plugin-react": "^5.2.2",
|
||||
|
Loading…
x
Reference in New Issue
Block a user