diff --git a/.gitignore b/.gitignore index bf7769625b0c2af773986bc01886eba691cada5e..c909ea6ff2e3355730590d3d9c81251f2f3731bd 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,9 @@ /dist /lib +# css files +.css + # logs *.log* diff --git a/package.json b/package.json index 97a2381e9789164c83acf853c768b5c9fb9ad312..f35e08caacfc45bc121a24a09d0c289c62e3170d 100644 --- a/package.json +++ b/package.json @@ -23,10 +23,14 @@ "Promise" ], "scripts": { - "build": "react-app-rewired build", - "lint": "semistandard src/**/*.js --parser babel-eslint", - "start": "react-app-rewired start", - "test": "echo Skipped." + "build": "npm run build-css && npm run build-js", + "build-css": "node-sass-chokidar src/ -o src/", + "build-js": "react-app-rewired build", + "lint": "semistandard 'src/**/*.js' --parser babel-eslint", + "start": "npm-run-all -p watch-css start-js", + "start-js": "react-app-rewired start", + "test": "echo Skipped.", + "watch-css": "npm run build-css -- --watch --recursive" }, "dependencies": { "@parity/api": "^2.1.20", @@ -42,6 +46,9 @@ "@babel/preset-env": "^7.0.0-beta.44", "babel-eslint": "^8.2.3", "babel-loader": "^8.0.0-beta", + "node-sass": "^4.8.3", + "node-sass-chokidar": "^1.2.2", + "npm-run-all": "^4.1.2", "react-app-rewire-mobx": "^1.0.8", "react-app-rewired": "^1.5.0", "semistandard": "^12.0.1", diff --git a/public/index.html b/public/index.html index ed0ebafa1b7c3057e5fc3eddbdf9e4c2c46de805..1592ad4cbfd3d1ff872cc66f28c1175acb0483ba 100644 --- a/public/index.html +++ b/public/index.html @@ -19,7 +19,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - React App + Light Wallet