Giter VIP home page Giter VIP logo

egodigital / generator-ego Goto Github PK

View Code? Open in Web Editor NEW
14.0 5.0 1.0 1.34 MB

A Yeoman generator with useful sub generators and the possibility to expand by JavaScript.

Home Page: https://www.npmjs.com/package/generator-ego

License: GNU General Public License v3.0

JavaScript 64.08% HTML 2.04% Dockerfile 1.85% TypeScript 30.66% Shell 0.27% SCSS 1.10%
yeoman javascript html5 bootstrap4 material-design electron php slim-framework react-native vue node express mdbootstrap yeoman-generator vuetify

generator-ego's Introduction

npm

generator-ego

A Yeoman generator with useful general sub generators and the possibility to be expand it by JavaScript.

The project is currently under heavy development! Feel free to contribute and/or give us your feedback.

Install

First keep sure to have Yeoman installed:

npm install -g yo

Now, you can install the generator by

npm install -g generator-ego

Run

Simply execute

yo ego

from your console.

Build in templates

Name Description
service-node-express-react Creates a service with a React frontend and database support.

Additional generators

Create a yo-ego.js file inside your home directory and use the following skeleton:

// the keys are the display texts, which 
// are shown in the generator's menu
// at the beginning of the execution
exports.generators = {

    'My first generator': async function() {
        // 'this' contains the underlying Generator
        // instance: https://github.com/egodigital/generator-ego/blob/master/generators/app/index.js

        this.log(
            'From my 1st generator'
        );
    },

    // path to an external script file
    // 
    // the file must contain a public / exported
    // 'run()' function / method
    // 
    // relative paths will be mapped to the
    // user's home directory
    'My 2nd generator': 'my-2nd-generator.js',

};

Have a look at the external-generator.example.js file to get an idea, how to create a generator (file).

Documentation

Have a look at the wiki to learn more about that generator.

Contribute

The contribution guide explains, how to implement a new, build-in generator, work with the code and open a pull request.

generator-ego's People

Contributors

ekmobile avatar mkloubert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

ekmobile

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.