Skip to content

Commit 957f2d1

Browse files
committed
update all ember server to npm start
1 parent 274992d commit 957f2d1

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

guides/release/configuring-ember/configuring-ember-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
In addition to configuring your app itself, you can also configure Ember CLI.
22
These configurations can be made by adding them to the `.ember-cli` file in your application's root. Many can also be made by passing them as arguments to the command line program.
33

4-
For example, a common desire is to change the port that Ember CLI serves the app from. It's possible to pass the port number from the command line with `ember server --port 8080`. To make this configuration permanent, edit your `.ember-cli` file like so:
4+
For example, a common desire is to change the port that Ember CLI serves the app from. It's possible to pass the port number from the command line with `ember server --port 8080`, if you want to pass the port to your `npm start` script you would pass it with an extra `--` like this: `npm start -- --port 8080`. To make this configuration permanent, edit your `.ember-cli` file like so:
55

66
```json
77
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Let's make sure everything is working properly.
5151

5252
```bash
5353
cd ember-quickstart
54-
ember serve
54+
npm start
5555
```
5656

5757
After a few seconds, you should see output that looks like this:

guides/release/testing/index.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,12 @@ You have a few options for running tests.
1616

1717
First, you can run the test suite by entering the command `ember test`, or `ember t`, in your terminal. This will run the suite just once.
1818

19-
Suppose, instead, you want the suite to run after every file change. You can enter `ember test --server`, or `ember t -s`.
20-
21-
Lastly, if you are already running a local development server (through `ember server`), you can visit the `/tests` URI. This will render the `tests/index.html` template.
19+
Running a local development server (through `npm start`), you can visit the `/tests` URI. This will render the `tests/index.html` template. This will also auto-update as you are changing files in your app.
2220

2321
```bash
2422
# Run all tests once
2523
ember test
2624
ember t
27-
28-
# Run all tests after every file change
29-
ember test --server
30-
ember t -s
3125
```
3226

3327
### How to Filter Tests
@@ -38,23 +32,23 @@ The `--module` option allows you to select a **module**—a group of tests that
3832

3933
```bash
4034
# Button component example
41-
ember test --server --module="Integration | Component | simple-button"
35+
ember test --module="Integration | Component | simple-button"
4236

4337
# Run tests for a location service
44-
ember t -s -m="Unit | Service | location"
38+
ember t -m="Unit | Service | location"
4539
```
4640

4741
The `--filter` option is more versatile. You can provide a phrase to match against the modules and test descriptions. A test description is what appears in `test()` in QUnit.
4842

4943
```bash
5044
# Button component example
51-
ember test --server --filter="should show icon and label"
45+
ember test --filter="should show icon and label"
5246

5347
# Test everything related to your dashboard
54-
ember t -s -f="Dashboard"
48+
ember t -f="Dashboard"
5549

5650
# Run integration tests
57-
ember t -s -f="Integration"
51+
ember t -f="Integration"
5852
```
5953

6054
In QUnit, you can exclude tests by adding an exclamation point to the beginning of the filter, e.g. `ember test --filter="!Acceptance"`.

guides/release/testing/testing-application.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ During the development of your tests or when you refactor your application's cod
148148
To try them out, do the following steps:
149149

150150
1. Add `await pauseTest();` in your test code.
151-
2. Run `ember server`.
151+
2. Run `npm start`.
152152
3. Visit `http://localhost:4200/tests` in your browser
153153

154154
When the execution of the test come upon `await pauseTest()`, the test will be paused, allowing you to inspect the state of your application.

0 commit comments

Comments
 (0)