Code Monkey home page Code Monkey logo

generator-cake-addin's People

Contributors

admiringworm avatar allcontributors[bot] avatar dependabot-preview[bot] avatar dependabot[bot] avatar gep13 avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

generator-cake-addin's Issues

Dependabot couldn't find a <anything>.(cs|vb|fs)proj for this project

Dependabot couldn't find a .(cs|vb|fs)proj for this project.

Dependabot requires a .(cs|vb|fs)proj to evaluate your project's current .NET dependencies. It had expected to find one at the path: /src/project/templates/<anything>.(cs|vb|fs)proj.

If this isn't a .NET project, or if it is a library, you may wish to disable updates for it from within Dependabot.

You can mention @dependabot in the comments below to contact the Dependabot team.

Allow changing the unit testing library for the generated addin project

Is your feature request related to a problem? Please describe.
Currently, the project generator only generates a unit testing library using xunit. While this may be used by most people creating a new addin, there should be the ability to change it.

Describe the solution you'd like
A selection of different unit testing libraries that can be used when generating the unit testing library. At a minimum, nunit tests should also be allowed to be selected.

Change all-contributors badge to new automatic shields.io badge

Describe the bug
all-contributors-badge does not update automatically in a generated README.md when using all-contributors (bot or cli)

To Reproduce
Steps to reproduce the behavior:

  1. Generate a new addin & choose to use all-contributors
  2. add a contributor by using the bot or the cli
  • The contributor is listed in the table of contributors
  • The all-contributors badge is not updated.

Expected behavior
The all-contributors badge should be updated.

Additional context
The problem seems to be missing star- and end-tags. See https://allcontributors.org/docs/en/bot/faq

(However, adding those seems to break the flow of badges..)

Update generator templates to Cake.Recipe 2.0.0

There are some major breaking changes in Cake.Recipe 2.0.0, so updating the generator to support these changes will most likely be quite the undertaking.

This will be considered a quite heavy breaking change in the generator as well.

Generate license header for project files

Is your feature request related to a problem? Please describe.
The project files currently do not include a file header even
for licenses that recommends adding one.

Describe the solution you'd like
The project files in C# should also include a license header
if the selected license recommends adding one, if one is not
recommended, a stylecop configuration file should be created
that disables the warning about a missing file header.

Describe alternatives you've considered

Additional context

Add ability to create project related files

This generator should create the following files.

  • A solution file (.sln)
  • The main project .csproj file (with metadata for packaging)
  • The unit test projects .csproj file
  • A standard project set up with aliases,settings, and runner.
  • Empty unit tests that will map to each file in the main project.

Selection of unit testing library requires enter to be pressed before allowing selection

Describe the bug
When the generator is running on windows, there are times (unsure if every time or not) that you will need to press enter when you are about to select the unit testing framework to use, before you are allowed to select the one you want.

To Reproduce
Steps to reproduce the behavior:

  1. Run yo cake-addin
  2. Answer all questions until you get to Which unit testing library do you want to use for the cake addin?
  3. Try using the arrow keys to select a library (won't work).
  4. Press {Enter}
  5. Now you can select the unit testing library.

Expected behavior
Expects to be able to choose the unit testing library to use without first pressing {Enter}

Desktop (please complete the following information):

  • OS: [e.g. Windows 10] Windows 10
  • Version: [e.g. 0.3.0] v next

Additional context
This is believed to be related to the known issue listed in the Readme.md.

Add unit tests for all generators

I have pretty much never written a unit test for any javascript/typescript library in my life, so I would love to have some help on this one if anyone is up for it.

Dependabot couldn't find a <anything>.(cs|vb|fs)proj for this project

Dependabot couldn't find a .(cs|vb|fs)proj for this project.

Dependabot requires a .(cs|vb|fs)proj to evaluate your project's current .NET dependencies. It had expected to find one at the path: /<anything>.(cs|vb|fs)proj.

If this isn't a .NET project, or if it is a library, you may wish to disable updates for it from within Dependabot.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot couldn't find a <anything>.(cs|vb|fs)proj for this project

Dependabot couldn't find a .(cs|vb|fs)proj for this project.

Dependabot requires a .(cs|vb|fs)proj to evaluate your project's current .NET dependencies. It had expected to find one at the path: /<anything>.(cs|vb|fs)proj.

If this isn't a .NET project, or if it is a library, you may wish to disable updates for it from within Dependabot.

You can mention @dependabot in the comments below to contact the Dependabot team.

Incompatible with Yeoman 5.0

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When running yo cake-addin, the output after inputting all the values is:

Error cake-addin

generator.run is not a function

Steps to reproduce

  • Install the latest version of yo (5.0.0)
  • Use the generator

Expected behavior

The addin scaffolding should be created.

Environment

- **OS**: win 11
- **Project Version**: 1.6.0

Relevant log output

>21:48:36 ❯ yo cake-addin

     _-----_     ╭──────────────────────────╮
    |       |    │      Welcome to the      │
    |--(o)--|    │ cake-addin generator. We │
   `---------´   │   will now ask you some  │
    ( _´U`_ )    │  questions so we can set
    /___A___\   /│  up your new Cake addin  │
     |  ~  |     │         project!
   __'.___.'__   ╰──────────────────────────╯
 ´   `  |° ´ Y `

