Initial commit — Southwest Roleplay FiveM

This commit is contained in:
jack
2026-06-20 13:05:34 +00:00
commit 3857de3d85
397 changed files with 30322 additions and 0 deletions

40
gulpfile.js Normal file
View File

@@ -0,0 +1,40 @@
const gulp = require('gulp');
const { exec } = require('child_process');
function buildServer(cb) {
exec('npx webpack --config webpack.server.js', (err, stdout, stderr) => {
if (stdout) process.stdout.write(stdout);
if (stderr) process.stderr.write(stderr);
cb(err);
});
}
function buildClient(cb) {
exec('npx webpack --config webpack.client.js', (err, stdout, stderr) => {
if (stdout) process.stdout.write(stdout);
if (stderr) process.stderr.write(stderr);
cb(err);
});
}
function watchServer(cb) {
exec('npx webpack --config webpack.server.js --watch', (err, stdout, stderr) => {
if (stdout) process.stdout.write(stdout);
if (stderr) process.stderr.write(stderr);
});
cb();
}
function watchClient(cb) {
exec('npx webpack --config webpack.client.js --watch', (err, stdout, stderr) => {
if (stdout) process.stdout.write(stdout);
if (stderr) process.stderr.write(stderr);
});
cb();
}
exports.buildServer = buildServer;
exports.buildClient = buildClient;
exports.build = gulp.parallel(buildServer, buildClient);
exports.watch = gulp.parallel(watchServer, watchClient);
exports.default = exports.build;