Skip to content

Commit

Permalink
improve init repo
Browse files Browse the repository at this point in the history
  • Loading branch information
phnx47 committed Nov 24, 2024
1 parent 4548ca5 commit de136fc
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 19 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# prom-tmpl
# prom-client-tmpl

[![sync](https://img.shields.io/github/actions/workflow/status/prom-client-net/prom-tmpl/sync.yml?branch=main&label=sync&logo=github&style=flat-square)](https://github.com/prom-client-net/prom-tmpl/actions/workflows/sync.yml)
[![license](https://img.shields.io/github/license/prom-client-net/prom-tmpl?style=flat-square)](https://github.com/prom-client-net/prom-tmpl/blob/main/LICENSE)
[![sync](https://img.shields.io/github/actions/workflow/status/prom-client-net/prom-client-tmpl/sync.yml?branch=main&label=sync&logo=github&style=flat-square)](https://github.com/prom-client-net/prom-client-tmpl/actions/workflows/sync.yml)
[![license](https://img.shields.io/github/license/prom-client-net/prom-client-tmpl?style=flat-square)](https://github.com/prom-client-net/prom-client-tmpl/blob/main/LICENSE)

Run `init.sh` after repository generated from this template.

## Contribute

Contributions to the package are always welcome!

* Report any bugs or issues you find on the [issue tracker](https://github.com/prom-client-net/prom-tmpl/issues).
* You can grab the source code at the package's [git repository](https://github.com/prom-client-net/prom-tmpl).
* Report any bugs or issues you find on the [issue tracker](https://github.com/prom-client-net/prom-client-tmpl/issues).
* You can grab the source code at the package's [git repository](https://github.com/prom-client-net/prom-client-tmpl).

## License

Expand Down
19 changes: 19 additions & 0 deletions init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

set -eu -o pipefail

rm renovate.json
rm .github/sync-config.yml
rm .github/workflows/sync.yml

proj_name=${PWD##*/}
sed -i "s/prom-client-tmpl/${proj_name}/g" README.md
sed -i "s/sync/ci/g" README.md
sed -i "/init.sh/d" README.md

dotnet new classlib --framework "netstandard2.0" -o src -n "Prometheus.Client.${proj_name^}"
dotnet new xunit --framework "net8.0" -o tests -n "Prometheus.Client.${proj_name^}.Tests"

rm init.sh

git add .
12 changes: 0 additions & 12 deletions run-me.sh

This file was deleted.

1 change: 0 additions & 1 deletion src/.gitkeep

This file was deleted.

1 change: 0 additions & 1 deletion tests/.gitkeep

This file was deleted.

0 comments on commit de136fc

Please sign in to comment.