? What is the name of the Cake addin project?  test-1
? Who is the repository owner/organization where the addin will located?  nils
? What is the github username of the main addin author?  nils
? What is the the name of Cake addin author?  Nils Andresen
? What is the description for the Cake addin?  Received
? What license will the Cake addin use?  MIT
? Where will the project source files be located?  ./src
? What is the name of the cake build script to use?  recipe.cake
? Do you want to add configurations for the All Contributors Bot?  No
? Do you want to use Wyam to generate documentation?  Yes
? Do you wish to enable travis builds?  No
? Do you wish to use tabs for indentation?  No
? What indent size do you wish to use (amount of spaces)?  4
? What indent size do you wish to use for yml/yaml files (amount of spaces)?  2
? Do you wish to use a CONTRIBUTING.md file?  No
Error cake-addin

generator.run is not a function

Code of Conduct

  • I agree to follow this project's Code of Conduct

Anything else?

No response

license generator should pick up an existing LICENSE file

Is your feature request related to a problem? Please describe.
The license generator currently blindly outputs the license to a filename to LICENSE.txt, unless overridden with the out option.

Describe the solution you'd like
The generator test for possibly other names, and if one of the other names exist, it should output the license to that file.

possible name:

  • LICENSE
  • LICENSE.txt
  • LICENSE.md
  • COPYING
  • COPYING.txt
  • COPYING.md

Describe alternatives you've considered
While it can be overridden with the out parameter, this should not be needed when there is already a license file available.

Improve the question for who the main author is.

This question is indented to be the full name of the main project author (although, the user may decide to use its username instead), this is not reflected as is indented when the question is asked.

Dependabot couldn't find a <anything>.(cs|vb|fs)proj for this project

Dependabot couldn't find a .(cs|vb|fs)proj for this project.

Dependabot requires a .(cs|vb|fs)proj to evaluate your project's current .NET dependencies. It had expected to find one at the path: /<anything>.(cs|vb|fs)proj.

If this isn't a .NET project, or if it is a library, you may wish to disable updates for it from within Dependabot.

You can mention @dependabot in the comments below to contact the Dependabot team.

eol=crlf in gitattributes produces unwanted outcomes on windows/linux mixed environments

I'm not sure whether this is really a bug in the generator or rather a problem in the windows defaults of git, but:
The generator generates .gitattributes with content:

###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

*.cs text diff=csharp

*.ps1      text eol=crlf
*.bat      text eol=crlf
*.sln      text eol=crlf
*.csproj   text eol=crlf
tasks.json text eol=crlf

*.sh       text eol=lf

*.md       text whitespace=-trailing-space

# Exclude files from exporting

.gitattributes export-ignore
.gitignore     export-ignore

