Skip to content

Commit

Permalink
wNumb 1.2.0
Browse files Browse the repository at this point in the history
- Add Prettier
- Change Licence to MIT
- Added minified version
- Add "files" directive to package
  • Loading branch information
leongersen committed Oct 29, 2019
1 parent 725bc8e commit 740c521
Show file tree
Hide file tree
Showing 8 changed files with 441 additions and 352 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
9 changes: 9 additions & 0 deletions LICENSE.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2019 Léon Gersen

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.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
wnumb
wNumb
=====

wNumb - JavaScript Number & Money formatting

# Documentation

Documentation and examples are available on [refreshless.com/wnumb](http://refreshless.com/wnumb/).
Documentation and examples are available on [refreshless.com/wnumb](https://refreshless.com/wnumb/).

# Changelog

### 1.2.0 (*2019-10-29*)
- Changed: License is now MIT
- Added: Prettier code formatter
- Added: Minified version

### 1.1.0 (*2017-02-04*)
- Changed: Renamed `postfix` option to the proper `suffix`. `postfix` is remapped internally for backward compatibility;

# License

Licensed [WTFPL](http://www.wtfpl.net/about/), so free for personal and commercial use.
Licensed MIT, so free for personal and commercial use.
36 changes: 36 additions & 0 deletions package-lock.json

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

17 changes: 15 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
{
"name": "wnumb",
"version": "1.1.0",
"version": "1.2.0",
"description": "wNumb - JavaScript Number & Money formatting",
"main": "wNumb.js",
"repository": {
"type": "git",
"url": "git://github.com/leongersen/wnumb.git"
},
"author": "leongersen",
"license": "WTFPL",
"license": "MIT",
"scripts": {
"format": "prettier wNumb.js --write --print-width=120",
"minify": "uglifyjs wNumb.js --compress --mangle --output wNumb.min.js",
"build": "npm run format && npm run minify"
},
"files": [
"wNumb.js",
"wNumb.min.js"
],
"bugs": {
"url": "https://github.com/leongersen/wnumb/issues"
},
"devDependencies": {
"prettier": "^1.18.2",
"uglify-js": "^3.6.5"
}
}
2 changes: 1 addition & 1 deletion test.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<link href="http://code.jquery.com/qunit/qunit-1.12.0.css" rel="stylesheet">
<script src="http://code.jquery.com/qunit/qunit-1.12.0.js"></script>
<script src="wNumb.js"></script>
<script src="wNumb.min.js"></script>
</head>

<div id="qunit"></div>
Expand Down
Loading

0 comments on commit 740c521

Please # to comment.