File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,16 @@ DIST = dist
77LIB = $(DIST ) /react-draggable.js
88MIN = $(DIST ) /react-draggable.min.js
99
10- .PHONY : test dev build clean
10+ .PHONY : test dev lint build clean
1111
1212clean :
1313 rm -rf dist
1414
15+ lint :
16+ # FIXME this is usually global
17+ flow check
18+ @$(BIN ) /eslint lib/* lib/utils/* specs/*
19+
1520build : $(LIB ) $(MIN )
1621
1722# Allows usage of `make install`, `make link`
Original file line number Diff line number Diff line change 99 "test-debug" : " karma start --browsers=Chrome --single-run=false" ,
1010 "dev" : " make dev" ,
1111 "build" : " make clean build" ,
12- "lint" : " eslint lib/* lib/utils/* specs/* "
12+ "lint" : " make lint "
1313 },
1414 "repository" : {
1515 "type" : " git" ,
6363 "dependencies" : {
6464 "classnames" : " ^2.2.0"
6565 }
66- }
66+ }
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ function finish {
66 kill $SERVER_PID
77}
88
9+ make clean
910DRAGGABLE_DEBUG=true webpack --watch --devtool inline-source-map &
1011WEBPACK_PID=$!
1112
You can’t perform that action at this time.
0 commit comments