Преглед изворни кода

feat: remove commitlint and node.js dependency

MikeWallaceDev пре 2 година
родитељ
комит
943ce37623
4 измењених фајлова са 0 додато и 70 уклоњено
  1. 0 24
      commitlint.config.js
  2. 0 1
      frontend/Makefile.toml
  3. 0 39
      frontend/scripts/makefile/githooks.toml
  4. 0 6
      package.json

+ 0 - 24
commitlint.config.js

@@ -1,24 +0,0 @@
-// module.exports = {extends: ['@commitlint/config-conventional']}
-module.exports = {
-    rules: {
-        'header-max-length': [2, 'always', 100],
-
-        'type-enum': [2, 'always', ['build', 'chore', 'ci', 'docs', 'feat', 'feature', 'fix', 'refactor', 'style', 'test']],
-        'type-empty': [2, 'never'],
-        'type-case': [2, 'always', 'lower-case'],
-
-        'subject-empty': [2, 'never'],
-        'subject-case': [
-            0,
-            'never',
-            ['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
-        ],
-
-        'body-leading-blank': [2, 'always'],
-        'body-max-line-length': [2, 'always', 200],
-        'body-case': [0, 'never', []],
-
-        'footer-leading-blank': [1, 'always'],
-        'footer-max-line-length': [2, 'always', 100]
-    },
-};

+ 0 - 1
frontend/Makefile.toml

@@ -8,7 +8,6 @@ extend = [
     { path = "scripts/makefile/env.toml" },
     { path = "scripts/makefile/flutter.toml" },
     { path = "scripts/makefile/tool.toml" },
-    { path = "scripts/makefile/githooks.toml" },
 ]
 
 [config]

+ 0 - 39
frontend/scripts/makefile/githooks.toml

@@ -1,39 +0,0 @@
-[tasks.install-commitlint.mac]
-script = [
-    """
-    brew install npm
-    npm install @commitlint/cli @commitlint/config-conventional --save-dev
-
-    git config core.hooksPath .githooks
-    """,
-]
-script_runner = "@shell"
-
-[tasks.install-commitlint.windows]
-script = [
-    """
-    echo "WIP"
-
-    git config core.hooksPath .githooks
-    """,
-]
-script_runner = "@duckscript"
-
-[tasks.install-commitlint.linux]
-script = [
-    """
-    if command -v apt &> /dev/null
-    then
-      echo "Installing node.js (sudo apt install nodejs)"
-      sudo apt install nodejs
-    else
-    echo "Installing node.js (sudo pacman -S nodejs)"
-      sudo pacman -S nodejs
-    fi
-
-    npm install @commitlint/cli @commitlint/config-conventional --save-dev
-
-    git config core.hooksPath .githooks
-    """,
-]
-script_runner = "@shell"

+ 0 - 6
package.json

@@ -1,6 +0,0 @@
-{
-  "devDependencies": {
-    "@commitlint/cli": "^16.1.0",
-    "@commitlint/config-conventional": "^16.0.0"
-  }
-}