forked from cladera/videojs-cuepoints
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
36 lines (35 loc) · 891 Bytes
/
Gruntfile.js
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
36
module.exports = function(grunt) {
var pkg, version, verParts;
pkg = grunt.file.readJSON('package.json');
verParts = pkg.version.split('.');
version = {
full: pkg.version,
major: verParts[0],
minor: verParts[1],
patch: verParts[2]
};
version.majorMinor = version.major + '.' + version.minor;
// Project configuration.
grunt.initConfig({
pkg: pkg,
jshint: {
src: {
src: ['src/*.js'],
options: {
jshintrc: '.jshintrc'
}
}
},
concat: {
build: {
src: ['src/cuepoint.js','src/core.js'],
dest:'build/videojs.<%= pkg.name %>.js'
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jshint');
// Default task(s).
grunt.registerTask('default', ['jshint', 'concat:build']);
};