Skip to content

Commit 740c521

Browse files
committed
wNumb 1.2.0
- Add Prettier - Change Licence to MIT - Added minified version - Add "files" directive to package
1 parent 725bc8e commit 740c521

File tree

8 files changed

+441
-352
lines changed

8 files changed

+441
-352
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

LICENSE.MD

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Léon Gersen
4+
5+
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:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
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.

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
wnumb
1+
wNumb
22
=====
33

44
wNumb - JavaScript Number & Money formatting
55

66
# Documentation
77

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

1010
# Changelog
1111

12+
### 1.2.0 (*2019-10-29*)
13+
- Changed: License is now MIT
14+
- Added: Prettier code formatter
15+
- Added: Minified version
16+
1217
### 1.1.0 (*2017-02-04*)
1318
- Changed: Renamed `postfix` option to the proper `suffix`. `postfix` is remapped internally for backward compatibility;
1419

1520
# License
1621

17-
Licensed [WTFPL](http://www.wtfpl.net/about/), so free for personal and commercial use.
22+
Licensed MIT, so free for personal and commercial use.

package-lock.json

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
{
22
"name": "wnumb",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "wNumb - JavaScript Number & Money formatting",
55
"main": "wNumb.js",
66
"repository": {
77
"type": "git",
88
"url": "git://github.com/leongersen/wnumb.git"
99
},
1010
"author": "leongersen",
11-
"license": "WTFPL",
11+
"license": "MIT",
12+
"scripts": {
13+
"format": "prettier wNumb.js --write --print-width=120",
14+
"minify": "uglifyjs wNumb.js --compress --mangle --output wNumb.min.js",
15+
"build": "npm run format && npm run minify"
16+
},
17+
"files": [
18+
"wNumb.js",
19+
"wNumb.min.js"
20+
],
1221
"bugs": {
1322
"url": "https://github.com/leongersen/wnumb/issues"
23+
},
24+
"devDependencies": {
25+
"prettier": "^1.18.2",
26+
"uglify-js": "^3.6.5"
1427
}
1528
}

test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<link href="http://code.jquery.com/qunit/qunit-1.12.0.css" rel="stylesheet">
55
<script src="http://code.jquery.com/qunit/qunit-1.12.0.js"></script>
6-
<script src="wNumb.js"></script>
6+
<script src="wNumb.min.js"></script>
77
</head>
88

99
<div id="qunit"></div>

0 commit comments

Comments
 (0)