Skip to content

Instantly share code, notes, and snippets.

View scottaddie's full-sized avatar
💭
.NET 💜 Azure

Scott Addie scottaddie

💭
.NET 💜 Azure
View GitHub Profile
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process
{
"version": "0.1.0",
{
"version": "0.1.0",
// List of configurations. Add new configurations or edit existing ones.
// ONLY "node" and "mono" are supported, change "type" to switch.
"configurations": [
{
// Name of configuration; appears in the launch configuration drop down menu.
"name": "Debug gulpfile.js",
// Type of configuration. Possible values: "node", "mono".
"type": "node",
{
"compilerOptions": {
"target": "ES6",
"module": "commonjs"
}
}
'use strict';
var gulp = require('gulp');
gulp.task('build', function () {
return gulp.src('src/*.html').pipe(gulp.dest('dist'));
});
<!doctype html>
<html lang="">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - mvc_task_runners</title>
<environment names="Development">
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
<link rel="stylesheet" href="~/lib/bootstrap-touch-carousel/dist/css/bootstrap-touch-carousel.css" />
@{
ViewData["Title"] = "Home Page";
}
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
<li data-target="#myCarousel" data-slide-to="3"></li>
{
"name": "ASP.NET",
"version": "0.0.0",
"devDependencies": {
"gulp": "3.8.11",
"gulp-bootlint": "^0.6.4",
"gulp-concat": "2.5.2",
"gulp-cssmin": "0.1.7",
"gulp-uglify": "1.2.0",
"rimraf": "2.2.8"
@scottaddie
scottaddie / gulpfile.js
Last active September 14, 2015 14:12
gulpfile.js with the default Bootlint configuration
var gulp = require('gulp');
var bootlint = require('gulp-bootlint');
gulp.task('bootlint', function(){
gulp.src('Views/**/*.cshtml')
.pipe(bootlint());
});
@scottaddie
scottaddie / gulpfile.js
Created September 14, 2015 14:13
gulpfile.js with Bootlint disabledIds option
var gulp = require('gulp');
var bootlint = require('gulp-bootlint');
gulp.task('bootlint', function(){
gulp.src('Views/**/*.cshtml')
.pipe(bootlint({
disabledIds: ['E001', 'E007']
}));
});
@scottaddie
scottaddie / gulpfile.js
Created September 14, 2015 14:14
gulpfile.js with Bootlint stoponerror and stoponwarning options
var gulp = require('gulp');
var bootlint = require('gulp-bootlint');
gulp.task('bootlint', function(){
gulp.src('Views/**/*.cshtml')
.pipe(bootlint({
disabledIds: ['E001', 'E007'],
stoponerror: true,
stoponwarning: true
}));