GithubHelp home page GithubHelp logo

flyntwp / generator-flynt Goto Github PK

View Code? Open in Web Editor NEW
20.0 5.0 5.0 278 KB

A Yeoman generator to create Flynt Components

Home Page: https://flyntwp.com

License: MIT License

JavaScript 83.31% PHP 12.98% SCSS 0.77% Twig 2.94%
yeoman flynt generator yo wp wordpress

generator-flynt's Introduction

Flynt Yeoman Generator (generator-flynt)

standard-readme compliant

A Yeoman generator for Flynt

⚠️ DEPRECATED. This repository is no longer in active development. For the latest version of Flynt please use the new Flynt repository. ⚠️

Table of Contents

Install

The node version used should be ^10. If you use a node version manager (e.g. nave), use npm to install globally.

First install Yeoman:

$ npm i -g yo

Install the generator:

$ npm i -g @flyntwp/generator-flynt

Otherwise you can use yarn as well:

$ yarn global add @flyntwp/generator-flynt

Usage

Run yo @flyntwp/flynt to start the generator. You can select Components.

Maintainers

This project is maintained by bleech.

The main people in charge of the repo are:

Contribute

To contribute, please use GitHub issues. Please also take a moment to read the Contributing Guidelines and Code of Conduct.

If you are a developer and would like to submit a pull request, do the following:

  1. Fork the project and clone it.
  2. Run npm install inside the cloned folder.
  3. Run npm link to link the local installation for development purposes. (Run npm unlink to undo this step.)
  4. In any folder run yo @flyntwp/flynt to run your local development version and test your changes.
  5. Send a pull request from your fork to the main repo's master branch.

If editing the README, please conform to the standard-readme specification.

License

MIT © bleech

generator-flynt's People

Contributors

domtra avatar emcarru avatar roelti avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

generator-flynt's Issues

update npm version

Please release a new version on npm so that the latest variable name changes are in there.

For example $globalRuptureScale is still called $globalLayoutScale in the latest published version.

Add a new true/false selection for additional files

Right now I can't decide if I want to generate additional files like the README or Component screenshots too. If I only want to generate one single file (stylus.styl) for example, I can't do so without generating additional content.

Error when selecting either option

Hello. Managed to install the generator, it starts when I use yo @flyntwp/generator, but whenever I select an option, the following error occurs. Tried running it in the theme folder, in the Components folder and in a newly created folder for a Component.

events.js:174
      throw er; // Unhandled 'error' event
      ^
Error: ENOENT: no such file or directory, scandir '{myfolder}\themes\flynt\theme\/Components'
    at Object.readdirSync (fs.js:786:3)
    at module.exports._promptComponentFile (\AppData\Local\Yarn\Data\global\node_modules\@flyntwp\generator-flynt\generators\component\index.js:77:8)
    at prompt.then.answers (AppData\Local\Yarn\Data\global\node_modules\@flyntwp\generator-flynt\generators\component\index.js:43:21)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Emitted 'error' event at:
    at Immediate.setImmediate (\AppData\Local\Yarn\Data\global\node_modules\yeoman-generator\lib\index.js:450:18)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)

Cheers !

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.