Skip to content

Commit

Permalink
增加国内镜像
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoda committed Apr 9, 2016
1 parent bba63a0 commit c99384d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion content/README.md
Expand Up @@ -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)(掘金赞助)

## 贡献内容

Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -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": {
Expand Down
21 changes: 21 additions & 0 deletions scripts/publish-webpackdoc.sh
@@ -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.