A boilerplate project for Deno modules and programs.
- Run scripts with Yarn or npm.
- Lint files with ESLint.
- Format files with Prettier.
- Check types with TypeScript compiler.
- Write and run tests with Deno's standard testing library.
Clone this repository to a custom directory and run yarn
or npm install
.
git clone https://github.com/fnky/deno_base.git new_project
cd new_project
yarn # or npm install
If you'd like to be able to update from the repository, you can point the upstream
to this repository.
# rename origin to upstream
git remove rename origin upstream
# verify the change
git remote -v
And then fetch and merge changes from upstream, whenver you want.
# Fetch all commits from upstream
git fetch upstream master
# See changes between current branch and upstream branch
git diff master upstream/master
# Merge changes
git merge upstream/master
- Create a file and name it something like
example_test.ts
. - Import the test inside
tests.ts
.import "./example_test.ts";
- Run
yarn test
.
MIT