Skip to content
This repository was archived by the owner on Sep 23, 2021. It is now read-only.

Commit fe71fe8

Browse files
committed
Update reveal js version.
1 parent ae63721 commit fe71fe8

Some content is hidden

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

80 files changed

+9350
-4098
lines changed

package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"reveal.js": "^3.5.0"
3+
"reveal.js": "^3.8.0"
44
}
55
}

static/reveal.js/.gitignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

static/reveal.js/.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
language: node_js
22
node_js:
3-
- 4
4-
before_script:
5-
- npm install -g grunt-cli
3+
- 11
64
after_script:
7-
- grunt retire
5+
- npm run build -- retire

static/reveal.js/Gruntfile.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
/* global module:false */
2-
module.exports = function(grunt) {
3-
var port = grunt.option('port') || 8000;
4-
var root = grunt.option('root') || '.';
1+
const sass = require('node-sass');
2+
3+
module.exports = grunt => {
4+
5+
require('load-grunt-tasks')(grunt);
6+
7+
let port = grunt.option('port') || 8000;
8+
let root = grunt.option('root') || '.';
59

610
if (!Array.isArray(root)) root = [root];
711

@@ -15,7 +19,7 @@ module.exports = function(grunt) {
1519
' * http://revealjs.com\n' +
1620
' * MIT licensed\n' +
1721
' *\n' +
18-
' * Copyright (C) 2017 Hakim El Hattab, http://hakim.se\n' +
22+
' * Copyright (C) 2019 Hakim El Hattab, http://hakim.se\n' +
1923
' */'
2024
},
2125

@@ -26,7 +30,7 @@ module.exports = function(grunt) {
2630
uglify: {
2731
options: {
2832
banner: '<%= meta.banner %>\n',
29-
screwIE8: false
33+
ie8: true
3034
},
3135
build: {
3236
src: 'js/reveal.js',
@@ -35,6 +39,10 @@ module.exports = function(grunt) {
3539
},
3640

3741
sass: {
42+
options: {
43+
implementation: sass,
44+
sourceMap: false
45+
},
3846
core: {
3947
src: 'css/reveal.scss',
4048
dest: 'css/reveal.css'
@@ -78,16 +86,18 @@ module.exports = function(grunt) {
7886
eqnull: true,
7987
browser: true,
8088
expr: true,
89+
loopfunc: true,
8190
globals: {
8291
head: false,
8392
module: false,
8493
console: false,
8594
unescape: false,
8695
define: false,
87-
exports: false
96+
exports: false,
97+
require: false
8898
}
8999
},
90-
files: [ 'Gruntfile.js', 'js/reveal.js' ]
100+
files: [ 'gruntfile.js', 'js/reveal.js' ]
91101
},
92102

93103
connect: {
@@ -119,7 +129,7 @@ module.exports = function(grunt) {
119129

120130
watch: {
121131
js: {
122-
files: [ 'Gruntfile.js', 'js/reveal.js' ],
132+
files: [ 'gruntfile.js', 'js/reveal.js' ],
123133
tasks: 'js'
124134
},
125135
theme: {
@@ -135,6 +145,10 @@ module.exports = function(grunt) {
135145
files: [ 'css/reveal.scss' ],
136146
tasks: 'css-core'
137147
},
148+
test: {
149+
files: [ 'test/*.html' ],
150+
tasks: 'test'
151+
},
138152
html: {
139153
files: root.map(path => path + '/*.html')
140154
},
@@ -144,27 +158,13 @@ module.exports = function(grunt) {
144158
options: {
145159
livereload: true
146160
}
147-
},
148-
149-
retire: {
150-
js: [ 'js/reveal.js', 'lib/js/*.js', 'plugin/**/*.js' ],
151-
node: [ '.' ]
152161
}
153162

154163
});
155164

156-
// Dependencies
157-
grunt.loadNpmTasks( 'grunt-contrib-connect' );
158-
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
159-
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
160-
grunt.loadNpmTasks( 'grunt-contrib-qunit' );
161-
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
162-
grunt.loadNpmTasks( 'grunt-contrib-watch' );
163-
grunt.loadNpmTasks( 'grunt-autoprefixer' );
164-
grunt.loadNpmTasks( 'grunt-retire' );
165-
grunt.loadNpmTasks( 'grunt-sass' );
166-
grunt.loadNpmTasks( 'grunt-zip' );
167-
165+
grunt.loadNpmTasks('grunt-contrib-clean');
166+
grunt.loadNpmTasks('grunt-contrib-nodeunit');
167+
168168
// Default task
169169
grunt.registerTask( 'default', [ 'css', 'js' ] );
170170

static/reveal.js/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2017 Hakim El Hattab, http://hakim.se, and reveal.js contributors
1+
Copyright (C) 2019 Hakim El Hattab, http://hakim.se, and reveal.js contributors
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)