Skip to content

Commit 80e6d0f

Browse files
committedMar 10, 2014
Merge branch 'master' of github.com:hakimel/reveal.js
Conflicts: Gruntfile.js
2 parents be5b885 + 08fb6cb commit 80e6d0f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+7645
-1029
lines changed
 

‎Gruntfile.js

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* global module:false */
22
module.exports = function(grunt) {
3-
3+
var port = grunt.option('port') || 8000;
44
// Project configuration
55
grunt.initConfig({
66
pkg: grunt.file.readJSON('package.json'),
@@ -15,9 +15,8 @@ module.exports = function(grunt) {
1515
' */'
1616
},
1717

18-
// Tests will be added soon
1918
qunit: {
20-
files: [ 'test/**/*.html' ]
19+
files: [ 'test/*.html' ]
2120
},
2221

2322
uglify: {
@@ -48,7 +47,8 @@ module.exports = function(grunt) {
4847
'css/theme/simple.css': 'css/theme/source/simple.scss',
4948
'css/theme/sky.css': 'css/theme/source/sky.scss',
5049
'css/theme/moon.css': 'css/theme/source/moon.scss',
51-
'css/theme/solarized.css': 'css/theme/source/solarized.scss',
50+
'css/theme/solarized.css': 'css/theme/source/solarized.scss',
51+
'css/theme/blood.css': 'css/theme/source/blood.scss',
5252
'css/theme/solita.css': 'css/theme/source/solita.scss'
5353
}
5454
}
@@ -70,7 +70,8 @@ module.exports = function(grunt) {
7070
globals: {
7171
head: false,
7272
module: false,
73-
console: false
73+
console: false,
74+
unescape: false
7475
}
7576
},
7677
files: [ 'Gruntfile.js', 'js/reveal.js' ]
@@ -79,7 +80,7 @@ module.exports = function(grunt) {
7980
connect: {
8081
server: {
8182
options: {
82-
port: 8000,
83+
port: port,
8384
base: '.'
8485
}
8586
}
@@ -110,6 +111,7 @@ module.exports = function(grunt) {
110111
});
111112

112113
// Dependencies
114+
grunt.loadNpmTasks( 'grunt-contrib-qunit' );
113115
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
114116
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
115117
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
@@ -119,7 +121,7 @@ module.exports = function(grunt) {
119121
grunt.loadNpmTasks( 'grunt-zip' );
120122

121123
// Default task
122-
grunt.registerTask( 'default', [ 'jshint', 'cssmin', 'uglify' ] );
124+
grunt.registerTask( 'default', [ 'jshint', 'cssmin', 'uglify', 'qunit' ] );
123125

124126
// Theme task
125127
grunt.registerTask( 'themes', [ 'sass' ] );
@@ -130,4 +132,7 @@ module.exports = function(grunt) {
130132
// Serve presentation locally
131133
grunt.registerTask( 'serve', [ 'connect', 'watch' ] );
132134

135+
// Run tests
136+
grunt.registerTask( 'test', [ 'jshint', 'qunit' ] );
137+
133138
};

0 commit comments

Comments
 (0)