UNPKG

2.92 kBMarkdownView Raw
1ape-deploying
2==========
3
4<!---
5This file is generated by ape-tmpl. Do not update manually.
6--->
7
8<!-- Badge Start -->
9<a name="badges"></a>
10
11[![Build Status][bd_travis_shield_url]][bd_travis_url]
12[![npm Version][bd_npm_shield_url]][bd_npm_url]
13[![JS Standard][bd_standard_shield_url]][bd_standard_url]
14
15[bd_repo_url]: https://github.com/ape-repo/ape-deploying.git
16[bd_travis_url]: http://travis-ci.org/ape-repo/ape-deploying.git
17[bd_travis_shield_url]: http://img.shields.io/travis/ape-repo/ape-deploying.git.svg?style=flat
18[bd_travis_com_url]: http://travis-ci.com/ape-repo/ape-deploying.git
19[bd_travis_com_shield_url]: https://api.travis-ci.com/ape-repo/ape-deploying.git.svg?token=
20[bd_license_url]: https://github.com/ape-repo/ape-deploying.git/blob/master/LICENSE
21[bd_codeclimate_url]: http://codeclimate.com/github/ape-repo/ape-deploying.git
22[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/ape-repo/ape-deploying.git.svg?style=flat
23[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/ape-repo/ape-deploying.git.svg?style=flat
24[bd_gemnasium_url]: https://gemnasium.com/ape-repo/ape-deploying.git
25[bd_gemnasium_shield_url]: https://gemnasium.com/ape-repo/ape-deploying.git.svg
26[bd_npm_url]: http://www.npmjs.org/package/ape-deploying
27[bd_npm_shield_url]: http://img.shields.io/npm/v/ape-deploying.svg?style=flat
28[bd_standard_url]: http://standardjs.com/
29[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg
30
31<!-- Badge End -->
32
33
34<!-- Description Start -->
35<a name="description"></a>
36
37Deploying module of ape framework.
38
39<!-- Description End -->
40
41
42
43
44<!-- Sections Start -->
45<a name="sections"></a>
46
47<!-- Section from "doc/guides/02.Usage.md.hbs" Start -->
48
49<a name="section-doc-guides-02-usage-md"></a>
50
51Usage
52----
53
54### Deploy to GitHub Pages
55
56Deploy subdirectory to GitHub Pages using git subtree.
57
58```javascript
59#!/usr/bin/env node
60'use strict'
61
62const apeDeploying = require('ape-deploying')
63
64apeDeploying.deployGhPages('doc', {}).then(() => {
65 /* ... */
66})
67
68```
69
70### Deploy to GitHub Wiki
71
72Deploy files to GitHub Wiki page.
73
74```javascript
75#!/usr/bin/env node
76'use strict'
77
78const apeDeploying = require('ape-deploying')
79
80const wikiUrl = 'https://github.com/okunishinishi/node-coz.wiki.git'
81
82apeDeploying.deployGhWiki('doc/wiki/*.md', wikiUrl, {
83 clean: true
84}).then(() => {
85 /* ... */
86})
87```
88
89<!-- Section from "doc/guides/02.Usage.md.hbs" End -->
90
91
92<!-- Sections Start -->
93
94
95<!-- LICENSE Start -->
96<a name="license"></a>
97
98License
99-------
100This software is released under the [MIT License](https://github.com/ape-repo/ape-deploying.git/blob/master/LICENSE).
101
102<!-- LICENSE End -->
103
104
105<!-- Links Start -->
106<a name="links"></a>
107
108Links
109------
110
111+ [ape-repo][ape_repo_url]
112+ [GitHub Pages][git_hub_pages_url]
113
114[ape_repo_url]: https://github.com/ape-repo
115[git_hub_pages_url]: https://pages.github.com/
116
117<!-- Links End -->