@storm-software/git-tools 1.2.8 → 1.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.2.9](https://github.com/storm-software/storm-ops/compare/git-tools-v1.2.8...git-tools-v1.2.9) (2023-11-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **git-tools:** Resolved issue with missing husky hooks ([505113d](https://github.com/storm-software/storm-ops/commit/505113d29a17b37c99aa00d93bb6a1b5f60412ed))
7
+
8
+ ## [1.2.8](https://github.com/storm-software/storm-ops/compare/git-tools-v1.2.7...git-tools-v1.2.8) (2023-11-10)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **git-tools:** Resolved issue with semantic release plugin path default ([d7eea90](https://github.com/storm-software/storm-ops/commit/d7eea9024787edde8672482c29cba93cd50408b2))
14
+
1
15
  ## [1.2.7](https://github.com/storm-software/storm-ops/compare/git-tools-v1.2.6...git-tools-v1.2.7) (2023-11-09)
2
16
 
3
17
 
package/README.md CHANGED
@@ -15,7 +15,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
15
15
 
16
16
  <h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
17
17
 
18
- [![Version](https://img.shields.io/badge/version-1.2.4-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
18
+ [![Version](https://img.shields.io/badge/version-1.2.8-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
19
19
  [![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
20
20
 
21
21
  <h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ - This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.</h3><br />
@@ -0,0 +1,7 @@
1
+ #!/bin/sh
2
+
3
+ changedFiles="$(git diff-tree -r --name-only --no-commit-id $1 $2)"
4
+ node @storm-software/git-tools/scripts/package-version-warning.js $changedFiles
5
+
6
+ command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.\n"; exit 2; }
7
+ git lfs post-checkout "$@"
@@ -0,0 +1,5 @@
1
+ #!/bin/sh
2
+
3
+ command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-commit.\n"; exit 2; }
4
+ git lfs post-commit "$@"
5
+
@@ -0,0 +1,7 @@
1
+ #!/bin/sh
2
+
3
+ changedFiles="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
4
+ node @storm-software/git-tools/scripts/package-version-warning.js $changedFiles
5
+
6
+ command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-merge.\n"; exit 2; }
7
+ git lfs post-merge "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+
3
+ pnpm lint-staged --concurrent false --config="@storm-software/git-tools/lint-staged/config.js"
4
+ pnpm test
package/hooks/pre-push ADDED
@@ -0,0 +1,6 @@
1
+ #!/bin/sh
2
+
3
+ node @storm-software/git-tools/scripts/check-lock-file.js
4
+
5
+ command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.\n"; exit 2; }
6
+ git lfs pre-push "$@"
@@ -29,7 +29,7 @@ module.exports = {
29
29
 
30
30
  return [`git add ${escapedFileNames}`];
31
31
  },
32
- "**/*.{js,jsx,ts,tsx,json,css,scss,md,mdx,yml,yaml,graphql,html,prisma,4cast}":
32
+ "**/*.{js,jsx,ts,tsx,json,css,scss,md,mdx,yml,yaml,graphql,html,prisma,acid,acidic}":
33
33
  fileNames => {
34
34
  const escapedFileNames = fileNames
35
35
  .map(filename => (isWin ? filename : escape(filename)))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
4
4
  "private": false,
5
5
  "description": "⚡ A package containing various git tools used in Storm workspaces.",
6
6
  "keywords": [
@@ -30,7 +30,12 @@
30
30
  },
31
31
  "type": "module",
32
32
  "bin": {
33
- "storm-git": "./bin/cli.js"
33
+ "storm-git": "./bin/cli.js",
34
+ "storm-post-checkout": "./hooks/post-checkout",
35
+ "storm-post-commit": "./hooks/post-commit",
36
+ "storm-post-merge": "./hooks/post-merge",
37
+ "storm-pre-commit": "./hooks/pre-commit",
38
+ "storm-pre-push": "./hooks/pre-push"
34
39
  },
35
40
  "dependencies": {
36
41
  "@commitlint/cli": "18.2.0",