Created
October 3, 2015 15:16
-
-
Save fchiumeo/629529f585f548afcd48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "ProjectName", | |
"version": "0.0.1", | |
"private": true, | |
"dependencies": { | |
"bootstrap": "3.3.5", | |
"eonasdan-bootstrap-datetimepicker": "4.17.37", | |
"jquery": "2.1.4", | |
"moment": "2.10.6" | |
}, | |
"overrides": { | |
"bootstrap": [ "bootstrap/dist/**", "!bootstrap/dist/**/{*.min.*,*.map,npm.js}" ], | |
"eonasdan-bootstrap-datetimepicker/css": "eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css", | |
"eonasdan-bootstrap-datetimepicker/js": "eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js", | |
"jquery": "jquery/dist/jquery.js", | |
"moment": [ "moment/moment.js"] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var gulp = require("gulp"); | |
var $ = require("gulp-load-plugins")({ pattern: "*", lazy: false }); | |
gulp.task("bowerCopy", function () | |
{ | |
var bowerOverrides = require("./bower.json").overrides; | |
var destinationFolder; | |
for (destinationFolder in bowerOverrides) | |
{ | |
if (bowerOverrides.hasOwnProperty(destinationFolder)) | |
{ | |
gulp.src(bowerOverrides[destinationFolder], { cwd: "./bower_components/" }) | |
.pipe(gulp.dest("wwwroot/lib/" + destinationFolder)); | |
} | |
} | |
}); | |
gulp.task("cleanBower", function (callback) | |
{ | |
$.del(["wwwroot/lib/**"], { force: true }).then(function () | |
{ | |
callback(); | |
}); | |
}); | |
gulp.task("bower", function (callback) | |
{ | |
$.runSequence("cleanBower", "bowerCopy", function () | |
{ | |
callback(); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "ProjectName", | |
"version": "0.0.1", | |
"private": true, | |
"devDependencies": { | |
"del": "2.0.2", | |
"gulp": "3.9.0", | |
"gulp-load-plugins": "1.0.0-rc.1", | |
"merge-stream": "1.0.0", | |
"run-sequence": "1.1.4" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment