Skip to content

Commit

Permalink
refactor(init): introduce cookiecutter for cxx and golang
Browse files Browse the repository at this point in the history
  • Loading branch information
pplmx committed Aug 13, 2024
1 parent d811568 commit 2d3729a
Show file tree
Hide file tree
Showing 59 changed files with 41 additions and 74 deletions.
57 changes: 0 additions & 57 deletions template/cxx/cargo-generate.toml

This file was deleted.

19 changes: 19 additions & 0 deletions template/cxx/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"project_name": "My Awesome Project",
"project_slug": "{{ cookiecutter.project_name | trim | slugify }}",
"package_name": "{{ cookiecutter.project_slug | replace('-', '_') }}",
"short_description": "A nice python package",
"github_username": "your-org-or-username",
"full_name": "Firstname Lastname",
"email": "email@example.com",
"__gh_slug": "{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}",
"__prompts__": {
"project_name": "Select your project name",
"project_slug": "Project slug",
"package_name": "Package name",
"short_description": "Short description",
"github_username": "GitHub username or organization",
"full_name": "Author full name",
"email": "Author email"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN dnf upgrade --refresh -y && \
dnf clean all && \
rm -fr /var/cache/yum

COPY . .
COPY .. .

RUN cmake -B build && cmake --build build --target {{project-name}} --config Release --parallel 8

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 0 additions & 16 deletions template/go/cargo-generate.toml

This file was deleted.

21 changes: 21 additions & 0 deletions template/go/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"project_name": "My Awesome Project",
"project_slug": "{{ cookiecutter.project_name | slugify }}",
"package_name": "{{ cookiecutter.project_slug | replace('-', '_') }}",
"python_version": "3.10",
"short_description": "A nice python package",
"github_username": "your-org-or-username",
"full_name": "Firstname Lastname",
"email": "email@example.com",
"__gh_slug": "{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}",
"__prompts__": {
"project_name": "Select your project name",
"project_slug": "Project slug",
"package_name": "Package name",
"python_version": "Python version",
"short_description": "Short description",
"github_username": "GitHub username or organization",
"full_name": "Author full name",
"email": "Author email"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2d3729a

Please sign in to comment.