Skip to content

Commit

Permalink
Add license, read me and gruntfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Dec 1, 2013
1 parent 588ea7d commit 77dc21c
Show file tree
Hide file tree
Showing 8 changed files with 9,712 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules
public
.deploy
db.json
debug.log
debug.log
tmp
74 changes: 74 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
module.exports = function(grunt){
grunt.initConfig({
gitclone: {
hexo: {
options: {
repository: 'https://github.com/tommy351/hexo.git',
branch: 'dev',
directory: 'tmp/hexo'
}
},
warehouse: {
options: {
repository: 'https://github.com/tommy351/warehouse.git',
branch: 'develop',
directory: 'tmp/warehouse'
}
}
},
read_pkg: {
options: {
hexo: 'tmp/hexo/package.json',
warehouse: 'tmp/warehouse/package.json'
}
},
yuidoc: {
hexo: {
name: '<%= hexo.name %>',
description: '<%= hexo.description %>',
version: '<%= hexo.version %>',
options: {
paths: [
'tmp/hexo/lib/core',
'tmp/hexo/lib/error',
'tmp/hexo/lib/extend',
'tmp/hexo/lib/logger',
'tmp/hexo/lib/model',
'tmp/hexo/lib/post',
'tmp/hexo/lib/util'
],
outdir: 'tmp/hexo-out'
}
},
warehouse: {
name: '<%= warehouse.name %>',
description: '<%= warehouse.description %>',
version: '<%= warehouse.version %>',
options: {
paths: 'tmp/warehouse/lib',
outdir: 'tmp/warehouse-out'
}
}
},
copy: {
hexo: {
src: 'tmp/hexo-out/data.json',
dest: 'source/_yuidoc/index.json'
},
warehouse: {
src: 'tmp/warehouse-out/data.json',
dest: 'source/_yuidoc/warehouse.json'
},
},
clean: {
tmp: ['tmp'],
yuidoc: ['source/_yuidoc']
}
});

require('load-grunt-tasks')(grunt);

grunt.loadTasks('tasks');

grunt.registerTask('default', ['gitclone', 'read_pkg', 'yuidoc', 'copy', 'clean:tmp']);
};
7 changes: 7 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (c) 2013 Tommy Chen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Hexo Website

The website for Hexo.

## Getting started

Install dependencies:

``` bash
$ git clone https://github.com/tommy351/hexo.git -b site site
$ cd site
$ npm install
```

Generate:

``` bash
$ grunt
$ hexo generate
```

Run server:

``` bash
$ hexo server
```

## Requirements

- [Hexo](http://zespia.tw/hexo/)

Installation: <http://zespia.tw/hexo/docs/>

- [YUIDoc](http://yui.github.io/yuidoc/)

``` bash
$ npm install yuidocjs -g
```

- [Grunt](http://gruntjs.com/)

``` bash
$ npm install grunt-cli -g
```
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@
"name": "hexo",
"version": "2.3.0",
"private": true,
"dependencies": {}
}
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.2",
"grunt-git": "~0.2.2",
"load-grunt-tasks": "~0.2.0",
"grunt-contrib-yuidoc": "~0.5.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-copy": "~0.4.1"
}
}
Loading

0 comments on commit 77dc21c

Please sign in to comment.