Skip to content

Commit

Permalink
exp with grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Starkov committed Oct 4, 2013
1 parent f9e8967 commit 71d9605
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 10 deletions.
29 changes: 29 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,29 @@
module.exports = function(grunt) {

grunt.initConfig({
copy: {
templates: {
files: [
{
src: './templates/default.mustache',
dest: './node_modules/cleaver/templates/default.mustache'
},
{
src: './templates/layout.mustache',
dest: './node_modules/cleaver/templates/layout.mustache'
},
]
}
}
});

grunt.loadNpmTasks('grunt-contrib-copy');

/*
grunt.registerTask('copy', [
'copy'
]
);
*/

};
17 changes: 10 additions & 7 deletions package.json
@@ -1,10 +1,10 @@
{
"name": "bauchara",
"preferGlobal": true,
"version": "0.0.4",
"author": "Vladimir Starkov <matmuchrapna@gmail.com>",
"version": "0.0.5",
"author": "Vladimir Starkov <matmuchrapna@gmail.com> (http://vstarkov.com/)",
"description": "30-second slideshows for hackers with shower",
"keywords":[
"keywords": [
"shower",
"markdown",
"static",
Expand All @@ -15,11 +15,14 @@
"bauchara": "./node_modules/cleaver/bin/cleaver"
},
"scripts": {
"postinstall": "node ./scripts/postinstall.js"
"postinstall": "grunt copy"
},
"main": "./node_modules/cleaver/lib/cleaver",
"dependencies" : {
"cleaver": "0.4.0"
"dependencies": {
"cleaver": "0.4.0",
"grunt": "0.4.1",
"grunt-cli": "0.1.9",
"grunt-contrib-copy": "0.4.1"
},
"license": "MIT"
}
}
3 changes: 0 additions & 3 deletions scripts/postinstall.js

This file was deleted.

5 changes: 5 additions & 0 deletions templates/default.mustache
@@ -0,0 +1,5 @@
{{#slides}}
<section class="slide"><div>
{{{.}}}
</div></section>
{{/slides}}
24 changes: 24 additions & 0 deletions templates/layout.mustache
@@ -0,0 +1,24 @@
<!DOCTYPE HTML>
<html>
<head>
<title>{{title}}</title>
<meta charset="{{encoding}}">
<meta name="viewport" content="width=792, user-scalable=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">

<link rel="stylesheet" href="http://shwr.me/shower/themes/ribbon/styles/screen.css">
<style type="text/css">
{{{externalStyle}}}
</style>
</head>
<body class="list">
<header class="caption">
<h1>{{title}}</h1>
</header>

{{{slideshow}}}

<div class="progress"><div></div></div>
<script src="http://shwr.me/shower/shower.min.js"></script>
</body>
</html>

0 comments on commit 71d9605

Please sign in to comment.