https://github.com/joymon/deno-demos
https://github.com/joymon/deno-demos
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/joymon/deno-demos
- Owner: joymon
- License: mit
- Created: 2021-01-23T20:24:44.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-23T20:24:48.000Z (almost 5 years ago)
- Last Synced: 2025-01-30T23:32:17.463Z (11 months ago)
- Language: TypeScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deno Codespaces template 🦕
A template for building deno modules with a github codespaces setup.
## How to use
1. On Github, simply click the `Use this template` button.
2. From there, on your generated repository, click the `Code` button and create a new codespace
3. Github codespaces will do the rest for you!
## Summary of the template
This template is setup to show how one might build a module using
Deno. You'll find the following files in the template:
- `deps.ts` This is where you import and re-export any third party dependencies for convienience
- `mod.ts` This is where you might export everything a library consumer would consume
- `main.ts` This is setup for you in case you want to run an applciation,
you can do that using `deno run main.ts`
- `src/types.ts` This is where you might define all the TypeScript types
- `src/error.ts` This is where you might define all the errors you use
- `tests/test.deps.ts` This where you import and re-export any third party dependencies
your **tests** may use
- `test/example.test.ts` This is an example test. You can run it using `deno test`
- `import_map.json` An example import maps. As of me writing this, import maps are
**unstable** and thus not used by the other files. But I put it here for convienience
- `.devcontainer` You don't have to worry about this, this is where the setup for
github codespaces lives
## License
This template is licensed under an MIT license.
## Contributing
PRs and Issues are very welcome! 🤝