Skip to content

chore(readme): specify language for better syntax highlighting #2700

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ By default, the development build target and environment are used.

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

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

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

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

```
```json
"start": "ng serve --proxy-config proxy.conf.json",
```

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

You can deploy your apps quickly via:

```
```bash
ng github-pages:deploy --message "Optional commit message"
```

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

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:

```
```bash
ng github-pages:deploy --user-page --message "Optional commit message"
```

Expand Down Expand Up @@ -294,7 +294,7 @@ source ~/.bash_profile

### Project assets

You can add any files you want copied as-is to `src/assets/`.
You can add any files you want copied as-is to `src/assets/`.

### Global styles

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

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

```
```javascript
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
Expand Down Expand Up @@ -378,7 +378,7 @@ npm install bootstrap@next

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

```
```json
"scripts": [
"../node_modules/jquery/dist/jquery.js",
"../node_modules/tether/dist/js/tether.js",
Expand All @@ -387,7 +387,7 @@ Then add the needed script files to `apps[0].scripts`:
```

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

Global package:
```
```bash
npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli@latest
```

Local project package:
```
```bash
rm -rf node_modules dist tmp
npm install --save-dev angular-cli@latest
ng init
Expand Down