-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgrunt.vendor.js
34 lines (34 loc) · 989 Bytes
/
grunt.vendor.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module.exports = function ( grunt, moduleName )
{
return {
browserify: {
src: [
// jquery, if you want to use it, needs to be aliased and shimmed below
//"src/main/www/libs/jquery/jquery.min.js",
// bootstrap.js is not necessary if we're using angular-bootstrap below
//"src/main/www/libs/bootstrap/dist/js/bootstrap.min.js",
"src/main/www/libs/angular/angular.js",
"src/main/www/libs/angular-bootstrap/ui-bootstrap.min.js",
"src/main/www/libs/angular-bootstrap/ui-bootstrap-tpls.min.js"
],
dest: "src/main/www/dist/vendor.js",
options: {
alias: [
//"src/main/www/libs/jquery/jquery.min.js:jquery",
"src/main/www/libs/angular/angular.js:angular"
],
shim: {
/*jquery: {
path: 'src/main/www/libs/jquery/jquery.min.js',
exports: '$'
},*/
angular: {
path: 'src/main/www/libs/angular/angular.js',
exports: 'angular'
}
},
transform: [grunt.option( 'transform' )]
}
}
}
};