Skip to content

Commit 7460e35

Browse files
committed
Remove Grunt dependencies.
Update dev dependencies. Remove obsolete file version numbers.
1 parent e501057 commit 7460e35

File tree

10 files changed

+42
-89
lines changed

10 files changed

+42
-89
lines changed

.jshintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
js/*.min.js

Gruntfile.js

Lines changed: 0 additions & 68 deletions
This file was deleted.

css/demo.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* JavaScript MD5 Demo CSS 1.0.1
2+
* JavaScript MD5 Demo CSS
33
* https://github.com/blueimp/JavaScript-MD5
44
*
55
* Copyright 2013, Sebastian Tschan

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML>
22
<!--
33
/*
4-
* JavaScript MD5 Demo 1.0.1
4+
* JavaScript MD5 Demo
55
* https://github.com/blueimp/JavaScript-MD5
66
*
77
* Copyright 2011, Sebastian Tschan
@@ -45,7 +45,7 @@ <h2>Result</h2>
4545
</form>
4646
<script src="js/md5.js"></script>
4747
<!-- jQuery is not required by JavaScript MD5, but included for the demo -->
48-
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
48+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
4949
<script src="js/demo.js"></script>
50-
</body>
50+
</body>
5151
</html>

js/demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* JavaScript MD5 Demo JS 1.0.1
2+
* JavaScript MD5 Demo JS
33
* https://github.com/blueimp/JavaScript-MD5
44
*
55
* Copyright 2013, Sebastian Tschan

js/md5.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*
2-
* JavaScript MD5 1.0.1
2+
* JavaScript MD5
33
* https://github.com/blueimp/JavaScript-MD5
44
*
55
* Copyright 2011, Sebastian Tschan
66
* https://blueimp.net
77
*
88
* Licensed under the MIT license:
99
* http://www.opensource.org/licenses/MIT
10-
*
10+
*
1111
* Based on
1212
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
1313
* Digest Algorithm, as defined in RFC 1321.

js/md5.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,35 @@
3131
"bugs": "https://github.com/blueimp/JavaScript-MD5/issues",
3232
"license": "MIT",
3333
"devDependencies": {
34-
"grunt": "~0.4.1",
35-
"grunt-contrib-uglify": "~0.2.7",
36-
"grunt-contrib-jshint": "~0.7.1",
37-
"grunt-bump-build-git": "~1.0.0",
38-
"grunt-simple-mocha": "~0.4.0",
39-
"expect.js": "0.2.0"
34+
"expect.js": "0.3.1",
35+
"jshint": "2.8.0",
36+
"mocha": "2.3.4",
37+
"uglify-js": "2.6.1"
4038
},
4139
"scripts": {
42-
"test": "grunt test"
40+
"test": "jshint js test && mocha",
41+
"build": "uglifyjs js/md5.js -c -m > js/md5.min.js",
42+
"preversion": "npm test",
43+
"version": "npm run build && git add -A js",
44+
"postversion": "git push origin master --tags && npm publish"
4345
},
44-
"main": "js/md5.js"
46+
"main": "js/md5.js",
47+
"jshintConfig": {
48+
"bitwise": true,
49+
"curly": true,
50+
"eqeqeq": true,
51+
"forin": true,
52+
"freeze": true,
53+
"immed": true,
54+
"latedef": true,
55+
"newcap": true,
56+
"noarg": true,
57+
"noempty": true,
58+
"nonbsp": true,
59+
"nonew": true,
60+
"quotmark": true,
61+
"undef": true,
62+
"unused": true,
63+
"strict": true
64+
}
4565
}

test/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML>
22
<!--
33
/*
4-
* JavaScript MD5 Test 1.1.0
4+
* JavaScript MD5 Test
55
* https://github.com/blueimp/JavaScript-MD5
66
*
77
* Copyright 2011, Sebastian Tschan
@@ -19,11 +19,11 @@
1919
<meta charset="utf-8">
2020
<title>JavaScript MD5 Test</title>
2121
<meta name="viewport" content="width=device-width, initial-scale=1.0">
22-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.2.5/mocha.min.css">
22+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.3.4/mocha.min.css">
2323
</head>
2424
<body>
2525
<div id="mocha"></div>
26-
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.2.5/mocha.min.js"></script>
26+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.3.4/mocha.min.js"></script>
2727
<script src="https://cdnjs.cloudflare.com/ajax/libs/expect.js/0.2.0/expect.min.js"></script>
2828
<script>
2929
mocha.setup('bdd');

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* JavaScript MD5 Test 1.0.1
2+
* JavaScript MD5 Test
33
* https://github.com/blueimp/JavaScript-MD5
44
*
55
* Copyright 2011, Sebastian Tschan
@@ -9,7 +9,7 @@
99
* http://www.opensource.org/licenses/MIT
1010
*/
1111

12-
/*global describe, it, expect, require */
12+
/*global describe, it, require */
1313

1414
(function (expect, md5) {
1515
'use strict';

0 commit comments

Comments
 (0)