Skip to content

Commit

Permalink
Release 1.1.0
Browse files Browse the repository at this point in the history
Implemented developer tools, unit tests, es6 and babel, corrected
ranges by definitions.

    - Implemented Babel.
    - Fully implemented ES6.
    - Refactor project structure.
    - Removed unnecessary PK Builder.
    - Updated documentation.
    - Implemented & passed ESLINT tests.
    - Implemented unit tests.
    - Corrected ranges from hourly to yearly according right definition
    - Removed node_modules from repo and added .gitignore
    - Added development tools, gulp, mocha, etc. (see package.json)
  • Loading branch information
Jonathan Casarrubias committed Apr 2, 2016
1 parent 40924b8 commit 5053739
Show file tree
Hide file tree
Showing 1,327 changed files with 1,294 additions and 92,235 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["es2015"],
"plugins": ["add-module-exports", "transform-runtime", "transform-object-rest-spread"]
}
8 changes: 8 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "airbnb/base",
"ecmaFeatures": {
"restParams": true,
"experimentalObjectRestSpread": true
},
"indent": ["error", 4]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ Loopback Stats Mixin - CHANGELOG

The **loopback-stats-mixin** module change .

- **Version 1.1.0**.-
- Implemented Babel.
- Fully implemented ES6.
- Refactor project structure.
- Removed unnecessary PK Builder.
- Updated documentation.
- Implemented & passed ESLINT tests.
- Implemented unit tests.
- Corrected ranges from hourly to yearly according right definition
- Removed node_modules from repo and added .gitignore
- Added development tools, gulp, mocha, etc. (see package.json)
- **Version 1.0.4**.-
- Refactor PrimaryKey Builder <https://github.com/victorhqc>.
- Implemented Custom Range
Expand Down
8 changes: 8 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Copyright (c) 2016 <copyright Jonathan Casarrubias>
============

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.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Add the `mixins` property to your `server/model-config.json` like the following:
],
"mixins": [
"loopback/common/mixins",
"../node_modules/loopback-stats-mixin",
"../node_modules/loopback-stats-mixin/dist",
"../common/mixins"
]
}
Expand Down Expand Up @@ -65,7 +65,7 @@ The following is the most basic example of how to create a `stats` micro-service
}
```

The code defined above would create a `localhost:3000/api/model/stats` endpoint with the ability to fetch `daily, weekly, monthly and annual` statistics with information related to the model.
The code defined above would create a `localhost:3000/api/model/stats` endpoint with the ability to fetch `hourly, daily, weekly, monthly, yearly and custom start and end` statistics with information related to the model.

In this example, the information will be processed upon the `createdAt` date property counted by `index` which means everytime the createdAt property matches within a timeframe, it will be counted as 1.

Expand Down
10 changes: 0 additions & 10 deletions builders/pk-builder.js

This file was deleted.

35 changes: 0 additions & 35 deletions builders/type-builder.js

This file was deleted.

53 changes: 53 additions & 0 deletions dist/builders/accept-builder.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions dist/builders/now-builder.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions dist/builders/params-builder.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5053739

Please sign in to comment.