Skip to content

theozzz/generator-file

Repository files navigation

Generator File MIT License

Install

npm install -g generator-file

Usage

yo file <path/to/file_name>

Available Templates

  • JS
  • PHP
  • HTML

Templates

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>

JavaScript (CommonJS)

/*jslint indent: 4, nomen: true, plusplus: true */
/*globals require, module */
(function(){

    'use strict';

    module.exports = {};

}());

PHP

<?php

Contributing

  • Add new type in generators/app/config.json
  • Add template file as .tpl in generators/app/templates

History

  • 0.1.4
    • fix output issue
    • add config.json / defining types
  • 0.1.2
    • HTML, JS, PHP templates

About

Files Templates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published