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
This commit is contained in:
Taso committed 2021-04-05 20:12:34 -04:00
1 parent 2a8230e505
commit 8ef1a0aa9a
2 files changed
+13 -4

No files matched your search

+4 -1
View File
@@ -19,4 +19,7 @@ yarn-error.log*
.DS_Store
# Debug logs
sv_npwd.log
sv_npwd.log
# FXServer Yarn
.yarn.installed
+9 -3
View File
@@ -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"
}
}
}