This repository has been archived by the owner on Sep 4, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
496720f
commit 5ee2cdb
Showing
8 changed files
with
61 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
open: false, | ||
notify: false, | ||
ghostMode: false, | ||
server: { directory: false } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# TowerDefenseECS | ||
|
||
TowerDefenseECS aims to compare the API and performance characteristics of ECS libraries. | ||
|
||
## Development | ||
|
||
- Install: `npm ci` | ||
- Run all libraries: `npm start` | ||
- Run a single library: `npm start <library>` | ||
|
||
Load http://localhost:3000/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const fs = require("fs"); | ||
const cp = require("child_process"); | ||
|
||
const libraries = "src/libraries"; | ||
for (const dir of fs.readdirSync(libraries)) { | ||
console.log(cp.execSync("npm ci", { cwd: `${libraries}/${dir}` }).toString()); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const fs = require("fs"); | ||
const cp = require("child_process"); | ||
|
||
const libraries = "src/libraries"; | ||
|
||
const singleLibrary = process.argv[2]; | ||
if (singleLibrary) { | ||
runLibrary(singleLibrary); | ||
} else { | ||
fs.readdirSync(libraries).forEach(runLibrary); | ||
} | ||
|
||
logOutput( | ||
cp.exec( | ||
`npx browser-sync start --config .browser-sync.config.js --files "*.html" --files "${libraries}/*/dist/main.js"` | ||
) | ||
); | ||
|
||
function runLibrary(library) { | ||
const libraryDir = `${libraries}/${library}`; | ||
console.log("BPDEBUG libraryDir", libraryDir); | ||
logOutput(cp.exec(`npx webpack "${libraryDir}/main.js" -o "${libraryDir}/dist/main.js" --mode development -w`)); | ||
} | ||
|
||
function logOutput(process) { | ||
process.stdout.on("data", console.log); | ||
process.stderr.on("data", console.error); | ||
} |
This file was deleted.
Oops, something went wrong.