This leads to csproj being converted to crlf during checkout on non-windows systems (actually on windows-systems, too but here that's the default...)
At the same time, during checkin on windows (or rather on systems with core.autocrlf=true) those line-endings will be converted to lf,

Now, the problem starts when development is done on windows and linux (or on windows and having dependabot create PRs): While windows-systems will always checkin lf line-endings, the non-windows-systems will checkin crlf line-endings.

To demonstrate I have created a simple repository and let dependabot make PRs:

While I do see that this is also (maybe more so) the fault of the windows-default of setting core.autocrlf=true, may I ask: Is there a reason for setting eol=crlf? It does nothing on windows-systems and while it converts the files during checkout on non-windows-systems the files shuold have been created correctly in the first place. Or am I missing something?

npm package do not contain the generated generator

Describe the bug
Seems like I have been making some mistakes when creating the the last two (at least) releases, and the package do not include any generator at all.

This was missed during testing because I had the generator linked.
Mix this with my inexperience with node and npm, and this is what we got XD

Enable windows builds on appveyor

Due to an unknown problem with the unit tests are hanging on appveyor windows builds, this image have been disabled on the ci cloud server.

This unit tests still works on a local windows installation, just not on appveyor.

Any help in resolving this issue would be greatly appreciated.

Missing prompt for email address in code of conduct file

Describe the bug
The original code of conduct file expects an email address to contact when a breach of the conduct has happened. However, there is no prompt or replacement done to get this email address.

To Reproduce
Steps to reproduce the behavior:

  1. run yo cake-addin:conduct
  2. look at the generate CODE_OF_CONDUCT.md file
  3. Notice that there is a place that says [INSERT_EMAIL_ADDRESS] (or similar)

Expected behavior
Would expect to be prompted to input an email address

Desktop (please complete the following information):

  • OS: [e.g. Windows 10] Arch Linux
  • Version: [e.g. 0.3.0] 1.0.3

Add the ability to create configuration related files.

This generator should be able to create the following files.

  • A configuration file for All Contributors bot (Optional)
  • A configuration file for codecov (Optional)
  • A editorconfig file
  • A gitattributes file
  • A gitignore file
  • A GitReleaseManager.yaml file
  • A GitVersion file (Optional)
  • A cake config file (Optional)

During run the generator outputs unnecessary logging of enableAllContributors log

Describe the bug
During the the running of the generator the following is being outputted to the user:

enableAllContributors is of type string before adding prompts with value true
enableAllContributors is of type string before calling prompts with value true
enableAllContributors is of type boolean after calling prompts with value true
Logging values in allValues

THese are not needed to be outputted.

To Reproduce
Steps to reproduce the behavior:

  1. yo cake-addin

Expected behavior
Those lines should not be logged to the user

Desktop (please complete the following information):

  • OS: [e.g. Windows 10] Arch Linux
  • Version: [e.g. 0.3.0] 1.0.0

GitReleaseManager template uses incorrect key for footer milestone

Describe the bug
When a GitReleaseManager yml file is generated it generates it with an incorrectly named key.

To Reproduce
Steps to reproduce the behavior:

  1. Just run the generator and generate a new GitReleaseManager.yml file.

Expected behavior
I expects it to generate a create.footer-includes-milestones key, it is missing the s in includes though.

Desktop (please complete the following information):

  • OS: [e.g. Windows 10] Windows 10
  • Version: [e.g. 0.3.0] 1.1.2

short description do not disallow empty description

Describe the bug
When prompted for a short description, this should be required when the main description is over 120 characters. The short description allows continuing if the input is empty.

Expected behavior
A validation message should be outputted to the user.

Desktop (please complete the following information):

  • OS: [e.g. Windows 10] Windows 10
  • Version: [e.g. 0.3.0] 1.1.1

Wrong file name used for GitReleaseManager configuration file

Describe the bug
The generator creates the git release manager config file with the wrong file name. It is currently being created with the name GitReleaseManager.yml

To Reproduce
Steps to reproduce the behavior:

  1. yo cake-addin:config

Expected behavior
SHould use the correct file name GitReleaseManager.yaml

Desktop (please complete the following information):

  • OS: [e.g. Windows 10] Arch Linux
  • Version: [e.g. 0.3.0] 1.0.0

readme generator should link to the correct license file

Is your feature request related to a problem? Please describe.
Currently the readme generator links to a license named LICENSE.txt no matter what it is called in the repository.

Describe the solution you'd like
The readme generator should check for commonly used license names, and select the name of the existing license to link to.

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.