blob: 56212d483b3426f7d4c9d29b450fc68c4e8f3886 [file] [log] [blame]
// Copyright 2015 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Gruntfile to describe and define grunt tasks.
*/
'use strict';
/**
* Method for driving the grunt actions.
*
* @param {grunt} grunt object for performing tasks.
*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jasmine: {
all: {
src: [
'./android_state_graph.js',
'./androidlog_summary.js',
'./log_helper.js',
'./log_summary.js',
'./manager.js',
'./netlog_summary.js',
'./process_log.js',
'./service.js',
'./state_graph.js',
'./syslog_summary.js',
'./wifi_state_machine.js'
],
options: {
'specs': 'test/spec/**/*.js'
}
}
}
});
// Load the plugin that provices jasmine testing.
grunt.loadNpmTasks('grunt-contrib-jasmine');
// Default task(s).
grunt.registerTask('test', ['jasmine:all']);
grunt.registerTask('copy', 'Copy node modules to lib dir', function() {
grunt.file.copy('./node_modules/d3/d3.min.js', './lib/d3.min.js');
});
grunt.registerTask('default', ['copy']);
};