canvas
WebGL
CSS animations
use github pages
do NOT commit large images or videos
#.gitignore
bower_components
node_modules
images/backgrounds
videos
.grunt
alternatively, setup image optimisation in grunt
bower init
//bower.json
{
...
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"reveal-js": "hakimel/reveal.js#3.1.0",
}
}
bower install
//Grunfile.js
uglify: {
gruntfile: 'bower_components/reveal-js/Gruntfile.js',
tasks: ['uglify']
},
npm install grunt-bower-install-simple --save-dev
//Gruntfile.js
grunt.initConfig({
'bower-install-simple': {
options: {
production: true
}
}
}
grunt.loadNpmTasks('grunt-bower-install-simple');
grunt.registerTask('publish', ['bower-install-simple']);
npm init
npm install
initial setup
git checkout --orphan gh-pages
git rm -rf .
on updates
git checkout master -- path/to/file
mv path/to/file path/to/final/location
too hard
use grunt!
npm install grunt-gh-pages --save-dev
grunt.initConfig({
'gh-pages': {
options: {
push: true
},
src: [
'js/**/*.js',
'css/**/*.css',
'images/**/*',
'bower_components/**',
'index.html',
'.../**/*'
]
}
}
grunt.loadNpmTasks('grunt-gh-pages');
grunt.registerTask('publish', ['bower-install-simple', 'gh-pages']);
grunt publish
fork wyrfel/talks
npm install
bower install