npm install -g generator-file
yo file <path/to/file_name>
- JS
- PHP
- HTML
<!DOCTYPE html>
<html lang="fr">
<head>
<title></title>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
</head>
<body>
</body>
</html>
/*jslint indent: 4, nomen: true, plusplus: true */
/*globals require, module */
(function(){
'use strict';
module.exports = {};
}());
<?php
- Add new type in generators/app/config.json
- Add template file as .tpl in generators/app/templates
- 0.1.4
- fix output issue
- add config.json / defining types
- 0.1.2
- HTML, JS, PHP templates