Skip to content

Commit c3c2c9a

Browse files
committed
Added grunt tasks.
1 parent adc3007 commit c3c2c9a

File tree

4 files changed

+64
-2
lines changed

4 files changed

+64
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
bower_components
2+
node_modules

Gruntfile.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = function (grunt) {
2+
3+
grunt.initConfig({
4+
pkg: grunt.file.readJSON('package.json'),
5+
uglify: {
6+
options: {
7+
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> (<%= pkg.homepage %>) */\n'
8+
},
9+
build: {
10+
src: '<%= pkg.name %>.js',
11+
dest: '<%= pkg.name %>.min.js'
12+
}
13+
},
14+
jshint: {
15+
files: ['<%= pkg.name %>.js']
16+
}
17+
});
18+
19+
grunt.loadNpmTasks('grunt-contrib-uglify');
20+
grunt.loadNpmTasks('grunt-contrib-jshint');
21+
22+
grunt.registerTask('default', ['jshint']);
23+
grunt.registerTask('build', ['uglify']);
24+
};

bower.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-progress-arc",
3-
"version": "0.0.1",
3+
"version": "0.1.0",
44
"authors": [
55
"Mathew Byrne <[email protected]>"
66
],
@@ -20,7 +20,10 @@
2020
"bower_components",
2121
"test",
2222
"tests",
23-
"example"
23+
"example",
24+
"bower.json",
25+
"package.json",
26+
"Gruntfile.js"
2427
],
2528
"dependencies": {
2629
"angular": ">=1.2.19"

package.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "angular-progress-arc",
3+
"version": "0.1.0",
4+
"description": "AngularJS directive for displaying a circular progress meter.",
5+
"main": "angular-progress-arc.js",
6+
"directories": {
7+
"example": "example"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git://github.com/mathewbyrne/angular-progress-arc.git"
12+
},
13+
"keywords": [
14+
"angularjs",
15+
"directive",
16+
"progress",
17+
"svg"
18+
],
19+
"author": {
20+
"name": "Mathew Byrne",
21+
"email": "[email protected]",
22+
"url": "http://mathewbyrne.com/"
23+
},
24+
"license": "MIT",
25+
"bugs": {
26+
"url": "https://github.com/mathewbyrne/angular-progress-arc/issues"
27+
},
28+
"homepage": "https://github.com/mathewbyrne/angular-progress-arc",
29+
"devDependencies": {
30+
"grunt": "~0.4.5",
31+
"grunt-contrib-uglify": "~0.5.0",
32+
"grunt-contrib-jshint": "~0.10.0"
33+
}
34+
}

0 commit comments

Comments
 (0)