Dev Environment Setup
Table of Contents
- Copy git hook for standardized commit messages
- Building the API Reference pages JSON data
- Upgrading mime-db
- Running Create App Tests on Windows
Building the API Reference page’s JSON data
deno run --allow-read --allow-write console/api_reference_app/app.ts
If the deno-drash-docs
repo needs to be updated, then make a PR to it by updating the api_reference.json
file to use the newly built one.
Upgrading mime-db
Check out the upgrade-mime-db
branch.
git checkout upgrade-mime-db
git pull
Go to https://github.com/jshttp/mime-db/blob/master/db.json
Copy the file’s contents into /src/dictionaries/mime_db.json
.
Commit your changes.
git commit -m "upgrade mime-db to {version}"
Make a pull request to master
.
Running Create App Tests on Windows
There are a couple known issues discovered when running these tests on windows.
If a test case fails but the expected and actual output looks exactly the same, check the line endings of the related files, for examaple if comparing the contents of
/console/create_app/app.ts
andtmp-dir/app.ts
but one hasLF
whilst the other hasCRLF
, then this will cause the mentioned errorTo ease in debugging, if you get a
PermissionDenied
, but specifically onDeno.mkdir[Sync]
, try run the following to open a new shell and re-run the tests:PS> Start-Process powershell -Verb runAs
Releasing
Check the following files for version numbers that need to be updated.
- mod.ts - Check Drash.version
- README.md - Check the import statement in the Quick Start section
- eggs.json - Update Drash version