files/reveal.js/Gruntfile.js in reveal-ck-3.8.1 vs files/reveal.js/Gruntfile.js in reveal-ck-3.9.0
- old
+ new
@@ -10,78 +10,77 @@
pkg: grunt.file.readJSON('package.json'),
meta: {
banner:
'/*!\n' +
' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +
- ' * http://lab.hakim.se/reveal-js\n' +
+ ' * http://revealjs.com\n' +
' * MIT licensed\n' +
' *\n' +
- ' * Copyright (C) 2017 Hakim El Hattab, http://hakim.se\n' +
+ ' * Copyright (C) 2018 Hakim El Hattab, http://hakim.se\n' +
' */'
},
qunit: {
files: [ 'test/*.html' ]
},
uglify: {
options: {
- banner: '<%= meta.banner %>\n'
+ banner: '<%= meta.banner %>\n',
+ ie8: true
},
build: {
src: 'js/reveal.js',
dest: 'js/reveal.min.js'
}
},
sass: {
core: {
- files: {
- 'css/reveal.css': 'css/reveal.scss',
- }
+ src: 'css/reveal.scss',
+ dest: 'css/reveal.css'
},
themes: {
- files: [
- {
- expand: true,
- cwd: 'css/theme/source',
- src: ['*.sass', '*.scss'],
- dest: 'css/theme',
- ext: '.css'
- }
- ]
+ expand: true,
+ cwd: 'css/theme/source',
+ src: ['*.sass', '*.scss'],
+ dest: 'css/theme',
+ ext: '.css'
}
},
autoprefixer: {
- dist: {
+ core: {
src: 'css/reveal.css'
}
},
cssmin: {
+ options: {
+ compatibility: 'ie9'
+ },
compress: {
- files: {
- 'css/reveal.min.css': [ 'css/reveal.css' ]
- }
+ src: 'css/reveal.css',
+ dest: 'css/reveal.min.css'
}
},
jshint: {
options: {
curly: false,
eqeqeq: true,
immed: true,
esnext: true,
- latedef: true,
+ latedef: 'nofunc',
newcap: true,
noarg: true,
sub: true,
undef: true,
eqnull: true,
browser: true,
expr: true,
+ loopfunc: true,
globals: {
head: false,
module: false,
console: false,
unescape: false,
@@ -96,26 +95,29 @@
server: {
options: {
port: port,
base: root,
livereload: true,
- open: true
+ open: true,
+ useAvailablePort: true
}
- },
-
+ }
},
zip: {
- 'reveal-js-presentation.zip': [
- 'index.html',
- 'css/**',
- 'js/**',
- 'lib/**',
- 'images/**',
- 'plugin/**',
- '**.md'
- ]
+ bundle: {
+ src: [
+ 'index.html',
+ 'css/**',
+ 'js/**',
+ 'lib/**',
+ 'images/**',
+ 'plugin/**',
+ '**.md'
+ ],
+ dest: 'reveal-js-presentation.zip'
+ }
},
watch: {
js: {
files: [ 'Gruntfile.js', 'js/reveal.js' ],
@@ -144,27 +146,26 @@
livereload: true
}
},
retire: {
- js: ['js/reveal.js', 'lib/js/*.js', 'plugin/**/*.js'],
- node: ['.'],
- options: {}
+ js: [ 'js/reveal.js', 'lib/js/*.js', 'plugin/**/*.js' ],
+ node: [ '.' ]
}
});
// Dependencies
- grunt.loadNpmTasks( 'grunt-contrib-qunit' );
- grunt.loadNpmTasks( 'grunt-contrib-jshint' );
+ grunt.loadNpmTasks( 'grunt-contrib-connect' );
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
+ grunt.loadNpmTasks( 'grunt-contrib-jshint' );
+ grunt.loadNpmTasks( 'grunt-contrib-qunit' );
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
- grunt.loadNpmTasks( 'grunt-sass' );
- grunt.loadNpmTasks( 'grunt-contrib-connect' );
grunt.loadNpmTasks( 'grunt-autoprefixer' );
- grunt.loadNpmTasks( 'grunt-zip' );
grunt.loadNpmTasks( 'grunt-retire' );
+ grunt.loadNpmTasks( 'grunt-sass' );
+ grunt.loadNpmTasks( 'grunt-zip' );
// Default task
grunt.registerTask( 'default', [ 'css', 'js' ] );
// JS task