Permalink
Browse files

增加国内镜像

1 parent bba63a0 commit c99384db458733da7e77524184dd6c5c6352c0bc @zhaoda committed Apr 9, 2016
Showing with 23 additions and 1 deletion.
  1. +1 −1 content/README.md
  2. +1 −0 package.json
  3. +21 −0 scripts/publish-webpackdoc.sh
View
@@ -4,7 +4,7 @@
[Webpack](https://github.com/webpack/webpack) 是当下最热门的前端资源模块化管理和打包工具。它可以将许多松散的模块按照依赖和规则打包成符合生产环境部署的前端资源。还可以将按需加载的模块进行代码分隔,等到实际需要的时候再异步加载。通过 `loader` 的转换,任何形式的资源都可以视作模块,比如 CommonJs 模块、 AMD 模块、 ES6 模块、CSS、图片、 JSON、Coffeescript、 LESS 等。
-[下载电子版](https://www.gitbook.com/book/zhaoda/webpack/details)
+[主站](http://zhaoda.net/webpack-handbook) · [下载电子版](https://www.gitbook.com/book/zhaoda/webpack/details) · [国内镜像](http://webpackdoc.com)(掘金赞助)
## 贡献内容
View
@@ -10,6 +10,7 @@
"deploy-wiki": "./scripts/deploy-wiki.sh",
"generate-and-deploy": "npm run generate-gitbook && npm run generate-wiki && npm run deploy-gitbook && npm run deploy-wiki",
"publish-gitbook": "./scripts/publish-gitbook.sh",
+ "publish-webpackdoc": "./scripts/publish-webpackdoc.sh",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+cp -a content webpackdoc
+cd webpackdoc
+
+rm -rf _book
+rm -rf node_modules
+
+gitbook install
+
+git init
+
+git add .
+git commit -m "Publish to webpackdoc.com"
+
+git remote add origin ssh://webpackdoc.com/home/git/zhaoda/webpack-handbook.git
+
+git push --force origin master:master
+
+cd ..
+rm -rf webpackdoc

0 comments on commit c99384d

Please sign in to comment.