Skip to content

Commit c6991d4

Browse files
committed
udpate
1 parent ca47ffd commit c6991d4

File tree

133 files changed

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

133 files changed

+33407
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.DS_Store
2+
.svn
3+
log/*.log
4+
tmp/**
5+
node_modules/
6+
.sass-cache
7+
css/reveal.min.css
8+
js/reveal.min.js
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: node_js
2+
node_js:
3+
- 0.10
4+
before_script:
5+
- npm install -g grunt-cli
Lines changed: 23 additions & 0 deletions
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
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
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) 2014 Hakim El Hattab, http://hakim.se\n' +
15+
' */'
16+
},
17+
18+
qunit: {
19+
files: [ 'test/*.html' ]
20+
},
21+
22+
uglify: {
23+
options: {
24+
banner: '<%= meta.banner %>\n'
25+
},
26+
build: {
27+
src: 'js/reveal.js',
28+
dest: 'js/reveal.min.js'
29+
}
30+
},
31+
32+
cssmin: {
33+
compress: {
34+
files: {
35+
'css/reveal.min.css': [ 'css/reveal.css' ]
36+
}
37+
}
38+
},
39+
40+
sass: {
41+
main: {
42+
files: {
43+
'css/theme/darkgray.css': 'css/theme/source/darkgray.scss',
44+
'css/theme/beigesmall.css': 'css/theme/source/beigesmall.scss',
45+
'css/theme/cbc.css': 'css/theme/source/cbc.scss',
46+
'css/theme/default.css': 'css/theme/source/default.scss',
47+
'css/theme/beige.css': 'css/theme/source/beige.scss',
48+
'css/theme/night.css': 'css/theme/source/night.scss',
49+
'css/theme/serif.css': 'css/theme/source/serif.scss',
50+
'css/theme/simple.css': 'css/theme/source/simple.scss',
51+
'css/theme/sky.css': 'css/theme/source/sky.scss',
52+
'css/theme/moon.css': 'css/theme/source/moon.scss',
53+
'css/theme/solarized.css': 'css/theme/source/solarized.scss',
54+
'css/theme/blood.css': 'css/theme/source/blood.scss'
55+
}
56+
}
57+
},
58+
59+
jshint: {
60+
options: {
61+
curly: false,
62+
eqeqeq: true,
63+
immed: true,
64+
latedef: true,
65+
newcap: true,
66+
noarg: true,
67+
sub: true,
68+
undef: true,
69+
eqnull: true,
70+
browser: true,
71+
expr: true,
72+
globals: {
73+
head: false,
74+
module: false,
75+
console: false,
76+
unescape: false
77+
}
78+
},
79+
files: [ 'Gruntfile.js', 'js/reveal.js' ]
80+
},
81+
82+
connect: {
83+
server: {
84+
options: {
85+
port: port,
86+
base: '.'
87+
}
88+
}
89+
},
90+
91+
zip: {
92+
'reveal-js-presentation.zip': [
93+
'index.html',
94+
'css/**',
95+
'js/**',
96+
'lib/**',
97+
'images/**',
98+
'plugin/**'
99+
]
100+
},
101+
102+
watch: {
103+
main: {
104+
files: [ 'Gruntfile.js', 'js/reveal.js', 'css/reveal.css' ],
105+
tasks: 'default'
106+
},
107+
theme: {
108+
files: [ 'css/theme/source/*.scss', 'css/theme/template/*.scss' ],
109+
tasks: 'themes'
110+
}
111+
}
112+
113+
});
114+
115+
// Dependencies
116+
grunt.loadNpmTasks( 'grunt-contrib-qunit' );
117+
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
118+
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
119+
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
120+
grunt.loadNpmTasks( 'grunt-contrib-watch' );
121+
grunt.loadNpmTasks( 'grunt-contrib-sass' );
122+
grunt.loadNpmTasks( 'grunt-contrib-connect' );
123+
grunt.loadNpmTasks( 'grunt-zip' );
124+
125+
// Default task
126+
grunt.registerTask( 'default', [ 'jshint', 'cssmin', 'uglify', 'qunit' ] );
127+
128+
// Theme task
129+
grunt.registerTask( 'themes', [ 'sass' ] );
130+
131+
// Package presentation to archive
132+
grunt.registerTask( 'package', [ 'default', 'zip' ] );
133+
134+
// Serve presentation locally
135+
grunt.registerTask( 'serve', [ 'connect', 'watch' ] );
136+
137+
// Run tests
138+
grunt.registerTask( 'test', [ 'jshint', 'qunit' ] );
139+
140+
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (C) 2015 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)