Skip to content

re1nhart01/Templier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Templier

Template creator for components

Flags:

-l - flag to set labels which define in !{ }! brackets
-n - flag to set file names for files inside @ @ brackets
--log - flag to set logger on, which will log every step
--help - current flag
-f - filename of file with components	
-p - pathname, where we need to create files
-c 1:3 - generate files from 1 to 3
-c 2   - generate file with count 2

Example of string:

templier componentName -f test/test_cfg/templier.yaml -p \somePath\ -l [messageQueueRow,itemsRowComponent] -n [view,styles,controller] -c 3:2

Example of templier.yaml snippet:

---
component2254:
  files:
  - name: "@[email protected]"
    content:
      labels:
        componentName: labelName
        componentPropType: labelName
      data: |
          import React from 'react';
          
          type !{componentPropType}!componentType = {};
          
          const !{componentName}! = () => {
            return (
              <div>
                SomeText;
              </div>
            )
          }
  - name: "@[email protected]"
    content:
      labels:
        componentName: labelName
        componentPropType: labelName
      data: |
          import React from 'react';
          import { Stylesheet } from 'react-native';

          export default Stylesheet.create({

          })
  - name: "@[email protected]"
    content:
      labels: 
        - componentPropType
        - componentName
      data: |
          import React from 'react';
          
          type !{componentPropType}!componentType = {};
          
          const !{componentName}! = () => {
            return (
              <div>
                SomeText;
              </div>
            )
          }       

Info

Welcome to Templier.
The purpose of this application to generate template files.
For example you have angular components.
And you dont want to always create files,
you can just define config yaml file and call this
application with component name.
Which are a default routine in developers live.
Created by @re1nhart
Written in Go programming language

About

Template creator for components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages