1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-08 10:00:04 +00:00

chore: updating CONTRIBUTING, preventing files with spaces being added, adding git hooks package

This commit is contained in:
2021-03-21 22:23:50 +01:00
parent 4b375e0b8c
commit f356e1f351
4 changed files with 32 additions and 4 deletions

3
.gitignore vendored
View File

@@ -1,3 +1,6 @@
node_modules node_modules
.DS_Store .DS_Store
sasjsbuild/ sasjsbuild/
# avoid filenames with spaces being committed to source control
**\ **

View File

@@ -27,6 +27,5 @@ To contribute:
1. Create your feature branch (`git checkout -b myfeature`) 1. Create your feature branch (`git checkout -b myfeature`)
2. Make your change 2. Make your change
3. Update the `all.sas` file (`python3 build.py`) 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 4. Push and make a PR
5. Push and make a PR

24
package-lock.json generated
View File

@@ -7,7 +7,29 @@
"": { "": {
"name": "@sasjs/core", "name": "@sasjs/core",
"version": "1.0.0", "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=="
} }
} }
} }

View File

@@ -28,6 +28,10 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "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"
} }
} }