Skip to content

Commit 263e16e

Browse files
committed
Remove check-build, move to prepublish build like react-grid-layout
1 parent 3cc4688 commit 263e16e

7 files changed

+9
-192
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
dist
33
npm-debug.log
4+
build/

Makefile

-9
This file was deleted.

build.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
rm -rf ./build
3+
./node_modules/.bin/babel --stage 0 --out-dir ./build ./lib
4+
# More cross-platform compatible than `rename`
5+
find ./build -type f -name '*.jsx' -exec sh -c 'mv -f $0 ${0%.jsx}.js' {} \;

build/Resizable.js

-106
This file was deleted.

build/ResizableBox.js

-65
This file was deleted.

check-build.sh

-9
This file was deleted.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"scripts": {
77
"lint": "jsxhint lib/ test/",
88
"test": "echo \"Error: no test specified\" && exit 1",
9-
"build": "make js",
9+
"build": "bash build.sh",
1010
"build-example": "webpack",
11-
"check-build": "make check-build",
12-
"dev": "echo 'Open http://localhost:4002/examples/1.html'; webpack-dev-server --config webpack-dev-server.config.js --hot --progress --colors --port 4002 --content-base ."
11+
"dev": "echo 'Open http://localhost:4002/examples/1.html'; webpack-dev-server --config webpack-dev-server.config.js --hot --progress --colors --port 4002 --content-base .",
12+
"prepublish": "npm run build"
1313
},
1414
"repository": {
1515
"type": "git",

0 commit comments

Comments
 (0)