1 | /// <binding BeforeBuild='copy:angular, cssmin:all, cssmin, copy' Clean='default, copy:angular, cssmin, copy' />
|
---|
2 | /// <reference path="bower_components/angular/angular.min.js" />
|
---|
3 | /// <reference path="bower_components/angular/angular.js" />
|
---|
4 | /*
|
---|
5 | This file in the main entry point for defining grunt tasks and using grunt plugins.
|
---|
6 | Click here to learn more. http://go.microsoft.com/fwlink/?LinkID=513275&clcid=0x409
|
---|
7 | */
|
---|
8 | module.exports = function (grunt) {
|
---|
9 | grunt.loadNpmTasks('grunt-contrib-uglify');
|
---|
10 | grunt.loadNpmTasks('grunt-contrib-cssmin');
|
---|
11 | grunt.loadNpmTasks('grunt-contrib-copy');
|
---|
12 | grunt.initConfig({
|
---|
13 | uglify: {
|
---|
14 | global: {
|
---|
15 | files: {
|
---|
16 | 'wwwroot/js/app.js': [
|
---|
17 | 'bower_components/jquery/dist/jquery.js',
|
---|
18 | 'bower_components/angular/angular.js',
|
---|
19 | 'bower_components/angular-treeview/angular.treeview.js',
|
---|
20 | 'bower_components/angular-animate/angular-animate.js',
|
---|
21 | 'bower_components/bootstrap/dist/js/bootstrap.js',
|
---|
22 | 'bower_components/angular-bootstrap/ui-bootstrap.js',
|
---|
23 | 'bower_components/d3/d3.js',
|
---|
24 | 'bower_components/moment/moment.js',
|
---|
25 | 'bower_components/fullcalendar/dist/fullcalendar.js',
|
---|
26 | 'bower_components/fullcalendar/dist/gcal.js',
|
---|
27 | 'Scripts/GlobalJS/*.js',
|
---|
28 | 'bower_components/ngDialog/js/ngDialog.js',
|
---|
29 | 'bower_components/signalr/jquery.signalR.js'
|
---|
30 | ]
|
---|
31 | }
|
---|
32 | },
|
---|
33 | hubs: {
|
---|
34 | files: {
|
---|
35 | 'wwwroot/js/hubs/graphhubber.js': ['Scripts/Hubs/GraphHubber.js', 'Scripts/Hubs/GraphDataCollector.js'],
|
---|
36 | 'wwwroot/js/hubs/progresshubber.js': 'Scripts/Hubs/ProgressHubber.js',
|
---|
37 | 'wwwroot/js/hubs/userinfohubber.js': 'Scripts/Hubs/UserInfoHubber.js'
|
---|
38 | }
|
---|
39 | }
|
---|
40 | },
|
---|
41 | cssmin:{
|
---|
42 | all:{
|
---|
43 | files:{
|
---|
44 | 'wwwroot/css/site.min.css': [
|
---|
45 | 'Scripts/Styling/*.css',
|
---|
46 | 'bower_components/ngDialog/css/*.css'
|
---|
47 | ]
|
---|
48 | }
|
---|
49 | }
|
---|
50 | },
|
---|
51 | copy:{
|
---|
52 | angular:{
|
---|
53 | files:{
|
---|
54 | 'wwwroot/js/hubs/calendarhubber.js': 'Scripts/Hubs/CalendarHubber.js'
|
---|
55 | }
|
---|
56 | }
|
---|
57 | }
|
---|
58 |
|
---|
59 | });
|
---|
60 | grunt.registerTask('default', ['uglify', 'cssmin', 'copy']);
|
---|
61 | }; |
---|