Skip to content

Commit a05ba55

Browse files
committed
bower integration
1 parent 121ba6a commit a05ba55

File tree

8 files changed

+506
-21
lines changed

8 files changed

+506
-21
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ Desktop.ini
138138
# Packages
139139
*.egg
140140
*.egg-info
141-
dist
142-
build
143141
eggs
144142
parts
145143
bin
@@ -165,5 +163,4 @@ pip-log.txt
165163
.DS_Store
166164

167165

168-
build/*
169166
node_modules

Gruntfile.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = function(grunt) {
66

77
uglify: {
88
options: {
9-
banner: "/**\n * https://github.com/artch/angular-route-segment\n * @author Artem Chivchalov\n * @license MIT License http://opensource.org/licenses/MIT\n */\n"
9+
banner: "/**\n * angular-route-segment <%=grunt.config('gitdescribe')[1]%>\n * https://github.com/artch/angular-route-segment\n * @author Artem Chivchalov\n * @license MIT License http://opensource.org/licenses/MIT\n */\n"
1010
},
1111
prod: {
1212
files: {
@@ -18,10 +18,11 @@ module.exports = function(grunt) {
1818
concat: {
1919
options: {
2020
separator: ';',
21+
banner: "/**\n * angular-route-segment <%=grunt.config('gitdescribe')[1]%>\n * https://github.com/artch/angular-route-segment\n * @author Artem Chivchalov\n * @license MIT License http://opensource.org/licenses/MIT\n */\n"
2122
},
2223
prod: {
2324
src: ['src/**/*.js'],
24-
dest: 'build/angular-route-segment.js'
25+
dest: 'build/angular-route-segment.js'
2526
}
2627
},
2728

@@ -42,13 +43,22 @@ module.exports = function(grunt) {
4243
singleRun: false
4344
}
4445
}
46+
},
47+
48+
"git-describe": {
49+
run: {
50+
options: {
51+
prop: 'gitdescribe'
52+
}
53+
}
4554
}
4655

4756
});
4857

4958
grunt.loadNpmTasks('grunt-contrib-concat');
5059
grunt.loadNpmTasks('grunt-contrib-uglify');
51-
grunt.loadNpmTasks('grunt-karma');
60+
grunt.loadNpmTasks('grunt-karma');
61+
grunt.loadNpmTasks('grunt-git-describe');
5262

53-
grunt.registerTask('default', ['concat:prod', 'uglify']);
63+
grunt.registerTask('default', ['git-describe:run', 'concat:prod', 'uglify']);
5464
};

bower.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "angular-route-segment",
3+
"version": "1.0.0",
4+
"main": "build/angular-route-segment.min.js",
5+
"ignore": [
6+
"**/.*",
7+
"node_modules",
8+
"bower_components",
9+
"test",
10+
"tests"
11+
]
12+
}

0 commit comments

Comments
 (0)