Skip to content

Commit

Permalink
Merge pull request #1 from houkanshan/dev
Browse files Browse the repository at this point in the history
Config Adjustment & Readme
  • Loading branch information
NdYAG committed Mar 22, 2014
2 parents fad3bbd + 36b668c commit c0c4602
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 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
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -82,5 +82,5 @@ module.exports = function(grunt) {
grunt.registerTask('html', ['jade'])
grunt.registerTask('css', ['stylus'])
grunt.registerTask('js', ['uglify'])
grunt.registerTask('default', ['jade', 'stylus'])
grunt.registerTask('default', ['jade', 'js', 'stylus'])
}
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 c0c4602

Please sign in to comment.