Giter VIP home page Giter VIP logo

cli's Introduction

Yellicode CLI

CLI for Yellicode

Yellicode lets you build your own code generation templates with TypeScript. It consists of a Node.js CLI and extensible APIs, making it easy for developers to create, share and re-use code generators for their favorite programming languages and frameworks.

Check out our website for more.

License: MPL-2.0

cli's People

Contributors

mdelaat avatar dependabot[bot] avatar

Stargazers

Gaston Morixe avatar Adnan AlBeda avatar  avatar Peter avatar bhavesh_tiwari avatar Jason Mobarak avatar Gian avatar Poulad Ashrafpour avatar LeoTM avatar Sverre Ølnes avatar Jason Morganson avatar  avatar Stefan de Vogelaere avatar Maxwell ADANZOUNNON avatar Grégory Heitz avatar  avatar Heartlander avatar Ryoji Miyazato avatar Kenneth Li avatar Michael Shafir avatar  avatar Hendy Irawan avatar Amit Jindal avatar  avatar

Watchers

James Cloos avatar LeoTM avatar  avatar  avatar

cli's Issues

Yellicode Modeler - Copy and Paste Support

Yellicode Modeler currently does not support copy-pasting (at least on MacOS 10.15.5 (19F101)). Currently, working with long descriptions and classnames is a bit tiresome.

Running local CLI

I'd prefer to have @yellicode/cli installed in my project's package.json and run it from node_module

When I run npx yellicode installed that way, it fails with

env: node\r: No such file or directory

Yellicode Modeler - Multiple profiles lead to "Duplicate identifier 'elements'" exception

Currently, when configuring multiple profiles in a Yellicode Modeler project, the generated *.ts file tries to import 'elements' once for every module, so that the following line appears multiple times in the file:

import * as elements from '@yellicode/elements';

This leads to an "Duplicate identifier" error and subsequent failed compilation of templates.

Yellicode Modeler source code?

Hi, looks like a promising project. Keep on the good work so far. I will definitely have an eye on it.

It seems that the source for the modeler is not released yet. Are there any plans to release the source code?
I would like to use an existing db schema that I would like to import into the modeler instead of manually modeling the entire schema. Do you provide an extension point for importers?

Yellicode Modeler - Reference an external profile

Could not get a reference on a separate profile working in yellicode modeler. So, e.g. when you have a profile.ymn and a model.ymn, and you try to reference the profile.ymn in the model.ymn, it works fine, while the model.ymn is open in the modeler. But after saving and reopening the file, yellicode modeler does no longer display the previously set values in tags, but just displays them empty. As far as i tested, the model.ymn file still gets written correctly though.

template file path to lowercase fails to find and read the file

If your project directory path conatins upper case characters the absolute path to the template file no longer matches the location.

Why toLowerCase()??

Error: Failed running template '/home/<USERNAME>/Development/typescript/yellicode/try01/resources/templates/b.js': 
File '/home/<USERNAME>/development/typescript/yellicode/try01/resources/models/petstore-simple.json' not found.

REF:

templateInfo.modelFile = path.join(dirName, configuredModelPath).toLowerCase();

How to Generate Multiple Output Files in a Generator?

All of the examples in the documentation seem to be focused on generating a single file output. This works great for something like Typescript where i can embed multiple classes in a single output file, but not so well for something like Java where i need to output one file per class.

The example shows something like this ........

Generator.generateFromModel({ outputFile: './output/Domain.cs' }, (writer: TextWriter, model: elements.Model)

and it receives a single output file as a parameter. Is there an equivalent entry point that is passed an output directory instead?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.