Skip to content

Commit 010478b

Browse files
Jake Stewartfilipesilva
Jake Stewart
authored andcommitted
chore(readme): specify language for better syntax highlighting
Close #2700
1 parent 9191e3a commit 010478b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ By default, the development build target and environment are used.
136136

137137
The mapping used to determine which environment file is used can be found in `angular-cli.json`:
138138

139-
```
139+
```json
140140
"environments": {
141141
"source": "environments/environment.ts",
142142
"dev": "environments/environment.ts",
@@ -206,7 +206,7 @@ Say we have a server running on `http://localhost:3000/api` and we want all call
206206
We create a file next to projects `package.json` called `proxy.conf.json`
207207
with the content
208208

209-
```
209+
```json
210210
{
211211
"/api": {
212212
"target": "http://localhost:3000",
@@ -219,7 +219,7 @@ You can read more about what options are available here [webpack-dev-server prox
219219

220220
and then we edit the `package.json` file's start script to be
221221

222-
```
222+
```json
223223
"start": "ng serve --proxy-config proxy.conf.json",
224224
```
225225

@@ -229,7 +229,7 @@ now run it with `npm start`
229229

230230
You can deploy your apps quickly via:
231231

232-
```
232+
```bash
233233
ng github-pages:deploy --message "Optional commit message"
234234
```
235235

@@ -249,7 +249,7 @@ To simplify the authentication, be sure to [setup your ssh keys](https://help.gi
249249

250250
If you are deploying a [user or organization page](https://help.github.com/articles/user-organization-and-project-pages/), you can instead use the following command:
251251

252-
```
252+
```bash
253253
ng github-pages:deploy --user-page --message "Optional commit message"
254254
```
255255

@@ -315,7 +315,7 @@ Angular-CLI supports all major CSS preprocessors:
315315

316316
To use these prepocessors simply add the file to your component's `styleUrls`:
317317

318-
```
318+
```javascript
319319
@Component({
320320
selector: 'app-root',
321321
templateUrl: 'app.component.html',
@@ -378,7 +378,7 @@ npm install bootstrap@next
378378

379379
Then add the needed script files to `apps[0].scripts`:
380380

381-
```
381+
```json
382382
"scripts": [
383383
"../node_modules/jquery/dist/jquery.js",
384384
"../node_modules/tether/dist/js/tether.js",
@@ -387,7 +387,7 @@ Then add the needed script files to `apps[0].scripts`:
387387
```
388388

389389
Finally add the Bootstrap CSS to the `apps[0].styles` array:
390-
```
390+
```json
391391
"styles": [
392392
"../node_modules/bootstrap/dist/css/bootstrap.css",
393393
"styles.css"
@@ -402,14 +402,14 @@ your app.
402402
To update `angular-cli` to a new version, you must update both the global package and your project's local package.
403403

404404
Global package:
405-
```
405+
```bash
406406
npm uninstall -g angular-cli
407407
npm cache clean
408408
npm install -g angular-cli@latest
409409
```
410410

411411
Local project package:
412-
```
412+
```bash
413413
rm -rf node_modules dist tmp
414414
npm install --save-dev angular-cli@latest
415415
ng init

0 commit comments

Comments
 (0)