Skip to content

Commit

Permalink
Release 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jysperm committed Jul 2, 2015
1 parent b5c07ce commit 2a45151
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@

## 安装

wget https://github.com/jysperm/hexo-theme-simpleblock/releases/download/v0.1.0-rc.1/simpleblock-v0.1.0-rc.1.tar
tar xf simpleblock-v0.1.0-rc.1.tar -C themes
rm simpleblock-v0.1.0-rc.1.tar
npm install hexo-renderer-jade --save
cd themes/simpleblock
npm install --production

修改 Hexo 的 `_config.yml` 中的 `theme``simpleblock`.

## 技术栈

* Jade - 页面模板
Expand Down
13 changes: 9 additions & 4 deletions gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ shell = require 'gulp-shell'
less = require 'gulp-less'
gulp = require 'gulp'
sass = require 'gulp-sass'
del = require 'del'

gulp.task 'clean', ->
del ['source/primer.css']
tar = require 'gulp-tar'

gulp.task 'build:primer', ->
gulp.src 'source/_styles/primer.scss'
Expand All @@ -29,5 +26,13 @@ gulp.task 'build:styles', ['build:primer'], ->

gulp.task 'build', ['build:styles']

gulp.task 'release', ['build'], ->
gulp.src [
'languages/*', 'layout/*', 'scripts/*', 'source/styles.css', 'source/favicon.png'
'_config.yml', 'helpers.coffee', 'LICENSE', 'package.json', 'README.md'
]
.pipe tar 'simpleblock.tar'
.pipe gulp.dest('.')

gulp.task 'watch', ->
gulp.watch 'source/_styles/*.less', ['build:styles']
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
"url": "https://jysperm.me"
}
],
"scripts": {
"prepublish": "bower install && gulp build"
},
"dependencies": {
"coffee-script": "^1.7.1",
"jade": "^1.11.0",
Expand All @@ -32,8 +29,8 @@
"gulp-order": "^1.1.1",
"main-bower-files": "^2.5.0",
"gulp-shell": "^0.4.2",
"del": "^1.2.0",
"gulp-add-src": "^0.2.0",
"gulp-sass": "^2.0.1"
"gulp-sass": "^2.0.1",
"gulp-tar": "^1.4.0"
}
}

0 comments on commit 2a45151

Please sign in to comment.