fix: MD010/no-hard-tabs (#11592)

pull/11595/head
Nick Schonning 2019-03-19 14:27:16 -04:00 committed by Scott Addie
parent 32bf4679b3
commit f2348c69ea
6 changed files with 47 additions and 47 deletions

View File

@ -80,7 +80,7 @@ gulp.task("min:css", () => {
});
gulp.task("min", gulp.series(["min:js", "min:css"]));
// A 'default' task is required by Gulp v4
gulp.task("default", gulp.series(["min"]));
```
@ -121,56 +121,56 @@ If you haven't already created a new Web app, create a new ASP.NET Web Applicati
```javascript
/// <binding Clean='clean' />
"use strict";
const gulp = require("gulp"),
rimraf = require("rimraf"),
concat = require("gulp-concat"),
cssmin = require("gulp-cssmin"),
uglify = require("gulp-uglify");
const paths = {
webroot: "./wwwroot/"
};
paths.js = paths.webroot + "js/**/*.js";
paths.minJs = paths.webroot + "js/**/*.min.js";
paths.css = paths.webroot + "css/**/*.css";
paths.minCss = paths.webroot + "css/**/*.min.css";
paths.concatJsDest = paths.webroot + "js/site.min.js";
paths.concatCssDest = paths.webroot + "css/site.min.css";
gulp.task("clean:js", done => rimraf(paths.concatJsDest, done));
gulp.task("clean:css", done => rimraf(paths.concatCssDest, done));
gulp.task("clean", gulp.series(["clean:js", "clean:css"]));
gulp.task("min:js", () => {
return gulp.src([paths.js, "!" + paths.minJs], { base: "." })
.pipe(concat(paths.concatJsDest))
.pipe(uglify())
.pipe(gulp.dest("."));
});
gulp.task("min:js", () => {
return gulp.src([paths.js, "!" + paths.minJs], { base: "." })
.pipe(concat(paths.concatJsDest))
.pipe(uglify())
.pipe(gulp.dest("."));
});
gulp.task("min:css", () => {
return gulp.src([paths.css, "!" + paths.minCss])
.pipe(concat(paths.concatCssDest))
.pipe(cssmin())
.pipe(gulp.dest("."));
});
gulp.task("min:css", () => {
return gulp.src([paths.css, "!" + paths.minCss])
.pipe(concat(paths.concatCssDest))
.pipe(cssmin())
.pipe(gulp.dest("."));
});
gulp.task("min", gulp.series(["min:js", "min:css"]));
// A 'default' task is required by Gulp v4
gulp.task("default", gulp.series(["min"]));
gulp.task("min", gulp.series(["min:js", "min:css"]));
// A 'default' task is required by Gulp v4
gulp.task("default", gulp.series(["min"]));
```
3. In **Solution Explorer**, right-click *gulpfile.js*, and select **Task Runner Explorer**.
![Open Task Runner Explorer from Solution Explorer](using-gulp/_static/02-SolutionExplorer-TaskRunnerExplorer.png)
**Task Runner Explorer** shows the list of Gulp tasks. (You might have to click the **Refresh** button that appears to the left of the project name.)
![Task Runner Explorer](using-gulp/_static/03-TaskRunnerExplorer.png)
> [!IMPORTANT]
> The **Task Runner Explorer** context menu item appears only if *gulpfile.js* is in the root project directory.
@ -202,7 +202,7 @@ To define a new Gulp task, modify *gulpfile.js*.
1. Add the following JavaScript to the end of *gulpfile.js*:
```javascript
```javascript
gulp.task('first', done => {
console.log('first task! <-----');
done(); // signal completion
@ -227,22 +227,22 @@ When you run multiple tasks, the tasks run concurrently by default. However, if
1. To define a series of tasks to run in order, replace the `first` task that you added above in *gulpfile.js* with the following:
```javascript
gulp.task('series:first', done => {
console.log('first task! <-----');
done(); // signal completion
});
gulp.task('series:second', done => {
console.log('second task! <-----');
```javascript
gulp.task('series:first', done => {
console.log('first task! <-----');
done(); // signal completion
});
});
gulp.task('series:second', done => {
console.log('second task! <-----');
done(); // signal completion
});
gulp.task('series', gulp.series(['series:first', 'series:second']), () => { });
gulp.task('series', gulp.series(['series:first', 'series:second']), () => { });
// A 'default' task is required by Gulp v4
gulp.task('default', gulp.series('series'));
// A 'default' task is required by Gulp v4
gulp.task('default', gulp.series('series'));
```
You now have three tasks: `series:first`, `series:second`, and `series`. The `series:second` task includes a second parameter which specifies an array of tasks to be run and completed before the `series:second` task will run. As specified in the code above, only the `series:first` task must be completed before the `series:second` task will run.
2. Save *gulpfile.js*.

View File

@ -139,7 +139,7 @@ The code does the following:
instructorToUpdate,
"",
i => i.FirstMidName, i => i.LastName, i => i.HireDate, i => i.OfficeAssignment))
```
```
- If the office location is blank, sets the Instructor.OfficeAssignment property to null so that the related row in the OfficeAssignment table will be deleted.

View File

@ -194,11 +194,11 @@ The preceding markup makes the following changes:
* Updates the `page` directive from `@page` to `@page "{id:int?}"`. `"{id:int?}"` is a route template. The route template changes integer query strings in the URL to route data. For example, clicking on the **Select** link for an instructor with only the `@page` directive produces a URL like the following:
`http://localhost:1234/Instructors?id=2`
`http://localhost:1234/Instructors?id=2`
When the page directive is `@page "{id:int?}"`, the previous URL is:
When the page directive is `@page "{id:int?}"`, the previous URL is:
`http://localhost:1234/Instructors/2`
`http://localhost:1234/Instructors/2`
* Page title is **Instructors**.
* Added an **Office** column that displays `item.OfficeAssignment.Location` only if `item.OfficeAssignment` isn't null. Because this is a one-to-zero-or-one relationship, there might not be a related OfficeAssignment entity.

View File

@ -209,9 +209,9 @@ The following table shows some common [data annotations](/dotnet/api/microsoft.a
|[Url]|type="url"|
|[HiddenInput]|type="hidden"|
|[Phone]|type="tel"|
|[DataType(DataType.Password)]| type="password"|
|[DataType(DataType.Date)]| type="date"|
|[DataType(DataType.Time)]| type="time"|
|[DataType(DataType.Password)]|type="password"|
|[DataType(DataType.Date)]|type="date"|
|[DataType(DataType.Time)]|type="time"|
Sample:

View File

@ -6,6 +6,6 @@
* Update the database:
`dotnet ef database update`
`dotnet ef database update`
* Enable HTTPS in the project

View File

@ -207,7 +207,7 @@ Uncheck the **Configure for HTTPS** check box.
![New ASP.NET Core Web Application dialog showing the Configure for HTTPS check box unselected.](enforcing-ssl/_static/out.png)
# [.NET Core CLI](#tab/netcore-cli)
# [.NET Core CLI](#tab/netcore-cli)
Use the `--no-https` option. For example