Commit 2949b291 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

moving back to old structure

parent c6ce7cd3
[submodule "theme/reveal.js"]
path = components/theme/reveal.js
path = theme/reveal.js
url = https://github.com/hakimel/reveal.js.git
../../components/Gruntfile.coffee
\ No newline at end of file
# Generated on 2013-11-27 using generator-reveal 0.3.2
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-gh-pages'
grunt.initConfig
"gh-pages":
"gh-pages":
options:
base: "dist"
src: [ '**' ]
watch:
livereload:
options:
livereload: true
files: [
'index.html'
'slides/*.md'
'slides/*.html'
'theme/js/*.js'
]
index:
files: [
'theme/templates/_index.html'
'theme/templates/_section.html'
'slides/list.json'
]
tasks: ['buildIndex']
coffeelint:
files: ['Gruntfile.coffee']
tasks: ['coffeelint']
jshint:
files: ['theme/js/*.js']
tasks: ['jshint']
connect:
livereload:
options:
port: 9000
# Change hostname to '0.0.0.0' to access
# the server from outside.
hostname: 'localhost'
base: '.'
open: true
livereload: true
coffeelint:
options:
indentation:
value: 4
all: ['Gruntfile.coffee']
jshint:
all: ['theme/js/*.js']
copy:
dist:
files: [{
expand: true
src: [
'slides/**'
'theme/**'
'theme/css/**'
'theme/js/**'
'slides/img/**'
]
dest: 'public/'
},{
expand: true
src: ['index.html']
dest: 'public/'
filter: 'isFile'
}]
# Load all grunt tasks.
require('load-grunt-tasks')(grunt)
grunt.registerTask 'buildIndex',
'Build theme/templates/_index.html and slides/list.json.',
->
indexTemplate = grunt.file.read 'theme/templates/_index.html'
sectionTemplate = grunt.file.read 'theme/templates/_section.html'
slides = grunt.file.readJSON 'slides/list.json'
html = grunt.template.process indexTemplate, data:
slides:
slides
section: (slide) ->
grunt.template.process sectionTemplate, data:
slide:
slide
grunt.file.write 'index.html', html
grunt.registerTask 'test',
'*Lint* javascript and coffee files.', [
'coffeelint'
'jshint'
]
grunt.registerTask 'server',
'Run presentation locally and start watch process (living document).', [
'buildIndex'
'connect:livereload'
'watch'
]
grunt.registerTask 'dist',
'Save presentation files to *public* directory.', [
'test'
'buildIndex'
'copy'
]
# Define default task.
grunt.registerTask 'default', [
'test'
'server'
]
../../components/package.json
\ No newline at end of file
{
"name": "template",
"version": "0.0.1",
"private": true,
"devDependencies": {
"grunt": "~0.4.1",
"grunt-coffeelint": "0.0.7",
"grunt-contrib-connect": "~0.5.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-jshint": "~0.7.0",
"grunt-contrib-sass": "^1.0.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-gh-pages": "~0.9.0",
"load-grunt-tasks": "~0.2.0"
},
"engines": {
"node": ">=0.8.0"
},
"scripts": {
"test": "grunt test"
}
}
../../components/theme
\ No newline at end of file
../../theme
\ No newline at end of file
# Generated on 2013-11-27 using generator-reveal 0.3.2
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-gh-pages'
grunt.initConfig
"gh-pages":
"gh-pages":
options:
base: "dist"
src: [ '**' ]
watch:
livereload:
options:
livereload: true
files: [
'index.html'
'slides/*.md'
'slides/*.html'
'theme/js/*.js'
]
index:
files: [
'theme/templates/_index.html'
'theme/templates/_section.html'
'slides/list.json'
]
tasks: ['buildIndex']
coffeelint:
files: ['Gruntfile.coffee']
tasks: ['coffeelint']
jshint:
files: ['theme/js/*.js']
tasks: ['jshint']
connect:
livereload:
options:
port: 9000
# Change hostname to '0.0.0.0' to access
# the server from outside.
hostname: 'localhost'
base: '.'
open: true
livereload: true
coffeelint:
options:
indentation:
value: 4
all: ['Gruntfile.coffee']
jshint:
all: ['theme/js/*.js']
copy:
dist:
files: [{
expand: true
src: [
'slides/**'
'theme/**'
'theme/css/**'
'theme/js/**'
'slides/img/**'
]
dest: 'public/'
},{
expand: true
src: ['index.html']
dest: 'public/'
filter: 'isFile'
}]
# Load all grunt tasks.
require('load-grunt-tasks')(grunt)
grunt.registerTask 'buildIndex',
'Build theme/templates/_index.html and slides/list.json.',
->
indexTemplate = grunt.file.read 'theme/templates/_index.html'
sectionTemplate = grunt.file.read 'theme/templates/_section.html'
slides = grunt.file.readJSON 'slides/list.json'
html = grunt.template.process indexTemplate, data:
slides:
slides
section: (slide) ->
grunt.template.process sectionTemplate, data:
slide:
slide
grunt.file.write 'index.html', html
grunt.registerTask 'test',
'*Lint* javascript and coffee files.', [
'coffeelint'
'jshint'
]
grunt.registerTask 'server',
'Run presentation locally and start watch process (living document).', [
'buildIndex'
'connect:livereload'
'watch'
]
grunt.registerTask 'dist',
'Save presentation files to *public* directory.', [
'test'
'buildIndex'
'copy'
]
# Define default task.
grunt.registerTask 'default', [
'test'
'server'
]
{
"name": "template",
"version": "0.0.1",
"private": true,
"devDependencies": {
"grunt": "~0.4.1",
"grunt-coffeelint": "0.0.7",
"grunt-contrib-connect": "~0.5.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-jshint": "~0.7.0",
"grunt-contrib-sass": "^1.0.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-gh-pages": "~0.9.0",
"load-grunt-tasks": "~0.2.0"
},
"engines": {
"node": ">=0.8.0"
},
"scripts": {
"test": "grunt test"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment