mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
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:
1 parent
2a8230e505
commit
8ef1a0aa9a
2 files changed
+13
-4
No files matched your search
+9
-3
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user