signal-desktop/Gruntfile.js
lilia 8e48d95cb4 Switch crypto js to bower via google code svn
Plus grunt task to build CryptoJS from these sources.
2014-10-31 20:43:36 -07:00

44 lines
1.1 KiB
JavaScript

'use strict';
module.exports = function(grunt) {
var bower = grunt.file.readJSON('bower.json');
var components = [];
for (var i in bower.concat.app) {
components.push('components/' + bower.concat.app[i] + '/**/*.js');
}
grunt.initConfig({
concat: {
components: {
src: components,
dest: 'js/components.js',
},
cryptojs: {
src: [
"components/cryptojs/src/core.js",
"components/cryptojs/src/sha256.js",
"components/cryptojs/src/hmac.js",
"components/cryptojs/src/enc-base64.js",
"components/cryptojs/src/md5.js",
"components/cryptojs/src/evpkdf.js",
"components/cryptojs/src/cipher-core.js",
"components/cryptojs/src/aes.js"
],
dest: 'js-deps/CryptoJS.js'
},
test: {
src: [
'components/mocha/mocha.js',
'components/chai/chai.js',
'test/_test.js'
],
dest: 'test/test.js',
}
}
});
grunt.loadNpmTasks('grunt-preen');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask('default', ['preen', 'concat']);
};