File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,23 @@ We can start the Astro server with `deno task dev`:
104
104
105
105

106
106
107
+ ## Configure the formatter
108
+
109
+ ` deno fmt` supports Astro files with the
110
+ [` -- unstable- component` ](https://docs.deno.com/runtime/reference/cli/fmt/#formatting-options-unstable-component)
111
+ flag. To use it, run this command:
112
+
113
+ ` ` ` sh
114
+ deno fmt -- unstable- component
115
+ ` ` `
116
+
117
+ To configure ` deno fmt` to always format your Astro files, add this at the top
118
+ level of your ` deno .json ` file:
119
+
120
+ ` ` ` json
121
+ " unstable" : [" fmt-component" ]
122
+ ` ` `
123
+
107
124
## Update index page to list all dinosaurs
108
125
109
126
Our app will display facts about a variety of dinosaurs. The first page to
Original file line number Diff line number Diff line change @@ -46,6 +46,23 @@ deno task dev
46
46
Deno will run the ` dev ` task from the ` package.json ` file which will start the
47
47
Vite server. Click the output link to localhost to see your app in the browser.
48
48
49
+ ## Configure the formatter
50
+
51
+ ` deno fmt ` supports Vue files with the
52
+ [ ` --unstable-component ` ] ( https://docs.deno.com/runtime/reference/cli/fmt/#formatting-options-unstable-component )
53
+ flag. To use it, run this command:
54
+
55
+ ``` sh
56
+ deno fmt --unstable-component
57
+ ```
58
+
59
+ To configure ` deno fmt ` to always format your Vue files, add this at the top
60
+ level of your ` deno.json ` file:
61
+
62
+ ``` json
63
+ "unstable" : [" fmt-component" ]
64
+ ```
65
+
49
66
## Add a backend
50
67
51
68
The next step is to add a backend API. We'll create a very simple API that
You can’t perform that action at this time.
0 commit comments