This is an Archetect archetype for generating
.gitignore
files.
To generate content from this Archetype, copy and execute the following command:
archetect render https://github.com/archetect/dot-gitignore.archetype.git
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