mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-11-05 02:54:27 +03:00
feat: remove commitlint and node.js dependency
This commit is contained in:
parent
e640cf2890
commit
943ce37623
@ -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]
|
||||
},
|
||||
};
|
@ -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]
|
||||
|
@ -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"
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^16.1.0",
|
||||
"@commitlint/config-conventional": "^16.0.0"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user