Skip to content

Commit 505a088

Browse files
committed
updated the automatic generation of bower.json by grunt
1 parent e01e0f0 commit 505a088

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ module.exports = function(grunt) {
9696
text = text.replace('{{sdk_version}}', package_info.version);
9797
text = text.replace('{{description}}', package_info.description);
9898
text = text.replace('{{license}}', package_info.license);
99-
fs.writeFile('./dist/bower.json', text, function(e) {
99+
fs.writeFile('./bower.json', text, function(e) {
100100
if (e) {
101101
console.err('A problem occured while creating bower.json');
102102
done();

templates/bower.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
{
22
"name": "oauth-js",
33
"version": "{{sdk_version}}",
4-
"main": "oauth.min.js",
4+
"main": "dist/oauth.min.js",
55
"description": "{{description}}",
6-
"license": "{{license}}"
6+
"license": "{{license}}",
7+
"ignore": [
8+
"coffee",
9+
"coverage",
10+
"js",
11+
"node_modules",
12+
"tests",
13+
"templates",
14+
"Gruntfile.js",
15+
"package.json",
16+
".gitignore"
17+
]
718
}

0 commit comments

Comments
 (0)