box-chrome-sdk
Version:
A Chrome App SDK for the Box V2 API
33 lines (30 loc) • 896 B
JavaScript
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
eslint: {
src: ['scripts/**/*.js'],
options: {
config: 'eslint.json'
}
},
bower_concat: {
all: {
mainFiles: {
'Rx': 'dist/rx.all.js'
},
dest: 'build/<%= pkg.name %>.bower_components.js',
exclude: ['rxjs']
}
},
concat: {
dist: {
src: ['<%= bower_concat.all.dest %>'],
dest: 'build/<%= pkg.name %>.js'
}
}
});
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-bower-concat');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask('default', ['eslint', 'bower_concat', 'concat']);
};