Skip to content

Commit

Permalink
Merge branch 'release/1.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed Aug 19, 2019
2 parents b7a4ef6 + aa94ae2 commit d129fad
Show file tree
Hide file tree
Showing 46 changed files with 13,962 additions and 7,502 deletions.
12 changes: 12 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
]
}
19 changes: 8 additions & 11 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
# https://editorconfig.org
# https://github.com/airbnb/javascript/blob/master/.editorconfig

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
# editorconfig-tools is unable to ignore longs strings or urls
max_line_length = null

[*.md]
trim_trailing_whitespace = false
# Matches multiple files with brace expansion notation
# Set default charset
[*.{js}]
charset = utf-8
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/http.router.js
11 changes: 11 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": [
"airbnb-base",
"plugin:prettier/recommended",
"plugin:jsdoc/recommended"
],
"plugins": ["prettier", "jsdoc"],
"rules": {
"prettier/prettier": "error"
}
}
30 changes: 9 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,19 @@
logs
*.log

#Temporary data
.tmp

# Runtime data
# Runtime
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
# Temporary
.tmp
.grunt

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# Deployed apps should consider commenting this line out:
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
# Dependencies
node_modules
doc
startup.sh
spec/intergration.spec.js
config

# Coverage
libcov
coverage
.nyc_output
8 changes: 0 additions & 8 deletions .jsbeautifyrc

This file was deleted.

20 changes: 0 additions & 20 deletions .jshintrc

This file was deleted.

29 changes: 12 additions & 17 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
node_modules
ssl
.DS_STORE
*~
.idea
nbproject
.git
.gitignore
.tmp
*.swo
*.swp
*.swn
*.swm
logs
*.log
.jshintrc
.editorconfig
pids
*.pid
*.seed
.tmp
.grunt
node_modules
libcov
coverage
.nyc_output
test
examples
.travis.yml
Gruntfile.js
docs
examples
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
registry = "https://registry.npmjs.com/"
git-tag-version = false
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ language: node_js
services:
- mongodb
node_js:
- "9.3.0"
before_script:
- npm install -g grunt-cli
- '12.4.0'
script:
- commitlint-travis
- npm test
after_success: npm run coverage

77 changes: 77 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,80 @@
#### 1.3.0 (2019-08-19)

##### Chores

* **deps:**
* force latest version & audit fix ([c2ed35e6](https://github.com/CodeTanzania/majifix-service-group/commit/c2ed35e69c7466ea5749d793995afabd9b7f6968))
* update dependency lint-staged to v9.2.3 ([70e79d34](https://github.com/CodeTanzania/majifix-service-group/commit/70e79d3459313e48a4c7636d58607d1eca51e262))
* update dependency lint-staged to v9.2.2 ([f8fabb4e](https://github.com/CodeTanzania/majifix-service-group/commit/f8fabb4e5d4597ade8bac6b839a09915e7bea4e4))
* update dependency husky to v3.0.4 ([6bfed342](https://github.com/CodeTanzania/majifix-service-group/commit/6bfed3424dbf622c4d48247221b211e43d73dcda))
* update dependency husky to v3.0.3 ([9a706357](https://github.com/CodeTanzania/majifix-service-group/commit/9a706357b3ead12669dc38a9c5ac1359ee24d228))
* update dependency mongoose to v5.6.9 ([a52b8071](https://github.com/CodeTanzania/majifix-service-group/commit/a52b807188a3b71356ca63ae62dbd7d7b4992bab))
* update dependency sinon to v7.4.1 ([5611bc37](https://github.com/CodeTanzania/majifix-service-group/commit/5611bc37170ef08df23257bc0056c33222ab961f))
* roll back dependency sinon to 7.3.2 ([22e9013e](https://github.com/CodeTanzania/majifix-service-group/commit/22e9013e65ca568191d537426860dd503ca709e8))
* update dependency sinon to v7.4.0 ([7eb9eebd](https://github.com/CodeTanzania/majifix-service-group/commit/7eb9eebdf7c0927d99578fe6a024ce7d0fe295a5))
* update dependency mongoose to v5.6.8 ([951fbffd](https://github.com/CodeTanzania/majifix-service-group/commit/951fbffda8117f6e4060c998c492081c6ec11c71))
* pin dependencies ([4b6446fe](https://github.com/CodeTanzania/majifix-service-group/commit/4b6446fe6b1cce244e9d023fa46f9be4c6170987))
* update dependencies to latest versions ([22529e0b](https://github.com/CodeTanzania/majifix-service-group/commit/22529e0b513736cb1d8b32d79e0a0a89fa747749))
* add scripts and dependencies ([3643ee78](https://github.com/CodeTanzania/majifix-service-group/commit/3643ee7848ed7abf7ca5ffbeb164a2513a84b465))
* configure renovate ([ab98b049](https://github.com/CodeTanzania/majifix-service-group/commit/ab98b049df5ca848b8b6752ed0343325dec0b6f0))
* generate files ([e0bbeef3](https://github.com/CodeTanzania/majifix-service-group/commit/e0bbeef36ce443054ec8d3c4deb692087c056197))
* **examples:** remove sample.js file ([73303007](https://github.com/CodeTanzania/majifix-service-group/commit/73303007030357813b6d9d5700c0e475a76ea007))
* **config:**
* remove .jshintrc file from test folder ([5e53488b](https://github.com/CodeTanzania/majifix-service-group/commit/5e53488b5c75192d1fc6e41cc283cb9218da9451))
* add .eslintrc file to test folder ([cb2cfc74](https://github.com/CodeTanzania/majifix-service-group/commit/cb2cfc7447b32f0980ee97e7805e310bbe876d7c))
* implement index.js to es6 ([6d84c9f3](https://github.com/CodeTanzania/majifix-service-group/commit/6d84c9f3df5b37a18648979317b14e3e905edbe0))
* add rollup.config.js file ([7a77e070](https://github.com/CodeTanzania/majifix-service-group/commit/7a77e070f8e9d25082f00ff7e843d90c7898956e))
* remove files from lib folder ([5d0af09f](https://github.com/CodeTanzania/majifix-service-group/commit/5d0af09fbaeb00018073e2c69dcdb42480ab017f))
* remove Gruntfile.js ([e3a92d92](https://github.com/CodeTanzania/majifix-service-group/commit/e3a92d92abafd81fb9c48c87cd7aa85fec7e67f8))
* remove .jshintrc file ([4a15dd5b](https://github.com/CodeTanzania/majifix-service-group/commit/4a15dd5bde9ea6c6c2bb4b838043a40ff10ab91b))
* remove .jsbeautifyrc file ([411ded4a](https://github.com/CodeTanzania/majifix-service-group/commit/411ded4a19126a85f690650023915e4bb4c99e1b))
* add .eslintrc file ([055f0bcb](https://github.com/CodeTanzania/majifix-service-group/commit/055f0bcbbafdf87684bdb644ed59ea1d855b2efd))
* refactor .editorconfig file ([b7068129](https://github.com/CodeTanzania/majifix-service-group/commit/b706812909500dc0ef5503c0a3ae9f654f0942bb))
* add .babelrc file ([881cbbd1](https://github.com/CodeTanzania/majifix-service-group/commit/881cbbd1ba59e3a1cdc9f9203d375bd6ad3b6494))
* **src:** add .gitignore file to src folder ([15f41d68](https://github.com/CodeTanzania/majifix-service-group/commit/15f41d68808652c7575a63edaf368d0633f24036))
* **model:** implement serviceGroup to es6 ([e2670a83](https://github.com/CodeTanzania/majifix-service-group/commit/e2670a83777c29f06623620732a24be90ee2f51d))
* **router:** implement router to es6 ([106513dd](https://github.com/CodeTanzania/majifix-service-group/commit/106513ddc09f5fc0c7f5fffed39e26910d1031a4))

##### Documentation Changes

* add test coverage badge ([93974f05](https://github.com/CodeTanzania/majifix-service-group/commit/93974f057b0b6bb86ccfd1111e437ebfde0e458b))

##### Refactors

* **router:** use express rest actions ([84b7212b](https://github.com/CodeTanzania/majifix-service-group/commit/84b7212babed6046adbd721fc48940963a294109))
* improve main export ([6c537e00](https://github.com/CodeTanzania/majifix-service-group/commit/6c537e0034ba9994f82131f9e02274d27b2fcb96))
* **model:** upgarde to use latest dependencies api ([7fdd9a59](https://github.com/CodeTanzania/majifix-service-group/commit/7fdd9a5940a1dc2d09c88b81e3551f114eacfad5))
* **config:** upgrade eslint, prettier & travis configs ([48e06dbf](https://github.com/CodeTanzania/majifix-service-group/commit/48e06dbfc118b7775ffb865a810a7e860abce16b))
* **configs:** upgrade rollup config ([37224fa0](https://github.com/CodeTanzania/majifix-service-group/commit/37224fa0d46042f133d051427b30f4bb4dc197ad))
* **deps:** migrate to use latest versions ([fda7ed7c](https://github.com/CodeTanzania/majifix-service-group/commit/fda7ed7cb65d4875fb6f5030d1e702f578519f81))
* **examples:**
* implement seed.js ([fd268be5](https://github.com/CodeTanzania/majifix-service-group/commit/fd268be57e5ed9daa4143929d1beaf8ab6e48409))
* re-implement app.js ([2d99c9be](https://github.com/CodeTanzania/majifix-service-group/commit/2d99c9beb9a1d5928f3c4bfd11cae7b0cc7c0a2d))
* **unit:**
* implement to es6 ([e5bdae92](https://github.com/CodeTanzania/majifix-service-group/commit/e5bdae92f86630e14514f11e94a386426cffbb20))
* implement to es6 ([c5e2f7b8](https://github.com/CodeTanzania/majifix-service-group/commit/c5e2f7b89bae80b1207ebae6379d9e087e1a90a9))
* **integration:**
* implement to es6 and use mongoose-test-helpers ([91586801](https://github.com/CodeTanzania/majifix-service-group/commit/915868014dbc5287d87cd6e5c1021b3cebc55070))
* implement to es6 and use mongoose-test-helpers ([b01705f9](https://github.com/CodeTanzania/majifix-service-group/commit/b01705f9032afa65104903844fd7a09fd76a031e))
* implement to es6 and use mongoose-test-helpers ([4ca0331d](https://github.com/CodeTanzania/majifix-service-group/commit/4ca0331dfde0c564a50a8c779b08d0eeaeb40bc3))
* implement to es6 and use mongoose-test-helpers ([9e0f7c77](https://github.com/CodeTanzania/majifix-service-group/commit/9e0f7c7736c9fee74cbdda1f2182ab3248540d1a))
* implement to es6 and use mongoose-test-helpers ([132b6717](https://github.com/CodeTanzania/majifix-service-group/commit/132b671722c901aa8733b059dc60f03e5a3dacdc))
* implement to es6 and use mongoose-test-helpers ([aeb579cc](https://github.com/CodeTanzania/majifix-service-group/commit/aeb579cc8a8fd5164c7cc41ef79c077d392407eb))
* implement to es6 and use mongoose-test-helpers ([dece0d02](https://github.com/CodeTanzania/majifix-service-group/commit/dece0d024caf410c0db7bf6a1bede4fb1e113a0f))
* implement using mongoose-test-helpers ([c98d2123](https://github.com/CodeTanzania/majifix-service-group/commit/c98d21232fa313394a878d805878514e5d33047f))
* **test:** implement to use mongoose-test-helpers ([e906443f](https://github.com/CodeTanzania/majifix-service-group/commit/e906443fab15a5fb7a13b1de5b0342d3714db6b2))

##### Tests

* **integration:**
* improve seed specs ([1f934f94](https://github.com/CodeTanzania/majifix-service-group/commit/1f934f94f1e26a37d86c3edbf20ba9db3cc2f6d9))
* improve getOneOrDefault specs ([ac3eadfa](https://github.com/CodeTanzania/majifix-service-group/commit/ac3eadfa55a3c0ca53003beb79e2a4fe38f60eed))
* refactor to use mongoose test helpers ([a58fea3d](https://github.com/CodeTanzania/majifix-service-group/commit/a58fea3dc21b5633d04afbfefccbaa37ea5cf1c1))
* **unit:**
* improve refs specs ([016cbcb5](https://github.com/CodeTanzania/majifix-service-group/commit/016cbcb593a88933c8bf60febcd9af49704d5141))
* refactor to use mongoose test helpers ([37eae70a](https://github.com/CodeTanzania/majifix-service-group/commit/37eae70aa62004db34be247f535f59271aa6b0c8))
* refactor bootstraps & add fixtures ([00b10a31](https://github.com/CodeTanzania/majifix-service-group/commit/00b10a31d4caaca825b88b2d24748a02c6f203f3))

#### 1.2.6 (2019-05-21)

##### Chores
Expand Down
88 changes: 0 additions & 88 deletions Gruntfile.js

This file was deleted.

4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
The MIT License (MIT)

Copyright (c) 2018 CodeTanzania & Contributors
Copyright (c) CodeTanzania & Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Build Status](https://travis-ci.org/CodeTanzania/majifix-service-group.svg?branch=develop)](https://travis-ci.org/CodeTanzania/majifix-service-group)
[![Dependencies Status](https://david-dm.org/CodeTanzania/majifix-service-group/status.svg?style=flat-square)](https://david-dm.org/CodeTanzania/majifix-service-group)
[![Coverage Status](https://coveralls.io/repos/github/CodeTanzania/majifix-service-group/badge.svg?branch=develop)](https://coveralls.io/github/CodeTanzania/majifix-service-group?branch=develop)
[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/CodeTanzania/majifix-service-group/tree/develop)

A representation of an entity that group services offered by a jurisdiction(s) into meaningful categories e.g Sanitation.
Expand Down Expand Up @@ -71,10 +72,10 @@ It will be nice, if you open an issue first so that we can know what is going on

The MIT License (MIT)

Copyright (c) 2018 CodeTanzania & Contributors
Copyright (c) CodeTanzania & Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit d129fad

Please sign in to comment.