Skip to content

Commit

Permalink
Add .gitignore and improve Readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
houkanshan committed Mar 22, 2014
1 parent fad3bbd commit cb18a89
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
*.DS_Store
*~

*.orig
*.swp

node_modules/
bower_components/


assets/js/config.js
public/js/config.min.js
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = function(grunt) {
files: [{
expand: true,
cwd: "assets/js",
src: "*.js",
src: ["*.js", "!*.sample.js"],
dest: "public/js",
ext: ".min.js"
}]
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ ANNO是一个开源的应用,目前基本支持了豆瓣的 OAuth2 读书笔

* `npm install` 安装 Grunt 等依赖
* `bower install` 安装前端使用的库文件(如果不需要使用到新的库文件,这一步和下一步可以忽略)
*`bower_components/`中所需文件移到 `assets/lib/`
* 开发时`grunt watch``assets/`下的文件编译、压缩到`public/`中。
*`bower_components/`中所需文件移到 `assets/lib/`
* 申请豆瓣开发者帐号 [http://developers.douban.com/](http://developers.douban.com/)
* 复制一份 `assets/config.sample.js``assets/config.js` ,填写你的 `api_key``api_secret`
* 开发时执行 `grunt watch`,将 `assets/` 下的文件编译、压缩到 `public/` 中。

在Chrome扩展中加载项目目录,开启应用调试。

Expand Down

0 comments on commit cb18a89

Please sign in to comment.