Closed thewilloftheshadow closed 2 years ago
tysm for adding a clean command, I've been using a shitty powershell command for this in the vscode build task
speaking of which, I think this would be a good opportunity to carry out a much-needed overhaul in tasks.json
-- make the build tasks in vscode platform-friendly (right now, there's only one build command and it only works on windows)
New Scripts
Clean - removes the old output from
tsc
Compile - run clean and then run tsc Docs - generate the documentation into thedocs
folder Prepare - install the git hooks from husky Pre-Publish Only - run compile (this is run right before the package is published) Test - run the full test suite Watch - live compile usingtsc
as changes are madeA lot of this layout was taken from other typescript packages npm will automatically publish the dist folder for the package and prepublishOnly will ensure that its the newest build