Skip to content

Commit 9d2a553

Browse files
committed
first commit
0 parents  commit 9d2a553

File tree

114 files changed

+26961
-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.

114 files changed

+26961
-0
lines changed

.gitignore

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

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: node_js
2+
node_js:
3+
- 4
4+
before_script:
5+
- npm install -g grunt-cli
6+
after_script:
7+
- grunt retire

.vscode/last.sql

Whitespace-only changes.

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) 2017 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+
screwIE8: false
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+
globals: {
82+
head: false,
83+
module: false,
84+
console: false,
85+
unescape: false,
86+
define: false,
87+
exports: false
88+
}
89+
},
90+
files: ["Gruntfile.js", "js/reveal.js"]
91+
},
92+
93+
connect: {
94+
server: {
95+
options: {
96+
port: port,
97+
base: root,
98+
livereload: true,
99+
open: true,
100+
useAvailablePort: true
101+
}
102+
}
103+
},
104+
105+
zip: {
106+
bundle: {
107+
src: [
108+
"index.html",
109+
"css/**",
110+
"js/**",
111+
"lib/**",
112+
"images/**",
113+
"plugin/**",
114+
"**.md"
115+
],
116+
dest: "reveal-js-presentation.zip"
117+
}
118+
},
119+
120+
watch: {
121+
js: {
122+
files: ["Gruntfile.js", "js/reveal.js"],
123+
tasks: "js"
124+
},
125+
theme: {
126+
files: [
127+
"css/theme/source/*.sass",
128+
"css/theme/source/*.scss",
129+
"css/theme/template/*.sass",
130+
"css/theme/template/*.scss"
131+
],
132+
tasks: "css-themes"
133+
},
134+
css: {
135+
files: ["css/reveal.scss"],
136+
tasks: "css-core"
137+
},
138+
html: {
139+
files: root.map(path => path + "/*.html")
140+
},
141+
markdown: {
142+
files: [
143+
root.map(path => path + "/*.md"),
144+
root.map(path => path + "slides/*.md")
145+
]
146+
},
147+
options: {
148+
livereload: true
149+
}
150+
},
151+
152+
retire: {
153+
js: ["js/reveal.js", "lib/js/*.js", "plugin/**/*.js"],
154+
node: ["."]
155+
}
156+
});
157+
158+
// Dependencies
159+
grunt.loadNpmTasks("grunt-contrib-connect");
160+
grunt.loadNpmTasks("grunt-contrib-cssmin");
161+
grunt.loadNpmTasks("grunt-contrib-jshint");
162+
grunt.loadNpmTasks("grunt-contrib-qunit");
163+
grunt.loadNpmTasks("grunt-contrib-uglify");
164+
grunt.loadNpmTasks("grunt-contrib-watch");
165+
grunt.loadNpmTasks("grunt-autoprefixer");
166+
grunt.loadNpmTasks("grunt-retire");
167+
grunt.loadNpmTasks("grunt-sass");
168+
grunt.loadNpmTasks("grunt-zip");
169+
170+
// Default task
171+
grunt.registerTask("default", ["css", "js"]);
172+
173+
// JS task
174+
grunt.registerTask("js", ["jshint", "uglify", "qunit"]);
175+
176+
// Theme CSS
177+
grunt.registerTask("css-themes", ["sass:themes"]);
178+
179+
// Core framework CSS
180+
grunt.registerTask("css-core", ["sass:core", "autoprefixer", "cssmin"]);
181+
182+
// All CSS
183+
grunt.registerTask("css", ["sass", "autoprefixer", "cssmin"]);
184+
185+
// Package presentation to archive
186+
grunt.registerTask("package", ["default", "zip"]);
187+
188+
// Serve presentation locally
189+
grunt.registerTask("serve", ["connect", "watch"]);
190+
191+
// Run tests
192+
grunt.registerTask("test", ["jshint", "qunit"]);
193+
};

LICENSE

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (C) 2017 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)