diff --git a/package.json b/package.json index b443a38..a6b46d4 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,12 @@ "description": "Simple application to store and share image with bbcode integration", "main": "src/bin/www", "scripts": { - "run:all": "npm-run-all build sass start", - "build": "npx babel ./src --out-dir dist --copy-files", - "sass": "npx sass sass/index.scss public/css/main.css -s compressed --color", + "run:all": "npm-run-all build start", + "prebuild": "rm -rf ./dist", + "build:css": "npx sass sass/index.scss public/css/main.css -s compressed --color", + "build:app": "npx babel ./src --out-dir dist --copy-files", "watch": "npx nodemon -e js,scss", - "build:all": "npm-run-all build sass", + "build": "npm-run-all build:app build:css", "start": "node ./dist/bin/www", "lint": "npx eslint ./src --ext .js", "lint:fix": "npx eslint --fix ./src --ext .js",