Skip to content

Commit 5674dc7

Browse files
committed
grunt omg
1 parent e072cf8 commit 5674dc7

10 files changed

+586
-97
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

Gitgraph.js

-96
This file was deleted.

Gitgraph.min.js

100644100755
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gruntfile.js

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
module.exports = function(grunt) {
2+
3+
// Project configuration.
4+
grunt.initConfig({
5+
pkg: grunt.file.readJSON('package.json'),
6+
jshint: {
7+
files: ['src/<%= pkg.name %>.js']
8+
},
9+
concat: {
10+
dist: {
11+
src: ['vendor/spin/dist/spin.js', 'src/<%= pkg.name %>.js'],
12+
dest: 'src/<%= pkg.name %>.concat.js'
13+
}
14+
},
15+
uglify: {
16+
build: {
17+
src: '<%= concat.dist.dest %>',
18+
dest: '<%= pkg.name %>.min.js'
19+
}
20+
}
21+
});
22+
23+
// Load the plugin that provides the "uglify" task.
24+
grunt.loadNpmTasks('grunt-contrib-uglify');
25+
grunt.loadNpmTasks('grunt-contrib-jshint');
26+
grunt.loadNpmTasks('grunt-contrib-concat');
27+
28+
// Default task(s).
29+
grunt.registerTask('default', ['jshint', 'concat', 'uglify']);
30+
31+
};

README.markdown

100644100755
+11
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,16 @@ Dirt simple GitHub participation graphs built with a `<canvas>` element and sorc
2727
##Limitations
2828
GitHub hasn't exposed participation data via the [api](http://developer.github.com/v3/) yet, but plans to. Until then, requests funnel through a [simple proxy](http://benalman.com/code/projects/php-simple-proxy/docs/files/ba-simple-proxy-php.html) via [my vps](http://bitpshr.info).
2929

30+
##Contributing
31+
Gitgraph uses [Grunt](http://gruntjs.com) for file linting and uglification. To start contributing, first make sure [node](http://nodejs.org) is installed. Then:
32+
33+
```bash
34+
git clone https://github.com/bitpshr/Gitgraph.git
35+
cd Gitgraph
36+
git submodules update --recursive --init
37+
npm install
38+
# hack on Gitgraph.js, run `grunt`, view demo/index.html
39+
```
40+
3041
##License
3142
[WTFPL](http://sam.zoy.org/wtfpl/)

demo/bg.png

100644100755
File mode changed.

demo/demo.html

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<meta name="description" content="Dirt simple Dojo-powered GitHub participation graphs built with a canvas element and sorcery.">
88
<meta name="author" content="Paul Bouchon">
9+
<link rel="shortcut icon" href="http://bitpshr.info/css/img/tri.png"/>
910
<title>Gitgraph</title>
1011
<style>
1112
@import url(http://fonts.googleapis.com/css?family=Sail);

package.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "Gitgraph",
3+
"version": "0.0.1",
4+
"devDependencies": {
5+
"grunt": "~0.4.0",
6+
"grunt-contrib-jshint": "~0.2.0",
7+
"grunt-contrib-uglify": "~0.1.2",
8+
"grunt-contrib-concat": "~0.1.3"
9+
}
10+
}

0 commit comments

Comments
 (0)