1
0
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:
Ian Storm Taylor 2016-07-20 10:08:19 -07:00
parent ac53f8e1ad
commit a46dd61686
4 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View File

@ -3,4 +3,5 @@ build.js
build.js.map
dist
node_modules
tmp
!dist/slate.js

View File

@ -3,3 +3,4 @@ docs
examples
lib
test
tmp

View File

@ -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

View File

@ -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",