Skip to content

Commit

Permalink
feat: improved build times
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuyk committed Apr 26, 2024
1 parent 4ed9449 commit d6f0172
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,22 @@
"scripts": {
"clean": "shx rm -rf resources/core",
"dev": "nodemon -V -x pnpm start",
"start": "pnpm script:kill && pnpm run /^build:.*/ && pnpm script:paths && pnpm script:imports && pnpm script:database && altv-server",
"start": "pnpm run /^build:.*/ && pnpm run /^paths:.*/ && altv-server",
"binaries": "pnpm altv-pkg",
"[-] Build": "",
"build:code": "pnpm clean && pnpm transpile && shx cp ./src/resource.toml ./resources/core/resource.toml",
"build:webview": "pnpm webview:build",
"[-] Scripts": "",
"script:kill": "node ./scripts/pkill.js",
"script:webview": "node ./scripts/webview.js",
"script:imports": "node ./scripts/buildPluginImports.js",
"script:paths": "node ./scripts/pathResolver.js",
"script:database": "node ./scripts/database.js",
"build:kill": "node ./scripts/pkill.js",
"build:env": "node ./scripts/env.js",
"[-] Paths": "",
"paths:imports": "node ./scripts/buildPluginImports.js",
"paths:pathresolver": "node ./scripts/pathResolver.js",
"[-] Transpile": "",
"transpile": "sucrase ./src -d ./resources/core --transforms typescript -q",
"transpile:verbose": "sucrase ./src -d ./resources/core --transforms typescript",
"[-] Webview": "",
"webview:build": "pnpm script:webview && pnpm -C webview run build",
"webview:dev": "pnpm script:webview && pnpm -C webview run dev"
"webview:build": "node ./scripts/webview.js && pnpm -C webview run build",
"webview:dev": "node ./scripts/webview.js && pnpm -C webview run dev"
},
"devDependencies": {
"@altv/types-client": "^16.2.2",
Expand Down Expand Up @@ -65,7 +64,8 @@
],
"ignore": [
"webview/pages/*",
"webview/vite.config.*"
"webview/vite.config.*",
"*/package.json"
]
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion webview/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"scripts": {
"dev": "vite . -- --clearScreen --debug=true --host=localhost --port=3000",
"dev": "vite . -- --debug=true --host=localhost --port=3000",
"build": "vite build ."
}
}

0 comments on commit d6f0172

Please sign in to comment.