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/bootstrap/dist/js/bootstrap.js',
|
---|
21 | 'bower_components/d3/d3.js',
|
---|
22 | 'bower_components/moment/moment.js',
|
---|
23 | 'bower_components/fullcalendar/dist/fullcalendar.js',
|
---|
24 | 'bower_components/fullcalendar/dist/gcal.js',
|
---|
25 | 'Scripts/GlobalJS/*.js',
|
---|
26 | 'bower_components/ngDialog/js/ngDialog.js',
|
---|
27 | 'bower_components/signalr/jquery.signalR.js'
|
---|
28 | ]
|
---|
29 | }
|
---|
30 | },
|
---|
31 | hubs: {
|
---|
32 | files: {
|
---|
33 | 'wwwroot/js/hubs/graphhubber.js': ['Scripts/Hubs/GraphHubber.js', 'Scripts/Hubs/GraphDataCollector.js'],
|
---|
34 | 'wwwroot/js/hubs/progresshubber.js': 'Scripts/Hubs/ProgressHubber.js',
|
---|
35 | 'wwwroot/js/hubs/userinfohubber.js': 'Scripts/Hubs/UserInfoHubber.js'
|
---|
36 | }
|
---|
37 | }
|
---|
38 | },
|
---|
39 | cssmin:{
|
---|
40 | all:{
|
---|
41 | files:{
|
---|
42 | 'wwwroot/css/site.min.css': [
|
---|
43 | 'Scripts/Styling/*.css',
|
---|
44 | 'bower_components/ngDialog/css/*.css'
|
---|
45 | ]
|
---|
46 | }
|
---|
47 | }
|
---|
48 | },
|
---|
49 | copy:{
|
---|
50 | angular:{
|
---|
51 | files:{
|
---|
52 | 'wwwroot/js/hubs/calendarhubber.js': 'Scripts/Hubs/CalendarHubber.js'
|
---|
53 | }
|
---|
54 | }
|
---|
55 | }
|
---|
56 |
|
---|
57 | });
|
---|
58 | grunt.registerTask('default', ['uglify', 'cssmin', 'copy']);
|
---|
59 | }; |
---|