- 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
Warning This Deno module is deprecated to prevent confusion with
deno init. It will move to a new namedci.
deno-init creates a Deno config file from the command line. It is loosely
modeled after tsc --init and npm init.
Table of Contents
Requirements
- Deno v1.17 or higher
Installation
deno install --allow-read --allow-write -fn deno-init https://deno.land/x/init@v2.6.1/mod.tsUsage
Make a config file based on a number of prompts:
deno-initSkip the prompts, use all defaults:
deno-init --yesAdd every possible option in comments (as a .jsonc file):
deno-init --fillOptions
--help or -h will print the CLI documentation to the terminal.
--yes or -y will skip the prompts and initialize the file in the current
working directory with default values:
deno-init --yes--fill or -i will create a deno.jsonc config file with all the possible
configuration options listed as comments. This style is very similar to the
output of tsc --init for generating a tsconfig.json.
deno-init --fillIt is also possible to add only specific fields to the config file and fill them with options in comments, for example:
deno-init --fmt --fill--fmt or -m will add a fmt section only.
deno-init --fmt--lint or -l will add a lint section only.
deno-init --lint--map or -p will add an importMap section only. Note that using
importMap requires Deno 1.20 or higher.
deno-init --map--task or -k will add a tasks section only. Note that using tasks
requires Deno 1.20 or higher.
deno-init --task--test or -s will add a test section only. Note that using test requires
Deno 1.24 or higher.
deno-init --test--tsconfig or -t will add a compilerOptions section only.
deno-init --tsconfigIt is possible to combine the fmt, lint, map, task and tsconfig
options.
--name or -n will use a non-default name for the config file. The default
name is deno.json. Note that using a non-default name may prevent config file
auto-discovery.
deno-init --name config.json--force or -f will allow overwriting an existing config file.
Contributing
You are welcome to report bugs, other issues, or make a feature request! If you want to add a fix/feature/other improvement, please fork this repository and make a pull request with your changes.