Skip to content

Commit

Permalink
Merge pull request #31 from yusufshakeel/dev
Browse files Browse the repository at this point in the history
0.8.18
  • Loading branch information
yusufshakeel authored Dec 5, 2020
2 parents 2403165 + ebcd3d6 commit f2e5242
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/
.idea/
docs/
coverage/
coverage/
output/
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This is a simple coupon creation project using NodeJS.

[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/yusufshakeel/couponjs)
[![npm version](https://img.shields.io/badge/npm-0.8.17-blue.svg)](https://www.npmjs.com/package/couponjs)
[![npm version](https://img.shields.io/badge/npm-0.8.18-blue.svg)](https://www.npmjs.com/package/couponjs)
[![Build Status](https://travis-ci.com/yusufshakeel/couponjs.svg?branch=master)](https://travis-ci.com/yusufshakeel/couponjs)
[![Coverage Status](https://coveralls.io/repos/github/yusufshakeel/couponjs/badge.svg?branch=master)](https://coveralls.io/github/yusufshakeel/couponjs?branch=master)

Expand Down Expand Up @@ -684,6 +684,8 @@ To check performance run the following command in the terminal.
> npm run performance
```

Performance will be recorded in `output/PERFORMANCE.md` file.

## License

It's free :smiley:
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "couponjs",
"version": "0.8.17",
"version": "0.8.18",
"description": "This is a simple coupon creation project using NodeJS.",
"main": "index.js",
"scripts": {
"project:init": "mkdir -p output && npm i && npm run test",
"test": "jest -c jest.config.json",
"generate-docs": "npx jsdoc -c jsdocs.config.json",
"lint": "npx eslint -c .eslintrc.json ./index.js ./app ./tests ./performance",
Expand Down
6 changes: 3 additions & 3 deletions performance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ const fs = require('fs');
const CouponJS = require('../index.js');
const { startSection } = require('./template.js');

const maxCoupons = [1, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 5e6];
const maxCoupons = [1, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6];

const couponLengths = [6, 8, 12, 16];
const couponLengths = [6, 8, 12, 16, 20];

const roundNumbers = [1, 2, 3];

const performanceMdData = {
file: './PERFORMANCE.md',
file: './output/PERFORMANCE.md',
timestamp: new Date().toISOString(),
divider: '============================================================'
};
Expand Down

0 comments on commit f2e5242

Please sign in to comment.