Bladeren bron

added bower support

Signed-off-by: Gerald <gera2ld@163.com>
Gerald 10 jaren geleden
bovenliggende
commit
3d0f4ac88d
2 gewijzigde bestanden met toevoegingen van 28 en 0 verwijderingen
  1. 7 0
      README.md
  2. 21 0
      bower.json

+ 7 - 0
README.md

@@ -7,6 +7,13 @@
 
 使用方法
 ---
+可以通过bower安装:
+
+``` sh
+$ npm install bower
+$ bower install duoshuo-ua
+```
+
 duoshuoQuery中可以定义`myIds`和`getUAString`函数:
 * myIds:是站长自己的多说数字id,可以有多个,用于区分站长的回复,并可在`getUAString`中加上不同的标记,如不定义则不会对站长回复进行区分。
 * getUAString:是对每条留言显示内容进行处理的函数,默认将加上操作系统和浏览器的显示。

+ 21 - 0
bower.json

@@ -0,0 +1,21 @@
+{
+  "name": "duoshuo-ua",
+  "version": "1.0.0",
+  "authors": [
+    "Gerald <gera2ld@163.com>"
+  ],
+  "description": "Plugin of duoshuo to show operating systems and browsers for duoshuo comments.",
+  "main": "dist/duoshuo-ua-with-css.min.js",
+  "keywords": [
+    "duoshuo",
+    "useragent"
+  ],
+  "license": "MIT",
+  "ignore": [
+    "**/.*",
+    "node_modules",
+    "bower_components",
+    "test",
+    "src"
+  ]
+}