Skip to content

Commit 8f8dd55

Browse files
first commit
0 parents  commit 8f8dd55

File tree

161 files changed

+54329
-0
lines changed

Some content is hidden

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

161 files changed

+54329
-0
lines changed

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.idea/
2+
*.iml
3+
*.iws
4+
*.eml
5+
out/
6+
.DS_Store
7+
.svn
8+
log/*.log
9+
tmp/**
10+
node_modules/
11+
package-lock.json
12+
.sass-cache
13+
css/reveal.min.css
14+
js/reveal.min.js

CONTRIBUTING.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Contributing
2+
3+
Please keep the [issue tracker](http://github.com/hakimel/reveal.js/issues) limited to **bug reports**, **feature requests** and **pull requests**.
4+
5+
6+
### Personal Support
7+
If you have personal support or setup questions the best place to ask those are [StackOverflow](http://stackoverflow.com/questions/tagged/reveal.js).
8+
9+
10+
### Bug Reports
11+
When reporting a bug make sure to include information about which browser and operating system you are on as well as the necessary steps to reproduce the issue. If possible please include a link to a sample presentation where the bug can be tested.
12+
13+
14+
### Pull Requests
15+
- Should follow the coding style of the file you work in, most importantly:
16+
- Tabs to indent
17+
- Single-quoted strings
18+
- Should be made towards the **dev branch**
19+
- Should be submitted from a feature/topic branch (not your master)
20+
21+
22+
### Plugins
23+
Please do not submit plugins as pull requests. They should be maintained in their own separate repository. More information here: https://github.com/hakimel/reveal.js/wiki/Plugin-Guidelines

Gruntfile.js

+193
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
/* global module:false */
2+
module.exports = function(grunt) {
3+
var port = grunt.option('port') || 8000;
4+
var root = grunt.option('root') || '.';
5+
6+
if (!Array.isArray(root)) root = [root];
7+
8+
// Project configuration
9+
grunt.initConfig({
10+
pkg: grunt.file.readJSON('package.json'),
11+
meta: {
12+
banner:
13+
'/*!\n' +
14+
' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +
15+
' * http://revealjs.com\n' +
16+
' * MIT licensed\n' +
17+
' *\n' +
18+
' * Copyright (C) 2018 Hakim El Hattab, http://hakim.se\n' +
19+
' */'
20+
},
21+
22+
qunit: {
23+
files: [ 'test/*.html' ]
24+
},
25+
26+
uglify: {
27+
options: {
28+
banner: '<%= meta.banner %>\n',
29+
ie8: true
30+
},
31+
build: {
32+
src: 'js/reveal.js',
33+
dest: 'js/reveal.min.js'
34+
}
35+
},
36+
37+
sass: {
38+
core: {
39+
src: 'css/reveal.scss',
40+
dest: 'css/reveal.css'
41+
},
42+
themes: {
43+
expand: true,
44+
cwd: 'css/theme/source',
45+
src: ['*.sass', '*.scss'],
46+
dest: 'css/theme',
47+
ext: '.css'
48+
}
49+
},
50+
51+
autoprefixer: {
52+
core: {
53+
src: 'css/reveal.css'
54+
}
55+
},
56+
57+
cssmin: {
58+
options: {
59+
compatibility: 'ie9'
60+
},
61+
compress: {
62+
src: 'css/reveal.css',
63+
dest: 'css/reveal.min.css'
64+
}
65+
},
66+
67+
jshint: {
68+
options: {
69+
curly: false,
70+
eqeqeq: true,
71+
immed: true,
72+
esnext: true,
73+
latedef: 'nofunc',
74+
newcap: true,
75+
noarg: true,
76+
sub: true,
77+
undef: true,
78+
eqnull: true,
79+
browser: true,
80+
expr: true,
81+
loopfunc: true,
82+
globals: {
83+
head: false,
84+
module: false,
85+
console: false,
86+
unescape: false,
87+
define: false,
88+
exports: false
89+
}
90+
},
91+
files: [ 'Gruntfile.js', 'js/reveal.js' ]
92+
},
93+
94+
connect: {
95+
server: {
96+
options: {
97+
port: port,
98+
base: root,
99+
livereload: true,
100+
open: true,
101+
useAvailablePort: true
102+
}
103+
}
104+
},
105+
106+
zip: {
107+
bundle: {
108+
src: [
109+
'index.html',
110+
'css/**',
111+
'js/**',
112+
'lib/**',
113+
'images/**',
114+
'plugin/**',
115+
'**.md'
116+
],
117+
dest: 'reveal-js-presentation.zip'
118+
}
119+
},
120+
121+
watch: {
122+
js: {
123+
files: [ 'Gruntfile.js', 'js/reveal.js' ],
124+
tasks: 'js'
125+
},
126+
theme: {
127+
files: [
128+
'css/theme/source/*.sass',
129+
'css/theme/source/*.scss',
130+
'css/theme/template/*.sass',
131+
'css/theme/template/*.scss'
132+
],
133+
tasks: 'css-themes'
134+
},
135+
css: {
136+
files: [ 'css/reveal.scss' ],
137+
tasks: 'css-core'
138+
},
139+
html: {
140+
files: root.map(path => path + '/*.html')
141+
},
142+
markdown: {
143+
files: root.map(path => path + '/*.md')
144+
},
145+
options: {
146+
livereload: true
147+
}
148+
},
149+
150+
retire: {
151+
js: [ 'js/reveal.js', 'lib/js/*.js', 'plugin/**/*.js' ],
152+
node: [ '.' ]
153+
}
154+
155+
});
156+
157+
// Dependencies
158+
grunt.loadNpmTasks( 'grunt-contrib-connect' );
159+
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
160+
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
161+
grunt.loadNpmTasks( 'grunt-contrib-qunit' );
162+
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
163+
grunt.loadNpmTasks( 'grunt-contrib-watch' );
164+
grunt.loadNpmTasks( 'grunt-autoprefixer' );
165+
grunt.loadNpmTasks( 'grunt-retire' );
166+
grunt.loadNpmTasks( 'grunt-sass' );
167+
grunt.loadNpmTasks( 'grunt-zip' );
168+
169+
// Default task
170+
grunt.registerTask( 'default', [ 'css', 'js' ] );
171+
172+
// JS task
173+
grunt.registerTask( 'js', [ 'jshint', 'uglify', 'qunit' ] );
174+
175+
// Theme CSS
176+
grunt.registerTask( 'css-themes', [ 'sass:themes' ] );
177+
178+
// Core framework CSS
179+
grunt.registerTask( 'css-core', [ 'sass:core', 'autoprefixer', 'cssmin' ] );
180+
181+
// All CSS
182+
grunt.registerTask( 'css', [ 'sass', 'autoprefixer', 'cssmin' ] );
183+
184+
// Package presentation to archive
185+
grunt.registerTask( 'package', [ 'default', 'zip' ] );
186+
187+
// Serve presentation locally
188+
grunt.registerTask( 'serve', [ 'connect', 'watch' ] );
189+
190+
// Run tests
191+
grunt.registerTask( 'test', [ 'jshint', 'qunit' ] );
192+
193+
};

LICENSE

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (C) 2018 Hakim El Hattab, http://hakim.se, and reveal.js contributors
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

0 commit comments

Comments
 (0)