https://github.com/devyatsu/fresh_import_map
a plugin for generating an import_map.json from a deno.json in a Fresh project
https://github.com/devyatsu/fresh_import_map
Last synced: 11 months ago
JSON representation
a plugin for generating an import_map.json from a deno.json in a Fresh project
- Host: GitHub
- URL: https://github.com/devyatsu/fresh_import_map
- Owner: DevYatsu
- License: mit
- Created: 2023-08-31T00:06:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-31T00:54:30.000Z (almost 3 years ago)
- Last Synced: 2025-03-05T05:44:52.345Z (over 1 year ago)
- Language: TypeScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fresh_import_map
This is a small plugin for **[Fresh](https://fresh.deno.dev/)** that automatically
generates an **import_map.json** file from a **deno.json** file.
## Usage
To add this plugin to your **Fresh** project, just add the following line into
your `dev.ts` file.
```diff
#!/usr/bin/env -S deno run -A --watch=static/,routes/
import dev from "$fresh/dev.ts";
+ import "https://deno.land/x/fresh_import_map@v1.0.0/load.ts";
await dev(import.meta.url, "./main.ts");
```
This will automatically generate a `import_map.json` file based on your
`deno.json` or `deno.jsonc` file.