forked from cianclarke/sharepointer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
17 lines (15 loc) · 756 Bytes
/
Gruntfile.js
File metadata and controls
17 lines (15 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
all: ['index.js', 'lib/**/*.js', 'test/**/**/*.js']
},
unit: ['export SP_USERNAME="foo"; export SP_PASSWORD="foo"; export SP_AUTH_TYPE="basic"; export SP_HOST="https://www.example.com"', './node_modules/mocha/bin/mocha -A -u exports --recursive -t 10000 ./test/unit'],
integrate : ['./node_modules/mocha/bin/mocha -A -u exports --recursive -t 25000 ./test/integration ']
});
grunt.loadNpmTasks('grunt-fh-build');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('test', ['jshint', 'fh:unit']);
grunt.registerTask('integration', ['fh:integrate']);
grunt.registerTask('dist', ['test', 'fh:dist']);
grunt.registerTask('default', 'test');
};