Skip to content

Commit 5cfeac8

Browse files
author
Akshay
committed
Project set up files added.
1 parent ccac8ae commit 5cfeac8

File tree

4 files changed

+109
-0
lines changed

4 files changed

+109
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
bower_components
3+
test

Gruntfile.js

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
var config = {
2+
dist: 'dist',
3+
bower: 'bower_components',
4+
src: 'src',
5+
banner: '/*!\n' +
6+
' * <%= project.name %> - v<%= project.version %>\n'+
7+
' * Copyright (c) 2015-<%= grunt.template.today("yyyy") %> <%= project.author %>\n'+
8+
' */\n'
9+
};
10+
11+
var project = require('./package.json');
12+
13+
module.exports = function(grunt) {
14+
grunt.initConfig({
15+
config: config,
16+
project: project,
17+
cssmin: {
18+
add_banner: {
19+
options: {
20+
banner: config.banner
21+
},
22+
files: {
23+
'<%= config.dist %>/github-<%= project.version %>.min.css': [
24+
'<%= config.src %>/github.css'
25+
]
26+
}
27+
}
28+
},
29+
uglify: {
30+
options: {
31+
banner: config.banner
32+
},
33+
dist: {
34+
files: {
35+
'<%= config.dist %>/github-<%= project.version %>.min.js': [
36+
'<%= config.src %>/github.js'
37+
],
38+
'<%= config.dist %>/underscore/underscore.min.js': [
39+
'<%= config.bower %>/underscore/underscore.js'
40+
]
41+
}
42+
}
43+
},
44+
clean: {
45+
build: {
46+
src: ["dist/*"]
47+
}
48+
}
49+
});
50+
51+
grunt.loadNpmTasks('grunt-contrib-clean');
52+
grunt.loadNpmTasks('grunt-contrib-copy');
53+
grunt.loadNpmTasks('grunt-contrib-cssmin');
54+
grunt.loadNpmTasks('grunt-contrib-uglify');
55+
56+
grunt.registerTask( "wipe", [ "clean" ])
57+
grunt.registerTask( "build", ["cssmin", "uglify:dist" ] );
58+
59+
};

bower.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "github.js",
3+
"main": "github.js",
4+
"version": "0.0.1",
5+
"homepage": "",
6+
"authors": [
7+
"Akshay Sharma <[email protected]>"
8+
],
9+
"description": "Javascript Plugin over Github APIs.",
10+
"keywords": [
11+
"github","Javascript","API","github-js","github.js"
12+
],
13+
"license": "MIT",
14+
"private": false,
15+
16+
"dependencies": {
17+
"underscore": "~1.6.0"
18+
},
19+
"devDependencies": {}
20+
}

package.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "github.js",
3+
"version": "0.0.1",
4+
"description": "Javascript Plugin over Github APIs.",
5+
"main": "Gruntfile.js",
6+
"start_year": "2015",
7+
"devDependencies": {
8+
"grunt": "~0.4.5",
9+
"grunt-contrib-copy": "~0.6.0",
10+
"grunt-contrib-uglify": "~0.6.0",
11+
"grunt-contrib-cssmin": "~0.10.0",
12+
"grunt-contrib-clean": "~0.6.0"
13+
},
14+
"repository": {
15+
"type": "git",
16+
"url": "https://github.com/akshaykumar6/github-js"
17+
},
18+
"keywords": [
19+
"github","Javascript","API","github-js","github.js"
20+
],
21+
"author": "Akshay Sharma <[email protected]>",
22+
"license": "MIT",
23+
"bugs": {
24+
"url": "https://github.com/akshaykumar6/github-js/issues"
25+
},
26+
"homepage": ""
27+
}

0 commit comments

Comments
 (0)