mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
* add typo report template (#971) Co-authored-by: Psitacus <walther.johnson@ucalgary.ca> * Fix/fix weapon damage datas in sheet (#988) * Temp ActionField attack type missing * Move missing attack type to getModel * Fix weapon base attack reseting on update * [PR]Fix/allow deal damage button use owner (#985) * Temp ActionField attack type missing * Move missing attack type to getModel * Fix player not allowed to use Deal Damage button if Actor not assigned * Fix/add translation key for Unarmed Attack (#973) Co-authored-by: Chris Ryan <chrisr@blackhole> * Add setup script for development (#981) * [PR] testing something (#995) * testing something * added template for PR test * Initial Commit (#992) --------- Co-authored-by: Psitacus <59754077+Psitacus@users.noreply.github.com> Co-authored-by: Psitacus <walther.johnson@ucalgary.ca> Co-authored-by: Dapoulp <74197441+Dapoulp@users.noreply.github.com> Co-authored-by: Chris Ryan <73275196+chrisryan10@users.noreply.github.com> Co-authored-by: Chris Ryan <chrisr@blackhole> Co-authored-by: Luiz HD Costa <luiz.costa@hey.com> Co-authored-by: Nikhil Nagarajan <potter.nikhil@gmail.com>
27 lines
845 B
JavaScript
27 lines
845 B
JavaScript
#!/usr/bin/env node
|
|
import { spawn } from 'child_process';
|
|
import fs from 'fs';
|
|
|
|
// Load .env file if it exists
|
|
if (fs.existsSync('.env')) {
|
|
const envFile = fs.readFileSync('.env', 'utf8');
|
|
envFile.split('\n').forEach(line => {
|
|
const [key, value] = line.split('=');
|
|
if (key && value) {
|
|
process.env[key] = value;
|
|
}
|
|
});
|
|
}
|
|
|
|
// Set defaults if not in environment
|
|
const foundryPath = process.env.FOUNDRY_MAIN_PATH || '../../../../FoundryDev/main.js';
|
|
const dataPath = process.env.FOUNDRY_DATA_PATH || '../../../';
|
|
|
|
// Run the original command with proper environment
|
|
const args = ['rollup -c --watch', `node "${foundryPath}" --dataPath="${dataPath}" --noupnp`, 'gulp'];
|
|
|
|
spawn('npx', ['concurrently', ...args.map(arg => `"${arg}"`)], {
|
|
stdio: 'inherit',
|
|
cwd: process.cwd(),
|
|
shell: true
|
|
});
|