Last active
August 29, 2015 14:15
-
-
Save tompazourek/c68370e7d9dd1c970a26 to your computer and use it in GitHub Desktop.
main-bower-files overrides
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": "Example", | |
"private": true, | |
"dependencies": { | |
"bootstrap": "~3.3.2", | |
"font-awesome": "~4.2.0", | |
"jquery-validation": "~1.13.1", | |
"jquery-validation-unobtrusive": "~3.2.2", | |
"eonasdan-bootstrap-datetimepicker": "~3.1.3", | |
"smartmenus": "~0.9.7", | |
"bootbox": "~4.3.0", | |
"typeahead.js": "~0.10.5", | |
"linqjs": "~3.0.4-beta" | |
}, | |
"overrides": { | |
"bootstrap": { | |
"main": [ | |
"less/*.less", | |
"less/mixins/*.less", | |
"./dist/fonts/*", | |
"./dist/js/bootstrap.js" | |
] | |
}, | |
"font-awesome": { | |
"main": [ | |
"less/*.less", | |
"fonts/*" | |
] | |
}, | |
"eonasdan-bootstrap-datetimepicker": { | |
"main": [ | |
"src/less/*", | |
"src/js/*" | |
] | |
}, | |
"moment": { | |
"main": [ | |
"*.js", | |
"locale/*.js" | |
] | |
}, | |
"bootbox": { | |
"main": [ | |
"*.js" | |
] | |
}, | |
"typeahead.js": { | |
"main": [ | |
"dist/*" | |
] | |
} | |
} | |
} |
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
var gulp = require("gulp"); | |
var mainBowerFiles = require("main-bower-files"); | |
var paths = { | |
thirdParty: "Assets/ThirdParty", | |
bowerComponents: "bower_components" | |
}; | |
gulp.task("main-bower-files", function copyMainBowerFilesToAssets() { | |
return gulp.src(mainBowerFiles(), { base: paths.bowerComponents }) | |
.pipe(gulp.dest(paths.thirdParty)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment