Skip to content

Commit

Permalink
feat: set config template
Browse files Browse the repository at this point in the history
  • Loading branch information
ilk-1 committed Jul 6, 2024
1 parent 2ebb93b commit c42fab6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions bin/.samoyedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"pre-commit": [{
"scope": "^.*",
"commands": [
"echo 'All match!'"
]
}],
"commit-msg": []
}
4 changes: 4 additions & 0 deletions bin/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import { fileURLToPath } from "url";
fs.mkdirSync(path.join(__shell_path, pkg_name));
fs.mkdirSync(path.join(__shell_path, pkg_name, "githooks"));

fs.copyFile(
path.join(__dirname, ".samoyedrc.json"),
path.join(__shell_path, ".samoyedrc.json")
)
fs.copyFile(
path.join(__dirname, "main.mjs"),
path.join(__shell_path, pkg_name, "main.mjs")
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ilk-1/samoyed",
"version": "0.0.1-beta",
"version": "0.0.2-beta",
"description": "",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit c42fab6

Please sign in to comment.