Add sync-version hook so that the version number in package.yaml will always match the one in package.json

This commit is contained in:
Danielle McLean 2017-10-05 16:22:06 +11:00
parent 4692e78503
commit 9861803d62
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
3 changed files with 31 additions and 1 deletions

1
.gitignore vendored
View file

@ -19,3 +19,4 @@ cabal.sandbox.config
*~
\#*
lebd.cabal
node_modules/

23
package-lock.json generated Normal file
View file

@ -0,0 +1,23 @@
{
"name": "lebd",
"version": "1.1.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"docopt": {
"version": "0.6.2",
"resolved": "https://registry.npmjs.org/docopt/-/docopt-0.6.2.tgz",
"integrity": "sha1-so6eIiDaXsSffqW7JKR3h0Be6xE=",
"dev": true
},
"sync-version": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/sync-version/-/sync-version-1.0.1.tgz",
"integrity": "sha1-Y6aglKmigcUqgA1obqu5ZgH4igs=",
"dev": true,
"requires": {
"docopt": "0.6.2"
}
}
}
}

View file

@ -11,5 +11,11 @@
"bugs": {
"url": "https://gitlab.com/00dani/lebd/issues"
},
"homepage": "https://gitlab.com/00dani/lebd#README"
"homepage": "https://gitlab.com/00dani/lebd#README",
"devDependencies": {
"sync-version": "^1.0.1"
},
"scripts": {
"version": "sync-version package.yaml && git add ."
}
}