Build (and watch-build) jsx->js and modular css -> (uglified) css bundle

pull/1/head
David Baker 2015-06-10 15:54:36 +01:00
parent c6a30ff0c2
commit 877873e730
1 changed files with 10 additions and 3 deletions

View File

@ -10,8 +10,12 @@
"license": "Apache 2",
"main": "build/index.js",
"scripts": {
"build": "jsx src/ build",
"start": "jsx -w src/ build --source-map-inline"
"build:js": "jsx src/ build",
"start:js": "jsx -w src/ build --source-map-inline",
"build:css": "catw 'css/**/*.css' -o bundle.css -c uglifycss --no-watch",
"start:css": "catw 'css/**/*.css' -o bundle.css -v",
"build": "npm run build:js && npm run build:css",
"start": "parallelshell 'npm run start:js' 'npm run start:css'"
},
"dependencies": {
"react-loader": "^1.4.0",
@ -20,6 +24,9 @@
"react": "^0.13.0"
},
"devDependencies": {
"react-tools": "^0.13.3"
"catw": "^1.0.1",
"parallelshell": "^1.1.1",
"react-tools": "^0.13.3",
"uglifycss": "0.0.15"
}
}