Skip to content

Commit b2ec212

Browse files
committed
Make plugin name consistent across package managers (and across my plugins)
1 parent 767ab54 commit b2ec212

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

Gruntfile.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,17 @@ module.exports = function(grunt) {
138138
});
139139

140140
jqConfig.keywords.shift();
141+
141142
jqConfig.name = pkgBasename;
142-
bower.name = 'jquery.' + pkgBasename;
143+
bower.name = 'jquery-' + pkgBasename;
143144

144145
grunt.file.write( bowerFile, JSON.stringify(bower, null, 2) + '\n');
145146
grunt.log.writeln( 'File "' + bowerFile + '" updated."' );
146147

148+
while ( /jquery/i.test(jqConfig.keywords[0]) ) {
149+
jqConfig.keywords.shift();
150+
}
151+
147152
grunt.file.write( jqConfigFile, JSON.stringify(jqConfig, null, 2) + '\n');
148153
grunt.log.writeln( 'File "' + jqConfigFile + '" updated."' );
149154
});

bower.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "jquery.smooth-scroll",
2+
"name": "jquery-smooth-scroll",
33
"version": "1.5.3",
44
"dependencies": {
55
"jquery": ">=1.3"
@@ -14,6 +14,7 @@
1414
"smooth-scroll.jquery.json"
1515
],
1616
"keywords": [
17+
"jquery-plugin",
1718
"scroll",
1819
"animation"
1920
]

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
},
4141
"keywords": [
4242
"jQuery",
43+
"jquery-plugin",
4344
"scroll",
4445
"animation"
4546
],

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Allows for easy implementation of smooth scrolling for same-page links.
44

5+
[![NPM](https://nodei.co/npm/jquery-smooth-scroll.png?compact=true)](https://npmjs.org/package/jquery-smooth-scroll)
6+
57
## Download
68

79
Using npm:

0 commit comments

Comments
 (0)