Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OaaS/HeuristicLab.Services.Optimization.Web/Content/dynatree/grunt.js @ 10204

Last change on this file since 10204 was 9215, checked in by fschoepp, 12 years ago

#1888:

  • Janitor is now working as expected in Windows Azure
  • Added basic support for experiments (draggable experiments)
  • Added methods to save/read experiments from TableStorage
  • The job status can now be retrieved by using the GetTasks/GetTaskData methods
  • Added a class to convert JSON-objects to Algorithm instances
  • Web page: Added experiment button to navigation
File size: 2.8 KB
Line 
1/*jslint node:true */
2
3module.exports = function(grunt) {
4    // Project configuration.
5    grunt.initConfig({
6        pkg: "<json:package.json>",
7        // Project metadata, used by the <banner> directive.
8        meta: {
9            banner: "/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - " +
10                    "<%= grunt.template.today('yyyy-mm-dd') %>\n" +
11                    "<%= pkg.homepage ? '* ' + pkg.homepage + '\n' : '' %>" +
12                    "* Copyright (c) <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>;" +
13                    " Licensed <%= _.pluck(pkg.licenses, 'type').join(', ') %> */"
14        },
15        concat: {
16            dist: {
17                src: ["<banner:meta.banner>", "<file_strip_banner:src/<%= pkg.name %>.js>"],
18//                src: ["src/jquery.dynatree.js"],
19                dest: "dist/<%= pkg.name %>-<%= pkg.version %>.js"
20            }
21        },
22        min: {
23            dist: {
24                src: ["<banner:meta.banner>", "<config:concat.dist.dest>"],
25                dest: "dist/<%= pkg.name %>.min.js"
26            }
27        },
28//        qunit: {
29//            files: ["tests/unit/**/*.html"]
30//        },
31        lint: {
32//            beforeconcat: ["grunt.js", "src/**/*.js", "tests/**/*.js"],
33            beforeconcat: ["src/jquery.dynatree.js"],
34//            beforeconcat: ["grunt.js"],
35//            beforeconcat: ["grunt.js", "src/jquery.dynatree.js", "tests/**/*.js"],
36            afterconcat: ["<config:concat.dist.dest>"]
37        },
38        // watch: {
39        //   files: "<config:lint.files>",
40        //   tasks: "lint qunit"
41        // },       
42
43        jshint: {
44            options: {
45                // Enforcing Options:
46                bitwise: true,
47                curly: true,
48//              forin: true,
49                eqeqeq: true,
50                immed: true,
51                latedef: true,
52                newcap: true,
53                noarg: true,
54//              noempty: true,
55                nonew: true,
56//              plusplus: true,
57                regexp: true,
58//              strict: true,
59                sub: true,
60                undef: true,
61                // Relaxing Options:
62                eqnull: false,
63                laxbreak: true,
64//                laxcomma: true,
65                smarttabs: false,
66//                globalstrict: true,
67                // Environments:
68//              node: true,  // TODO: only for grunt.js and dynatree-server.json
69                browser: true
70            },
71            globals: {
72                jQuery: true
73            }
74        },
75        uglify: {
76        }
77    });
78    // Default task.
79    grunt.registerTask("default", "lint:beforeconcat concat lint:afterconcat min");
80};
Note: See TracBrowser for help on using the repository browser.