Skip to content

archetect/dot-gitignore.archetype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate .gitignore files

This is an Archetect archetype for generating .gitignore files.

Rendering

To generate content from this Archetype, copy and execute the following command:

  archetect render https://github.com/archetect/dot-gitignore.archetype.git

Usage

This archetype is designed to be used as a component library in parent archetypes to generate .gitignore files for multiple languages and IDEs.

In order to use this archetype, you'll first need to register it as a component in your archetype.yaml manifest:

---
description: "Example Archetype"
authors: ["John Doe <[email protected]"]
languages: ["Rust"]
frameworks: ["axum", "tracing", "seaorm"]
tags: ["service", "microservice"]

requires:
  archetect: 2.0.0

components:
  gitignore: https://github.com/archetect/dot-gitignore.archetype.git

Then, you can use this component to render a .gitignore file, specifying what ingores should be included:

let context = #{}

context["project-name"] = prompt("Project Name");

render(Archetype("gitignore"), Path(context["project-name"]), #{
    ignore: ["Rust", "IDEA"]
});

Currently supported/implemented ingores:

  • Rust
  • RustBinary
  • RustLibrary
  • Java
  • IDEA
  • Eclipse
  • Target

About

An Archetype for generating .gitignore files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published