Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Gruntfile.js - github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c9e851397e3e0a4a6d61992a9889bbd61bc1531f (plain)
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
35
/* global module:false */
module.exports = function(grunt) {

   // Project configuration.
   grunt.initConfig({
      jshint: {
         options: {
            jshintrc: '.jshintrc'
         },
         gruntfile: {
            src: 'Gruntfile.js'
         },
         files: [ 'js/lib/jsxc.lib.webrtc.js', 'js/lib/jsxc.lib.js', 'js/ojsxc.js' ]
      },
      copy: {
         main: {
            files: [ {
               expand: true,
               src: [ 'js/plugin/*.js', 'js/strophe.jingle/*.js', 'js/otr/build/**', 'js/otr/lib/dsa-webworker.js', 'js/otr/lib/sm-webworker.js', 'js/otr/lib/const.js', 'js/otr/lib/helpers.js', 'js/otr/lib/dsa.js', 'js/otr/vendor/*.js', 'js/ojsxc.js', 'js/admin.js', 'js/lib/*', 'css/*', 'appinfo/*', 'ajax/*', 'img/*', 'templates/*', 'settings.php', 'LICENSE' ],
               dest: 'build/'
            } ]
         }
      },
      clean: [ 'build/' ]
   });

   // These plugins provide necessary tasks.
   grunt.loadNpmTasks('grunt-contrib-jshint');
   grunt.loadNpmTasks('grunt-contrib-copy');
   grunt.loadNpmTasks('grunt-contrib-clean');

   // Default task.
   grunt.registerTask('default', [ 'jshint', 'clean', 'copy' ]);

};