1 | apeman-tmpl-env
|
2 | ==========
|
3 |
|
4 |
|
5 | <a name="badges"></a>
|
6 |
|
7 | [![Build Status][bd_travis_shield_url]][bd_travis_url]
|
8 | [![Code Climate][bd_codeclimate_shield_url]][bd_codeclimate_url]
|
9 | [![Code Coverage][bd_codeclimate_coverage_shield_url]][bd_codeclimate_url]
|
10 | [![npm Version][bd_npm_shield_url]][bd_npm_url]
|
11 |
|
12 | [bd_repo_url]: https://github.com/apeman-tmpl-labo/apeman-tmpl-env
|
13 | [bd_travis_url]: http://travis-ci.org/apeman-tmpl-labo/apeman-tmpl-env
|
14 | [bd_travis_shield_url]: http://img.shields.io/travis/apeman-tmpl-labo/apeman-tmpl-env.svg?style=flat
|
15 | [bd_license_url]: https://github.com/apeman-tmpl-labo/apeman-tmpl-env/blob/master/LICENSE
|
16 | [bd_codeclimate_url]: http://codeclimate.com/github/apeman-tmpl-labo/apeman-tmpl-env
|
17 | [bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/apeman-tmpl-labo/apeman-tmpl-env.svg?style=flat
|
18 | [bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/apeman-tmpl-labo/apeman-tmpl-env.svg?style=flat
|
19 | [bd_gemnasium_url]: https://gemnasium.com/apeman-tmpl-labo/apeman-tmpl-env
|
20 | [bd_gemnasium_shield_url]: https://gemnasium.com/apeman-tmpl-labo/apeman-tmpl-env.svg
|
21 | [bd_npm_url]: http://www.npmjs.org/package/apeman-tmpl-env
|
22 | [bd_npm_shield_url]: http://img.shields.io/npm/v/apeman-tmpl-env.svg?style=flat
|
23 | [bd_bower_badge_url]: https://img.shields.io/bower/v/apeman-tmpl-env.svg?style=flat
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | <a name="description"></a>
|
30 |
|
31 | apeman template of env files.
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | <a name="overview"></a>
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | <a name="sections"></a>
|
45 |
|
46 |
|
47 |
|
48 | <a name="section-doc-readme-01-installation-md"></a>
|
49 | Installation
|
50 | -----
|
51 |
|
52 | ```bash
|
53 | $ npm install apeman-tmpl-env --save-dev
|
54 | ```
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 | <a name="section-doc-readme-02-usage-md"></a>
|
61 | Usage
|
62 | ---------
|
63 |
|
64 | 1. Define a tmpl within Apemanfile.js
|
65 | 2. Render templates via apeman tmpl command.
|
66 |
|
67 | **Apemanfile.js**
|
68 | ```javascript
|
69 | /** This example Apemanfile to use apeman-tmpl-config */
|
70 |
|
71 | "use strict";
|
72 |
|
73 | module.exports = {
|
74 | $pkg: {/*...*/},
|
75 | $tmpls: {
|
76 | // Map file path and template.
|
77 | 'src/my-dest.txt': require('apeman-tmpl-config')({
|
78 | // Pass rendering params
|
79 | })
|
80 | }
|
81 | };
|
82 | ```
|
83 |
|
84 | Then,
|
85 | ```bash
|
86 | $ apeman tmpl
|
87 | ```
|
88 |
|
89 |
|
90 |
|
91 |
|
92 |
|
93 | <a name="section-doc-readme-03-params-md"></a>
|
94 | Params
|
95 | ---------
|
96 | | Key | Description |
|
97 | | --- | -------- |
|
98 | | type | Template type. |
|
99 | #### Supported Types
|
100 | + [databaseJson](./asset/database.json.hbs)
|
101 | + [domainJson](./asset/domain.json.hbs)
|
102 | + [indexJs](./asset/index.js.hbs)
|
103 | + [logJson](./asset/log.json.hbs)
|
104 | + [portJson](./asset/port.json.hbs)
|
105 | + [sessionJson](./asset/session.json.hbs)
|
106 |
|
107 |
|
108 |
|
109 |
|
110 |
|
111 |
|
112 |
|
113 |
|
114 | <a name="license"></a>
|
115 |
|
116 | License
|
117 | -------
|
118 | This software is released under the [MIT License](https://github.com/apeman-tmpl-labo/apeman-tmpl-env/blob/master/LICENSE).
|
119 |
|
120 |
|
121 |
|
122 |
|
123 |
|
124 | <a name="links"></a>
|
125 |
|
126 | Links
|
127 | ------
|
128 |
|
129 | + [apeman](https://github.com/apeman-labo/apeman)
|
130 | + [apeman-tmpl](https://github.com/apeman-labo/apeman-tmpl)
|
131 |
|
132 |
|