Updated tasks

This commit is contained in:
Damien Broqua 2023-09-25 00:39:15 +02:00
parent 4c4c5bbc34
commit feb305c659

View file

@ -4,11 +4,12 @@
"description": "Simple application to store and share image with bbcode integration", "description": "Simple application to store and share image with bbcode integration",
"main": "src/bin/www", "main": "src/bin/www",
"scripts": { "scripts": {
"run:all": "npm-run-all build sass start", "run:all": "npm-run-all build start",
"build": "npx babel ./src --out-dir dist --copy-files", "prebuild": "rm -rf ./dist",
"sass": "npx sass sass/index.scss public/css/main.css -s compressed --color", "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", "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", "start": "node ./dist/bin/www",
"lint": "npx eslint ./src --ext .js", "lint": "npx eslint ./src --ext .js",
"lint:fix": "npx eslint --fix ./src --ext .js", "lint:fix": "npx eslint --fix ./src --ext .js",