diff --git a/.codeclimate.yml b/.codeclimate.yml deleted file mode 100644 index 2bb4b26..0000000 --- a/.codeclimate.yml +++ /dev/null @@ -1,14 +0,0 @@ -engines: - duplication: - enabled: true - config: - languages: - - javascript -ratings: - paths: - - "src/**/*.js" -exclude_paths: -- "gulpfile.js" -- "README.md" -- "package.json" -- "test/**/*" diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..9cf9495 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +package-lock=false \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index e7fcd76..b6b828e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,8 @@ language: node_js node_js: - "10" script: "gulp coverage" +notifications: + email: false after_success: - - npm install -g codeclimate-test-reporter - - codeclimate-test-reporter < coverage/lcov.info + # Upload to coveralls, but don't _fail_ if coveralls is down. + - cat coverage/lcov.info | node_modules/.bin/coveralls || echo "Coveralls upload failed" diff --git a/CHANGELOG.md b/CHANGELOG.md index a9cde07..13a90c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,11 @@ -### [3.0.1](https://github.com/jmeas/moment-business/releases/tag/v3.0.1) +### [3.0.1](https://github.com/jamesplease/moment-business/releases/tag/v3.0.1) - Fix the name of the library in non-module loader browser environments. Previously, the library was attached as `window.none`. Now it is available under `window.momentBusiness`. Note that this issue does not affect users building with ES2015/CommonJS/AMD module bundlers. -### [3.0.0](https://github.com/jmeas/moment-business/releases/tag/v3.0.0) +### [3.0.0](https://github.com/jamesplease/moment-business/releases/tag/v3.0.0) - The functions in this library now accept moments as arguments rather than being attached to the Moment prototype. @@ -14,7 +14,7 @@ `startMoment`, then the result will be negative. - Better docs! -### [2.0.0](https://github.com/jmeas/moment-business/releases/tag/v2.0.0) +### [2.0.0](https://github.com/jamesplease/moment-business/releases/tag/v2.0.0) The API is now more consistent. @@ -22,24 +22,24 @@ The API is now more consistent. - Rename `addWorkDays` to `addWeekDays` - Rename `subtractWorkDays` to `subtractWeekDays` -### [1.1.1](https://github.com/jmeas/moment-business/releases/tag/v1.1.1) +### [1.1.1](https://github.com/jamesplease/moment-business/releases/tag/v1.1.1) - Add dependencies to `bower.json` - Support invalid values when adding or subtracting work days (it returns the same moment) - Add this CHANGELOG file -### [1.1.0](https://github.com/jmeas/moment-business/releases/tag/v1.1.0) +### [1.1.0](https://github.com/jamesplease/moment-business/releases/tag/v1.1.0) - Two new methods: `isWeekendDay` and `isWorkDay` -### [1.0.2](https://github.com/jmeas/moment-business/releases/tag/v1.0.2) +### [1.0.2](https://github.com/jamesplease/moment-business/releases/tag/v1.0.2) - Removes the wrapper file altogether -### [1.0.1](https://github.com/jmeas/moment-business/releases/tag/v1.0.1) +### [1.0.1](https://github.com/jamesplease/moment-business/releases/tag/v1.0.1) - Fixes an issue with the UMD wrapper -### [1.0.0](https://github.com/jmeas/moment-business/releases/tag/v1.0.0) +### [1.0.0](https://github.com/jamesplease/moment-business/releases/tag/v1.0.0) First major release. diff --git a/README.md b/README.md index c4898dd..2cb13f7 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ # moment-business [![Travis build status](http://img.shields.io/travis/jamesplease/moment-business.svg?style=flat)](https://travis-ci.org/jamesplease/moment-business) -[![Test Coverage](https://codeclimate.com/github/jmeas/moment-business/badges/coverage.svg)](https://codeclimate.com/github/jmeas/moment-business) +[![Test Coverage](https://coveralls.io/repos/github/jamesplease/moment-business/badge.svg?branch=master)](https://coveralls.io/github/jamesplease/moment-business?branch=master) [![Dependency Status](https://david-dm.org/jamesplease/moment-business.svg)](https://david-dm.org/jamesplease/moment-business) Utilities for working with week days and weekend days in Moment. It assumes a Western workweek, in which weekends are Saturday and Sunday. *Looking for a vanilla JS version of this library? Check out -[bizniz.js](https://github.com/jmeas/bizniz.js)* +[bizniz.js](https://github.com/jamesplease/bizniz.js)* ### Motivation diff --git a/bower.json b/bower.json index 4b76b28..e5e3eca 100644 --- a/bower.json +++ b/bower.json @@ -1,9 +1,9 @@ { "name": "moment-business", "version": "3.0.1", - "homepage": "https://github.com/jmeas/moment-business", + "homepage": "https://github.com/jamesplease/moment-business", "authors": [ - "Jmeas " + "James Please " ], "description": "Methods to work with week days and weekends in moment.", "main": "dist/moment-business.js", diff --git a/package.json b/package.json index c8e1195..5d0e2e4 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/jmeas/moment-business.git" + "url": "https://github.com/jamesplease/moment-business.git" }, "keywords": [ "moment", @@ -22,17 +22,18 @@ "weekend", "weekends" ], - "author": "Jmeas", + "author": "James Please", "license": "MIT", "bugs": { - "url": "https://github.com/jmeas/moment-business/issues" + "url": "https://github.com/jamesplease/moment-business/issues" }, - "homepage": "https://github.com/jmeas/moment-business", + "homepage": "https://github.com/jamesplease/moment-business", "devDependencies": { "6to5": "^3.3.3", "6to5ify": "^4.1.1", "browserify": "^8.1.1", "chai": "^1.10.0", + "coveralls": "^3.0.1", "del": "^1.1.1", "esperanto": "^0.6.7", "glob": "^4.3.5",