Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Phecda
/
NGPlay
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Phecda
2020-03-02 15:58:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4deb396fff15966bbe2f6d8640aab04c464969f9
4deb396f
1 parent
a535324d
chore: add commitzen & commitlint
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletions
.commitlintrc.js
package.json
yarn.lock
.commitlintrc.js
0 → 100644
View file @
4deb396
module
.
exports
=
{
extends
:
[
'@commitlint/config-conventional'
],
rules
:
{
}
};
\ No newline at end of file
...
...
package.json
View file @
4deb396
...
...
@@ -7,7 +7,8 @@
"ios"
:
"react-native run-ios"
,
"start"
:
"react-native start"
,
"test"
:
"jest"
,
"lint"
:
"eslint . --ext .js,.jsx,.ts,.tsx"
"lint"
:
"eslint . --ext .js,.jsx,.ts,.tsx"
,
"commit"
:
"git-cz"
},
"dependencies"
:
{
"react"
:
"16.9.0"
,
...
...
@@ -16,6 +17,8 @@
"devDependencies"
:
{
"@babel/core"
:
"^7.6.2"
,
"@babel/runtime"
:
"^7.6.2"
,
"@commitlint/cli"
:
"^8.3.5"
,
"@commitlint/config-conventional"
:
"^8.3.4"
,
"@react-native-community/eslint-config"
:
"^0.0.5"
,
"@types/jest"
:
"^24.0.24"
,
"@types/react-native"
:
"^0.60.25"
,
...
...
@@ -23,7 +26,10 @@
"@typescript-eslint/eslint-plugin"
:
"^2.12.0"
,
"@typescript-eslint/parser"
:
"^2.12.0"
,
"babel-jest"
:
"^24.9.0"
,
"commitizen"
:
"^4.0.3"
,
"cz-conventional-changelog"
:
"^3.1.0"
,
"eslint"
:
"^6.5.1"
,
"husky"
:
"^4.2.3"
,
"jest"
:
"^24.9.0"
,
"metro-react-native-babel-preset"
:
"^0.56.0"
,
"react-test-renderer"
:
"16.9.0"
,
...
...
@@ -39,5 +45,15 @@
"json"
,
"node"
]
},
"config"
:
{
"commitizen"
:
{
"path"
:
"node_modules/cz-conventional-changelog"
}
},
"husky"
:
{
"hooks"
:
{
"commit-msg"
:
"commitlint -E HUSKY_GIT_PARAMS"
}
}
}
...
...
yarn.lock
View file @
4deb396
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment