Skip to content

Commit a060255

Browse files
authored
no ./ for default path (#1135)
1 parent 8011884 commit a060255

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/getting-started.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,20 +98,20 @@ If you prefer Yarn, run:
9898

9999
You can run the above command anywhere, but you may want to `cd` to your `~/Development` directory first (or wherever you do local development).
100100

101-
The first prompt asks where to create your new project. Enter `./hello-framework` to create a directory named `hello-framework` within the current directory. Or just hit Enter, as this is conveniently the default. (The `./` is implied, so `./hello-framework` is equivalent to `hello-framework`. You can create a project in a different directory by entering a path that starts with `../` or `~/` or `/`.)
101+
The first prompt asks where to create your new project. Enter `hello-framework` to create a directory named `hello-framework` within the current directory. Or just hit Enter, as this is conveniently the default. (You can create a project in a different directory by entering a relative or absolute path; on macOS or Linux, such paths start with `../` or `~/` or `/`.)
102102

103103
<pre data-copy="none"><span class="muted">┌</span> <span class="invert"> observable create </span>
104104
<span class="muted">│</span>
105105
<span class="focus">◆</span> Where to create your project?
106-
<span class="focus">│</span> ./hello-framework<span class="invert">&nbsp;</span>
106+
<span class="focus">│</span> hello-framework<span class="invert">&nbsp;</span>
107107
<span class="focus">└</span></pre>
108108

109109
Next you’ll enter the project’s title. A project’s title appears in the sidebar as well as on all pages. You can hit Enter here to accept the default title derived from the directory name.
110110

111111
<pre data-copy="none"><span class="muted">┌</span> <span class="invert"> observable create </span>
112112
<span class="muted">│</span>
113113
<span class="green">◇</span> Where to create your project?
114-
<span class="muted">│</span> <span class="muted">./hello-framework</span>
114+
<span class="muted">│</span> <span class="muted">hello-framework</span>
115115
<span class="muted">│</span>
116116
<span class="focus">◆</span> What to title your project?
117117
<span class="focus">│</span> <span class="muted"><span class="invert">H</span>ello Framework</span>
@@ -137,7 +137,7 @@ If you use npm or Yarn as your preferred package manager, declare your allegianc
137137
<pre data-copy="none"><span class="muted">┌</span> <span class="invert"> observable create </span>
138138
<span class="muted">│</span>
139139
<span class="green">◇</span> Where to create your project?
140-
<span class="muted">│</span> <span class="muted">./hello-framework</span>
140+
<span class="muted">│</span> <span class="muted">hello-framework</span>
141141
<span class="muted">│</span>
142142
<span class="green">◇</span> What to title your project?
143143
<span class="muted">│</span> <span class="muted">Hello Framework</span>
@@ -156,7 +156,7 @@ If you’ll continue developing your project after you finish this tutorial and
156156
<pre data-copy="none"><span class="muted">┌</span> <span class="invert"> observable create </span>
157157
<span class="muted">│</span>
158158
<span class="green">◇</span> Where to create your project?
159-
<span class="muted">│</span> <span class="muted">./hello-framework</span>
159+
<span class="muted">│</span> <span class="muted">hello-framework</span>
160160
<span class="muted">│</span>
161161
<span class="green">◇</span> What to title your project?
162162
<span class="muted">│</span> <span class="muted">Hello Framework</span>
@@ -176,7 +176,7 @@ And that’s it! After some downloading, copying, and installing, your new proje
176176
<pre data-copy="none"><span class="muted">┌</span> <span class="invert"> observable create </span>
177177
<span class="muted">│</span>
178178
<span class="green">◇</span> Where to create your project?
179-
<span class="muted">│</span> <span class="muted">./hello-framework</span>
179+
<span class="muted">│</span> <span class="muted">hello-framework</span>
180180
<span class="muted">│</span>
181181
<span class="green">◇</span> What to title your project?
182182
<span class="muted">│</span> <span class="muted">Hello Framework</span>
@@ -194,7 +194,7 @@ And that’s it! After some downloading, copying, and installing, your new proje
194194
<span class="muted">│</span>
195195
<span class="green">◇</span> Next steps… <span class="muted">──────────╮</span>
196196
<span class="muted">│</span> <span class="muted">│</span>
197-
<span class="muted">│</span> <span class="focus">cd ./hello-framework</span> <span class="muted">│</span>
197+
<span class="muted">│</span> <span class="focus">cd hello-framework</span> <span class="muted">│</span>
198198
<span class="muted">│</span> <span class="focus">yarn dev</span> <span class="muted">│</span>
199199
<span class="muted">│</span> <span class="muted">│</span>
200200
<span class="muted">├────────────────────────╯</span>

src/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const defaultEffects: CreateEffects = {
4646
export async function create(options = {}, effects: CreateEffects = defaultEffects): Promise<void> {
4747
const {clack} = effects;
4848
clack.intro(`${inverse(" observable create ")} ${faint(`v${process.env.npm_package_version}`)}`);
49-
const defaultRootPath = "./hello-framework";
49+
const defaultRootPath = "hello-framework";
5050
const defaultRootPathError = validateRootPath(defaultRootPath);
5151
await clack.group(
5252
{

0 commit comments

Comments
 (0)