diff --git a/README.md b/README.md index 048d5bb..1ca2ff4 100644 --- a/README.md +++ b/README.md @@ -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 - 页面模板 diff --git a/gulpfile.coffee b/gulpfile.coffee index 415ec17..d2034ef 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -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' @@ -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'] diff --git a/package.json b/package.json index 8e6ddd6..3485bcc 100644 --- a/package.json +++ b/package.json @@ -15,9 +15,6 @@ "url": "https://jysperm.me" } ], - "scripts": { - "prepublish": "bower install && gulp build" - }, "dependencies": { "coffee-script": "^1.7.1", "jade": "^1.11.0", @@ -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" } }