diff --git a/Makefile b/Makefile index cfdffba..065c903 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2025/09/28 18:44:10 by rparodi ### ########.fr # +# Updated: 2025/10/06 16:55:58 by maiboyer ### ########.fr # # # # **************************************************************************** # @@ -101,12 +101,17 @@ re: tokei: @/bin/sh -c 'tokei' +npm@: npm; npm: @$(ECHO) "commands: " - @$(ECHO) "\tnpm@install: install all dependencies" - @$(ECHO) "\tnpm@fclean: clean every \`dist\` directory" - @$(ECHO) "\tnpm@clean: clean \`node_modules\` directory" - @$(ECHO) "\tnpm@build: build subprojects" + @$(ECHO) " npm@install: install all dependencies" + @$(ECHO) " npm@fclean: clean every \`dist\` directory" + @$(ECHO) " npm@clean: clean \`node_modules\` directory" + @$(ECHO) " npm@build: build subprojects" + @$(ECHO) " npm@eslint: run eslint" + +npm@eslint: + npm --prefix=./src/ run eslint npm@install: npm --prefix=./src/ run install-all diff --git a/src/package.json b/src/package.json index eb21f12..2f2f44c 100644 --- a/src/package.json +++ b/src/package.json @@ -16,18 +16,21 @@ "scripts": { "build": "npm run build --workspaces --if-present", "distclean": "rimraf -v -g \"*/dist\"", + "fclean": "rimraf \"**/dist\"", + "clean": "rimraf \"**/node_modules\"", + "eslint": "eslint", "install-all": "npm install", "dev:prepare": "husky" }, "devDependencies": { "rimraf": "^5.0.1", - "@eslint/js": "^9.36.0", - "@typescript-eslint/eslint-plugin": "^8.44.1", - "@typescript-eslint/parser": "^8.44.1", - "eslint": "^9.36.0", + "@eslint/js": "^9.36.0", + "@typescript-eslint/eslint-plugin": "^8.44.1", + "@typescript-eslint/parser": "^8.44.1", + "eslint": "^9.36.0", "lint-staged": "^16.1.5", "husky": "^9.1.7", - "typescript-eslint": "^8.44.1" + "typescript-eslint": "^8.44.1" }, "dependencies": { "bindings": "^1.5.0"