Skip to content

Commit 5b47d32

Browse files
authored
Merge pull request #2167 from ember-learn/quickstart
updating the quick-start for Vite
2 parents b11497b + 8b01fe0 commit 5b47d32

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

.local.dic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ els-addon-typed-templates
6262
ember-a11y
6363
ember-a11y-refocus
6464
ember-a11y-testing
65+
ember-cli
6566
ember-cli-cjs-transform
6667
ember-cli-deprecation-workflow
6768
ember-cli-document-title

guides/release/getting-started/quick-start.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ We'll cover these steps:
1111
5. Building your app to be deployed to production.
1212
6. Deploying your app to Netlify.
1313

14-
## Install Ember
14+
## Install ember-cli
1515

16-
You can install Ember with a single command using [npm](https://docs.npmjs.com/cli),
16+
You can install `ember-cli` globally with a single command using [npm](https://docs.npmjs.com/cli),
1717
Type this into your terminal:
1818

1919
```bash
2020
npm install -g ember-cli
2121
```
2222

23+
This will make the `ember` script available everywhere on your computer. If you prefer not to install `ember-cli` globally you can run whenever you need to using `npx ember-cli`. Most places in this guide assume that you have installed `ember-cli` globally so if you ever see a command like `ember new` remember that you can always run `npx ember-cli new` instead.
24+
2325
Don't have npm? [Learn how to install Node.js and npm here](https://docs.npmjs.com/getting-started/installing-node).
2426
For a full list of dependencies necessary for an Ember CLI project, visit the [Ember CLI Guides - Installing](https://cli.emberjs.com/release/basic-use/).
2527

@@ -57,11 +59,13 @@ After a few seconds, you should see output that looks like this:
5759

5860
```shell
5961
60-
> ember serve
62+
> vite
6163

62-
building...
64+
VITE v6.3.6 ready in 1202 ms
6365

64-
Build successful (9761ms) – Serving on http://localhost:4200/
66+
➜ Local: http://localhost:4200/
67+
➜ Network: use --host to expose
68+
➜ press h + enter to show help
6569
```
6670

6771
(To stop the server at any time, type Ctrl-C in your terminal.)
@@ -97,7 +101,7 @@ In your editor, open `app/templates/application.gjs` and change it to the follow
97101
</template>
98102
```
99103

100-
Ember detects the changed file and automatically reloads the page for you in the background.
104+
Vite detects the changed file and automatically reloads the page for you in the background.
101105
You should see that the welcome page has been replaced by "PeopleTracker".
102106
You also added an `{{outlet}}` to this page,
103107
which means that any route will be rendered in that place.
@@ -413,22 +417,18 @@ it's time to get it ready to deploy to our users.
413417
To do so, run the following command:
414418

415419
```bash
416-
ember build --environment=production
420+
npm run build
417421
```
418422

419-
The `build` command packages up all of the assets that make up your
423+
The `scripts.build` script in your `package.json` runs `vite build`, which packages up all of the assets that make up your
420424
application&mdash;JavaScript, templates, CSS, web fonts, images, and
421425
more.
422426

423-
In this case, we told Ember to build for the production environment via the `--environment` flag.
427+
In this case, we told Vite to build for the production environment because running `vite build` without specifying a `--mode` defaults to `--mode production`.
424428
This creates an optimized bundle that's ready to upload to your web host.
425429
Once the build finishes,
426430
you'll find all of the concatenated and minified assets in your application's `dist/` directory.
427431

428-
The Ember community values collaboration and building common tools that everyone relies on.
429-
If you're interested in deploying your app to production in a fast and reliable way,
430-
check out the [Ember CLI Deploy](http://ember-cli-deploy.com/) addon.
431-
432432
If you deploy your application to an Apache web server, first create a new virtual host for the application.
433433
To make sure all routes are handled by `index.html`,
434434
add the following directive to the application's virtual host configuration:
@@ -477,7 +477,7 @@ Now you are ready to deploy your app to production on Netlify platform. There ar
477477
You may need to re-create your `dist` directory to include changes made to `_redirects` file by running this command
478478

479479
```bash
480-
ember build --environment=production
480+
npm run build
481481
```
482482

483483
Once you are logged-in to your Netlify account and in the "Sites" section, you should see the Netlify drag and drop area

0 commit comments

Comments
 (0)