BuildScriptRework #9

Merged
chomp merged 4 commits from BuildScriptRework into master 2022-09-09 04:53:59 -04:00

4 Commits

Author SHA1 Message Date
25b51fcce1 Formatting changes + completion message change 2022-09-09 09:53:24 +01:00
50368c469c Merge pull request 'External Build Script' (#8) from Dinkadactyl/ModExamples:master into BuildScriptRework
Reviewed-on: #8
2022-09-09 08:29:52 +00:00
Dinkadactyl
c849f9e51b Merge branch 'master' into master 2022-09-08 17:32:40 +00:00
Dinkadactyl
e06fea8398
External Build Script
This update removes the inline build scripts from the `package.json` file and replaces them with an external build script: `packageBuild.ts`. An external script allows for much more flexibility.

Along with the external script change, this PR updates a few other things:
 - Moved from `copyfiles` to `fs-extra` for minor speed improvements.
 - Generates the mod package name by using the `package.json` information. The format used is `Author-PackageName-Version`.
 - Saves the compressed file in the `dist` folder.
 - Saves the compressed file using the new mod package name.
 - Compressed file now includes a root directory named after the mod package for easy copying to the user's `user/mods` game directory.
2022-08-31 22:28:48 -04:00