From a805e3b61b1531ad4089d4bb5ecc5659ece84579 Mon Sep 17 00:00:00 2001 From: Joel Bryan Juliano Date: Wed, 7 Aug 2024 07:11:23 +0200 Subject: [PATCH] added project support files --- .editconfig | 10 ++++++++++ .gitattributes | 11 +++++++++++ .githooks/pre-commit | 7 +++++++ 3 files changed, 28 insertions(+) create mode 100644 .editconfig create mode 100644 .gitattributes create mode 100644 .githooks/pre-commit diff --git a/.editconfig b/.editconfig new file mode 100644 index 0000000..cec17f8 --- /dev/null +++ b/.editconfig @@ -0,0 +1,10 @@ +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +# don't trim whitespace within (say) a Pkl multiline string +trim_trailing_whitespace = false +insert_final_newline = true +max_line_length = 100 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..5f71d5a --- /dev/null +++ b/.gitattributes @@ -0,0 +1,11 @@ +*.pkl linguist-language=Pkl +PklProject linguist-language=Pkl + +* text eol=lf +*.bat text eol=crlf + +*.gif binary +*.jar binary +*.woff2 binary +*.pem binary +*.png binary diff --git a/.githooks/pre-commit b/.githooks/pre-commit new file mode 100644 index 0000000..65fb891 --- /dev/null +++ b/.githooks/pre-commit @@ -0,0 +1,7 @@ +#!/bin/sh + +files=`git diff --name-status` + +if [[ $files =~ deps/ ]]; then + make && git add pkg +fi