mirror of https://github.com/vector-im/riot-web
Build (and watch-build) jsx->js and modular css -> (uglified) css bundle
parent
c6a30ff0c2
commit
877873e730
13
package.json
13
package.json
|
@ -10,8 +10,12 @@
|
||||||
"license": "Apache 2",
|
"license": "Apache 2",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "jsx src/ build",
|
"build:js": "jsx src/ build",
|
||||||
"start": "jsx -w src/ build --source-map-inline"
|
"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": {
|
"dependencies": {
|
||||||
"react-loader": "^1.4.0",
|
"react-loader": "^1.4.0",
|
||||||
|
@ -20,6 +24,9 @@
|
||||||
"react": "^0.13.0"
|
"react": "^0.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"react-tools": "^0.13.3"
|
"catw": "^1.0.1",
|
||||||
|
"parallelshell": "^1.1.1",
|
||||||
|
"react-tools": "^0.13.3",
|
||||||
|
"uglifycss": "0.0.15"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue