Skip to content

Commit c15cc3c

Browse files
committed
Merge branch 'vanilla'
2 parents cd8ba90 + 43eada7 commit c15cc3c

Some content is hidden

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

55 files changed

+2659
-1392
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
.idea/
2+
*.iml
3+
*.iws
4+
*.eml
5+
out/
16
.DS_Store
27
.svn
38
log/*.log

Gruntfile.js

+31-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/* global module:false */
22
module.exports = function(grunt) {
33
var port = grunt.option('port') || 8000;
4-
var base = grunt.option('base') || '.';
4+
var root = grunt.option('root') || '.';
5+
6+
if (!Array.isArray(root)) root = [root];
57

68
// Project configuration
79
grunt.initConfig({
@@ -13,7 +15,7 @@ module.exports = function(grunt) {
1315
' * http://lab.hakim.se/reveal-js\n' +
1416
' * MIT licensed\n' +
1517
' *\n' +
16-
' * Copyright (C) 2015 Hakim El Hattab, http://hakim.se\n' +
18+
' * Copyright (C) 2017 Hakim El Hattab, http://hakim.se\n' +
1719
' */'
1820
},
1921

@@ -42,7 +44,7 @@ module.exports = function(grunt) {
4244
{
4345
expand: true,
4446
cwd: 'css/theme/source',
45-
src: ['*.scss'],
47+
src: ['*.sass', '*.scss'],
4648
dest: 'css/theme',
4749
ext: '.css'
4850
}
@@ -69,6 +71,7 @@ module.exports = function(grunt) {
6971
curly: false,
7072
eqeqeq: true,
7173
immed: true,
74+
esnext: true,
7275
latedef: true,
7376
newcap: true,
7477
noarg: true,
@@ -93,11 +96,12 @@ module.exports = function(grunt) {
9396
server: {
9497
options: {
9598
port: port,
96-
base: base,
99+
base: root,
97100
livereload: true,
98101
open: true
99102
}
100-
}
103+
},
104+
101105
},
102106

103107
zip: {
@@ -107,29 +111,44 @@ module.exports = function(grunt) {
107111
'js/**',
108112
'lib/**',
109113
'images/**',
110-
'plugin/**'
114+
'plugin/**',
115+
'**.md'
111116
]
112117
},
113118

114119
watch: {
115-
options: {
116-
livereload: true
117-
},
118120
js: {
119121
files: [ 'Gruntfile.js', 'js/reveal.js' ],
120122
tasks: 'js'
121123
},
122124
theme: {
123-
files: [ 'css/theme/source/*.scss', 'css/theme/template/*.scss' ],
125+
files: [
126+
'css/theme/source/*.sass',
127+
'css/theme/source/*.scss',
128+
'css/theme/template/*.sass',
129+
'css/theme/template/*.scss'
130+
],
124131
tasks: 'css-themes'
125132
},
126133
css: {
127134
files: [ 'css/reveal.scss' ],
128135
tasks: 'css-core'
129136
},
130137
html: {
131-
files: [ 'index.html']
138+
files: root.map(path => path + '/*.html')
139+
},
140+
markdown: {
141+
files: root.map(path => path + '/*.md')
142+
},
143+
options: {
144+
livereload: true
132145
}
146+
},
147+
148+
retire: {
149+
js: ['js/reveal.js', 'lib/js/*.js', 'plugin/**/*.js'],
150+
node: ['.'],
151+
options: {}
133152
}
134153

135154
});
@@ -144,6 +163,7 @@ module.exports = function(grunt) {
144163
grunt.loadNpmTasks( 'grunt-contrib-connect' );
145164
grunt.loadNpmTasks( 'grunt-autoprefixer' );
146165
grunt.loadNpmTasks( 'grunt-zip' );
166+
grunt.loadNpmTasks( 'grunt-retire' );
147167

148168
// Default task
149169
grunt.registerTask( 'default', [ 'css', 'js' ] );

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2015 Hakim El Hattab, http://hakim.se
1+
Copyright (C) 2017 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)