Skip to content

Commit 8e38f69

Browse files
committed
Add license field to package definition(s).
1 parent 587fd7c commit 8e38f69

File tree

4 files changed

+11
-41
lines changed

4 files changed

+11
-41
lines changed

Gruntfile.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,6 @@ module.exports = function (grunt) {
3535
src: ['test/test.js']
3636
}
3737
},
38-
mocha: {
39-
all: {
40-
src: ['test/index.html'],
41-
options: {
42-
run: true,
43-
bail: true,
44-
log: true,
45-
reporter: 'Spec'
46-
},
47-
mocha: {
48-
ignoreLeaks: false
49-
}
50-
}
51-
},
5238
uglify: {
5339
production: {
5440
src: [
@@ -61,11 +47,10 @@ module.exports = function (grunt) {
6147

6248
grunt.loadNpmTasks('grunt-contrib-jshint');
6349
grunt.loadNpmTasks('grunt-simple-mocha');
64-
grunt.loadNpmTasks('grunt-mocha');
6550
grunt.loadNpmTasks('grunt-contrib-uglify');
6651
grunt.loadNpmTasks('grunt-bump-build-git');
6752

68-
grunt.registerTask('test', ['jshint', 'simplemocha', 'mocha']);
53+
grunt.registerTask('test', ['jshint', 'simplemocha']);
6954
grunt.registerTask('default', ['test', 'uglify']);
7055

7156
};

bower.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blueimp-tmpl",
3-
"version": "2.5.4",
3+
"version": "2.5.5",
44
"title": "JavaScript Templates",
55
"description": "< 1KB lightweight, fast & powerful JavaScript templating engine with zero dependencies. Compatible with server-side environments like node.js, module loaders like RequireJS and all web browsers.",
66
"keywords": [
@@ -24,12 +24,7 @@
2424
"url": "git://github.com/blueimp/JavaScript-Templates.git"
2525
},
2626
"bugs": "https://github.com/blueimp/JavaScript-Templates/issues",
27-
"licenses": [
28-
{
29-
"type": "MIT",
30-
"url": "http://www.opensource.org/licenses/MIT"
31-
}
32-
],
27+
"license": "MIT",
3328
"main": "js/tmpl.js",
3429
"ignore": [
3530
"/*.*",

package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blueimp-tmpl",
3-
"version": "2.5.4",
3+
"version": "2.5.5",
44
"title": "JavaScript Templates",
55
"description": "< 1KB lightweight, fast & powerful JavaScript templating engine with zero dependencies. Compatible with server-side environments like node.js, module loaders like RequireJS and all web browsers.",
66
"keywords": [
@@ -24,19 +24,13 @@
2424
"url": "git://github.com/blueimp/JavaScript-Templates.git"
2525
},
2626
"bugs": "https://github.com/blueimp/JavaScript-Templates/issues",
27-
"licenses": [
28-
{
29-
"type": "MIT",
30-
"url": "http://www.opensource.org/licenses/MIT"
31-
}
32-
],
27+
"license": "MIT",
3328
"devDependencies": {
3429
"grunt": "~0.4.5",
3530
"grunt-contrib-uglify": "~0.5.0",
3631
"grunt-contrib-jshint": "~0.10.0",
3732
"grunt-bump-build-git": "~1.1.1",
3833
"grunt-simple-mocha": "~0.4.0",
39-
"grunt-mocha": "~0.4.11",
4034
"expect.js": "0.3.1"
4135
},
4236
"scripts": {

test/index.html

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,21 @@
1919
<meta charset="utf-8">
2020
<title>JavaScript Templates Test</title>
2121
<meta name="viewport" content="width=device-width, initial-scale=1.0">
22-
<link rel="stylesheet" href="https://blueimp.github.io/cdn/css/mocha.min.css">
22+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.2.5/mocha.min.css">
2323
</head>
2424
<body>
2525
<div id="mocha"></div>
26-
<script src="https://blueimp.github.io/cdn/js/mocha.min.js"></script>
27-
<script src="https://blueimp.github.io/cdn/js/expect.min.js"></script>
26+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.2.5/mocha.min.js"></script>
27+
<script src="https://cdnjs.cloudflare.com/ajax/libs/expect.js/0.2.0/expect.min.js"></script>
2828
<script>
29-
/* global mocha */
3029
mocha.setup('bdd');
3130
</script>
3231
<script type="text/x-tmpl" id="template">{%=o.value%}</script>
3332
<script src="../js/tmpl.js"></script>
3433
<script src="test.js"></script>
3534
<script>
36-
/* global window, mocha */
37-
if (!window.PHANTOMJS) {
38-
mocha.checkLeaks();
39-
mocha.run();
40-
}
35+
mocha.checkLeaks();
36+
mocha.run();
4137
</script>
42-
</body>
38+
</body>
4339
</html>

0 commit comments

Comments
 (0)