mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 17:53:59 +02:00
add disc make target for checking build size
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,4 +3,5 @@ build.js
|
|||||||
build.js.map
|
build.js.map
|
||||||
dist
|
dist
|
||||||
node_modules
|
node_modules
|
||||||
|
tmp
|
||||||
!dist/slate.js
|
!dist/slate.js
|
||||||
|
@@ -3,3 +3,4 @@ docs
|
|||||||
examples
|
examples
|
||||||
lib
|
lib
|
||||||
test
|
test
|
||||||
|
tmp
|
||||||
|
7
Makefile
7
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
|
||||||
|
discify = $(bin)/discify
|
||||||
exorcist = $(bin)/exorcist
|
exorcist = $(bin)/exorcist
|
||||||
eslint = $(bin)/eslint
|
eslint = $(bin)/eslint
|
||||||
http-server = $(bin)/http-server
|
http-server = $(bin)/http-server
|
||||||
@@ -34,6 +35,12 @@ check: lint test
|
|||||||
clean:
|
clean:
|
||||||
@ rm -rf ./dist ./node_modules
|
@ 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.
|
# Build the source.
|
||||||
dist: $(shell find ./lib) package.json
|
dist: $(shell find ./lib) package.json
|
||||||
@ $(babel) $(babel_flags) --out-dir ./dist ./lib
|
@ $(babel) $(babel_flags) --out-dir ./dist ./lib
|
||||||
|
@@ -35,6 +35,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",
|
||||||
|
"disc": "^1.3.2",
|
||||||
"eslint": "^3.0.1",
|
"eslint": "^3.0.1",
|
||||||
"eslint-plugin-import": "^1.10.2",
|
"eslint-plugin-import": "^1.10.2",
|
||||||
"eslint-plugin-react": "^5.2.2",
|
"eslint-plugin-react": "^5.2.2",
|
||||||
|
Reference in New Issue
Block a user