You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/basic-use/cli-commands.md
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ The help command is also the best way to see the aliased or shorthand versions o
22
22
23
23
### Format:
24
24
25
-
```
25
+
```bash
26
26
ember new <my-app-name> [options]
27
27
```
28
28
@@ -34,7 +34,7 @@ ember new <my-app-name> [options]
34
34
35
35
This command below will create a folder called `camping-trip-tracker`, which will be full of app files. It uses the `--yarn` option to show that the app should use `yarn` by default. Yarn is a package manager alternative to `npm`. Options typically start with a double dash `--` and can be omitted entirely.
36
36
37
-
```
37
+
```bash
38
38
ember new camping-trip-tracker --yarn
39
39
```
40
40
@@ -46,7 +46,7 @@ ember new camping-trip-tracker --yarn
46
46
47
47
### Format
48
48
49
-
```
49
+
```bash
50
50
ember serve [options]
51
51
```
52
52
@@ -58,7 +58,7 @@ ember serve [options]
58
58
59
59
By default, apps are served at port `4200`, but if you need to change it for some reason, you could visit your app at `http://localhost:3200` by using this command:
60
60
61
-
```
61
+
```bash
62
62
ember serve --port 3200
63
63
```
64
64
@@ -70,7 +70,7 @@ ember serve --port 3200
70
70
71
71
### Format
72
72
73
-
```
73
+
```bash
74
74
ember generate <type of file><the name to give it>
75
75
```
76
76
@@ -84,7 +84,7 @@ The new files will contain the necessary boilerplate, they will go in the right
84
84
85
85
This command will make a component named `packing-list`. There will be three files created in the app: `packing-list.hbs` which will define what it looks like, `packing-list.js` with JavaScript code to handle user interaction, and an integration test (aka rendering test) file called `packing-list-test.js`.
86
86
87
-
```
87
+
```bash
88
88
ember generate component packing-list
89
89
```
90
90
@@ -96,7 +96,7 @@ ember generate component packing-list
96
96
97
97
### Format
98
98
99
-
```
99
+
```bash
100
100
ember install <addon-name>
101
101
```
102
102
@@ -110,7 +110,7 @@ To use npm packages directly, see <!-- LINK --> to learn about the options.
110
110
111
111
Here's an example of adding SASS support to your app using <!-- LINK TO CLI SASS -->. SASS is an alternative to writing plain CSS. This is a popular community-maintained addon.
112
112
113
-
```
113
+
```bash
114
114
ember install ember-cli-sass
115
115
```
116
116
@@ -124,7 +124,7 @@ ember install ember-cli-sass
124
124
125
125
### Format
126
126
127
-
```
127
+
```bash
128
128
ember test [options]
129
129
```
130
130
@@ -136,7 +136,7 @@ ember test [options]
136
136
137
137
To make tests re-run as we change files, we could use the `--server` option:
138
138
139
-
```
139
+
```bash
140
140
ember test --server
141
141
```
142
142
@@ -146,7 +146,7 @@ ember test --server
146
146
147
147
### Format
148
148
149
-
```
149
+
```bash
150
150
ember build [options]
151
151
```
152
152
@@ -162,7 +162,7 @@ Ember apps can be built with only three environments: development, production, a
162
162
163
163
This command builds the app using the production configuration, so that means by default, it will use maximum minification for best app performance.
Copy file name to clipboardExpand all lines: guides/basic-use/index.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ It is recommend to install the most recent LTS (long term support) version of `n
12
12
13
13
## Installing the ember-cli
14
14
15
-
```
15
+
```bash
16
16
npm install -g ember-cli
17
17
```
18
18
@@ -22,7 +22,7 @@ This will make the `ember` command available throughout your project folders. Th
22
22
23
23
Mac users may need to install [Watchman](https://facebook.github.io/watchman/) via [Homebrew](http://brew.sh/). Watchman helps correct for some buggy file watching behavior in MacOS. Do not use the `npm` package by the same name.
0 commit comments