From 8ef1a0aa9a616eaaedc49ac0f4144b6e3f67aa73 Mon Sep 17 00:00:00 2001 From: Taso Date: Mon, 5 Apr 2021 20:11:42 -0400 Subject: [PATCH] tweak(scripts): Tweaked root lerna scripts Tweaked root package.json scripts to better improve dev experience. * Install npm dependencies for both packages using `yarn bootstrap` in root directory * Build both NUI and game scripts using `yarn build` in the root directory. * Precommit git hook references script rather than global pretty-quick --- .gitignore | 5 ++++- package.json | 12 +++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 58ddd26..2d7d59a 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,7 @@ yarn-error.log* .DS_Store # Debug logs -sv_npwd.log \ No newline at end of file +sv_npwd.log + +# FXServer Yarn +.yarn.installed \ No newline at end of file diff --git a/package.json b/package.json index 47e0e24..8021990 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,9 @@ { "name": "npwd", + "version": "0.1.0", + "description": "A FiveM phone resource, made in React & TypeScript", + "repository": "https://github.com/project-error/new-phone-who-dis", + "license": "CC-BY-NC-SA-4.0", "devDependencies": { "husky": "^5.1.3", "lerna": "^3.22.1", @@ -7,13 +11,15 @@ "pretty-quick": "^3.1.0" }, "scripts": { - "build": "lerna run build --concurrency 1", + "build": "lerna run build", "prepare": "husky install", - "format": "pretty-quick" + "bootstrap": "lerna bootstrap", + "format:staged": "pretty-quick --staged", + "postinstall": "husky install" }, "husky": { "hooks": { - "pre-commit": "pretty-quick --staged" + "pre-commit": "npm run format:staged" } } }