From f356e1f3515564ef57e36f4a8441b325b20b9588 Mon Sep 17 00:00:00 2001 From: Allan Bowe Date: Sun, 21 Mar 2021 22:23:50 +0100 Subject: [PATCH] chore: updating CONTRIBUTING, preventing files with spaces being added, adding git hooks package --- .gitignore | 3 +++ CONTRIBUTING.md | 3 +-- package-lock.json | 24 +++++++++++++++++++++++- package.json | 6 +++++- 4 files changed, 32 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index ffc0011..a6210ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ node_modules .DS_Store sasjsbuild/ + +# avoid filenames with spaces being committed to source control +**\ ** \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 23da787..ec24915 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -27,6 +27,5 @@ To contribute: 1. Create your feature branch (`git checkout -b myfeature`) 2. Make your change 3. Update the `all.sas` file (`python3 build.py`) -4. Commit the change, using the [conventional commit](https://www.conventionalcommits.org/en/v1.0.0) standard -5. Push and make a PR +4. Push and make a PR diff --git a/package-lock.json b/package-lock.json index 480c4d2..27ec6fb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,29 @@ "": { "name": "@sasjs/core", "version": "1.0.0", - "license": "MIT" + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "node-git-hooks": "^1.0.5" + } + }, + "node_modules/node-git-hooks": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/node-git-hooks/-/node-git-hooks-1.0.5.tgz", + "integrity": "sha512-05rULsJy8z2OvXTQFZv9fN20uo186EYgJYQjkL1OjnXj53QivOAGUzZilZ/MX8OmPRaN+deJBtlvMRydpdfnqA==", + "bin": { + "node-git-hooks": "bin/install.js" + }, + "engines": { + "node": ">=4.0.0" + } + } + }, + "dependencies": { + "node-git-hooks": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/node-git-hooks/-/node-git-hooks-1.0.5.tgz", + "integrity": "sha512-05rULsJy8z2OvXTQFZv9fN20uo186EYgJYQjkL1OjnXj53QivOAGUzZilZ/MX8OmPRaN+deJBtlvMRydpdfnqA==" } } } diff --git a/package.json b/package.json index 16cf98d..e90c242 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,10 @@ "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "docs": "sasjs doc && ./sasjs/utils/build.sh" + "docs": "sasjs doc && ./sasjs/utils/build.sh", + "postinstall": "node-git-hooks" + }, + "dependencies": { + "node-git-hooks": "^1.0.5" } }