UNPKG

3.42 kBMarkdownView Raw
1apeman-tmpl-env
2==========
3
4<!-- Badge Start -->
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<!-- Badge End -->
26
27
28<!-- Description Start -->
29<a name="description"></a>
30
31apeman template of env files.
32
33<!-- Description End -->
34
35
36<!-- Overview Start -->
37<a name="overview"></a>
38
39
40<!-- Overview End -->
41
42
43<!-- Sections Start -->
44<a name="sections"></a>
45
46<!-- Section from "doc/readme/01.Installation.md.hbs" Start -->
47
48<a name="section-doc-readme-01-installation-md"></a>
49Installation
50-----
51
52```bash
53$ npm install apeman-tmpl-env --save-dev
54```
55
56<!-- Section from "doc/readme/01.Installation.md.hbs" End -->
57
58<!-- Section from "doc/readme/02.Usage.md.hbs" Start -->
59
60<a name="section-doc-readme-02-usage-md"></a>
61Usage
62---------
63
641. Define a tmpl within Apemanfile.js
652. 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
73module.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
84Then,
85```bash
86$ apeman tmpl
87```
88
89<!-- Section from "doc/readme/02.Usage.md.hbs" End -->
90
91<!-- Section from "doc/readme/03.Params.md.hbs" Start -->
92
93<a name="section-doc-readme-03-params-md"></a>
94Params
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<!-- Section from "doc/readme/03.Params.md.hbs" End -->
108
109
110<!-- Sections Start -->
111
112
113<!-- LICENSE Start -->
114<a name="license"></a>
115
116License
117-------
118This software is released under the [MIT License](https://github.com/apeman-tmpl-labo/apeman-tmpl-env/blob/master/LICENSE).
119
120<!-- LICENSE End -->
121
122
123<!-- Links Start -->
124<a name="links"></a>
125
126Links
127------
128
129+ [apeman](https://github.com/apeman-labo/apeman)
130+ [apeman-tmpl](https://github.com/apeman-labo/apeman-tmpl)
131
132<!-- Links End -->