Skip to content
This repository was archived by the owner on Jun 13, 2018. It is now read-only.

Commit 34fdaca

Browse files
committedOct 20, 2013
Initial reveal
1 parent 50adcd2 commit 34fdaca

Some content is hidden

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

84 files changed

+13678
-833
lines changed
 

‎Gruntfile.js

+136
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
/* global module:false */
2+
module.exports = function(grunt) {
3+
var port = grunt.option('port') || 8000;
4+
// Project configuration
5+
grunt.initConfig({
6+
pkg: grunt.file.readJSON('package.json'),
7+
meta: {
8+
banner:
9+
'/*!\n' +
10+
' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +
11+
' * http://lab.hakim.se/reveal-js\n' +
12+
' * MIT licensed\n' +
13+
' *\n' +
14+
' * Copyright (C) 2013 Hakim El Hattab, http://hakim.se\n' +
15+
' */'
16+
},
17+
18+
// Tests will be added soon
19+
qunit: {
20+
files: [ 'test/*.html' ]
21+
},
22+
23+
uglify: {
24+
options: {
25+
banner: '<%= meta.banner %>\n'
26+
},
27+
build: {
28+
src: 'js/reveal.js',
29+
dest: 'js/reveal.min.js'
30+
}
31+
},
32+
33+
cssmin: {
34+
compress: {
35+
files: {
36+
'css/reveal.min.css': [ 'css/reveal.css' ]
37+
}
38+
}
39+
},
40+
41+
sass: {
42+
main: {
43+
files: {
44+
'css/theme/default.css': 'css/theme/source/default.scss',
45+
'css/theme/beige.css': 'css/theme/source/beige.scss',
46+
'css/theme/night.css': 'css/theme/source/night.scss',
47+
'css/theme/serif.css': 'css/theme/source/serif.scss',
48+
'css/theme/simple.css': 'css/theme/source/simple.scss',
49+
'css/theme/sky.css': 'css/theme/source/sky.scss',
50+
'css/theme/moon.css': 'css/theme/source/moon.scss',
51+
'css/theme/solarized.css': 'css/theme/source/solarized.scss'
52+
}
53+
}
54+
},
55+
56+
jshint: {
57+
options: {
58+
curly: false,
59+
eqeqeq: true,
60+
immed: true,
61+
latedef: true,
62+
newcap: true,
63+
noarg: true,
64+
sub: true,
65+
undef: true,
66+
eqnull: true,
67+
browser: true,
68+
expr: true,
69+
globals: {
70+
head: false,
71+
module: false,
72+
console: false
73+
}
74+
},
75+
files: [ 'Gruntfile.js', 'js/reveal.js' ]
76+
},
77+
78+
connect: {
79+
server: {
80+
options: {
81+
port: port,
82+
base: '.'
83+
}
84+
}
85+
},
86+
87+
zip: {
88+
'reveal-js-presentation.zip': [
89+
'index.html',
90+
'css/**',
91+
'js/**',
92+
'lib/**',
93+
'images/**',
94+
'plugin/**'
95+
]
96+
},
97+
98+
watch: {
99+
main: {
100+
files: [ 'Gruntfile.js', 'js/reveal.js', 'css/reveal.css' ],
101+
tasks: 'default'
102+
},
103+
theme: {
104+
files: [ 'css/theme/source/*.scss', 'css/theme/template/*.scss' ],
105+
tasks: 'themes'
106+
}
107+
}
108+
109+
});
110+
111+
// Dependencies
112+
grunt.loadNpmTasks( 'grunt-contrib-qunit' );
113+
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
114+
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
115+
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
116+
grunt.loadNpmTasks( 'grunt-contrib-watch' );
117+
grunt.loadNpmTasks( 'grunt-contrib-sass' );
118+
grunt.loadNpmTasks( 'grunt-contrib-connect' );
119+
grunt.loadNpmTasks( 'grunt-zip' );
120+
121+
// Default task
122+
grunt.registerTask( 'default', [ 'jshint', 'cssmin', 'uglify', 'qunit' ] );
123+
124+
// Theme task
125+
grunt.registerTask( 'themes', [ 'sass' ] );
126+
127+
// Package presentation to archive
128+
grunt.registerTask( 'package', [ 'default', 'zip' ] );
129+
130+
// Serve presentation locally
131+
grunt.registerTask( 'serve', [ 'connect', 'watch' ] );
132+
133+
// Run tests
134+
grunt.registerTask( 'test', [ 'jshint', 'qunit' ] );
135+
136+
};

‎LICENSE

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (C) 2013 Hakim El Hattab, http://hakim.se
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)
This repository has been archived.