- v2.6.1Latest
- v2.6.0
- v2.5.6
- v2.5.5
- v2.5.4
- v2.5.3
- v2.5.2
- v2.5.1
- v2.5.0
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.1
- v2.3.0
- v2.2.0
- v2.1.1
- v2.1.0
- v2.0.1
- v2.0.0
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.2
- 1.1.1
- 1.1.0
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.16.2
- 0.16.1
- 0.16.0
- 0.15.7
- 0.15.6
- 0.15.5
- 0.15.4
- 0.15.3
- 0.15.2
- 0.15.1
- 0.15.0
- 0.14.0
- 0.13.1
- 0.13.0
- 0.12.2
- 0.12.1
- 0.12.0
- 0.11.1
- 0.10.1
- 0.10.0
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.1
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.3
init
Start Deno projects in Visual Studio Code a little faster with deno-init
, a small executable that scaffolds a Deno project structure for you.
Please note this module’s API is not yet stable and there may be breaking changes on
0.x
version increments.
Prerequisites
- Deno
- Visual Studio Code
- Deno Language Extension for Visual Studio Code
Installation
Latest:
deno install --allow-read --allow-write -n deno-init https://deno.land/x/init/mod.ts
Specific version:
deno install --allow-read --allow-write -n deno-init https://deno.land/x/init@0.4.0/mod.ts
To upgrade the executable when it’s already installed:
deno install --allow-read --allow-write --reload -f -n deno-init https://deno.land/x/init/mod.ts
Basic Usage
You can run the command without specifying any options. This will prompt you for a few values:
- TypeScript? (default
y
) - Entrypoint? (default
mod.ts
) - Dependency entrypoint? (default
deps.ts
) - Add debug configuration? (default
y
).
deno-init
Choosing all defaults will create the following structure in the current directory:
.
│ .gitignore
│ deps.ts
│ mod.ts
│
└───.vscode
│ │ launch.json
│ │ settings.json
The generated .gitignore
will include .vscode
and launch.json
as well as settings.json
will contain the necessary setup.
Available Options
If you simply want to use all the default values without being prompted you can pass --yes
or -y
. Note that deno-init
will not overwrite anything by default in case you already made some of the files/directories:
deno-init -y
In case you explicitly want to overwrite existing files you can pass --force
or -f
:
deno-init -f
When you run the command with --name
or -n
the script will create a new directory and the add the files in there instead of the current directory:
deno-init -n myDenoProject
deno-init
will also provide some templates to get started with various deno frameworks. This is still being worked on but you can already initialize a very basic oak
project right now:
deno-init --template oak