Added mocha grunt tasks for both server- (NodeJS) and client-side (Ph… · 1gurucoder/JavaScript-Templates@806d34e · GitHub
Skip to content

Commit 806d34e

Browse files
committed
Added mocha grunt tasks for both server- (NodeJS) and client-side (PhantomJS) tests.
1 parent eb72edb commit 806d34e

7 files changed

Lines changed: 166 additions & 87 deletions

File tree

Gruntfile.js

Lines changed: 71 additions & 0 deletions

Makefile

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

bower.json

Lines changed: 43 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,45 @@
11
{
2-
"name": "blueimp-tmpl",
3-
"version": "2.4.0",
4-
"title": "JavaScript Templates",
5-
"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.",
6-
"keywords": [
7-
"javascript",
8-
"templates",
9-
"templating"
10-
],
11-
"homepage": "https://github.com/blueimp/JavaScript-Templates",
12-
"author": {
13-
"name": "Sebastian Tschan",
14-
"url": "https://blueimp.net"
15-
},
16-
"maintainers": [
17-
{
18-
"name": "Sebastian Tschan",
19-
"url": "https://blueimp.net"
20-
}
21-
],
22-
"repository": {
23-
"type": "git",
24-
"url": "git://github.com/blueimp/JavaScript-Templates.git"
25-
},
26-
"bugs": "https://github.com/blueimp/JavaScript-Templates/issues",
27-
"licenses": [
28-
{
29-
"type": "MIT",
30-
"url": "http://www.opensource.org/licenses/MIT"
31-
}
32-
],
33-
"devDependencies": {
34-
"mocha": "1.11.0",
35-
"expect.js": "0.2.0",
36-
"uglify-js": "2.3.6"
37-
},
38-
"main": "js/tmpl.js"
2+
"name": "blueimp-tmpl",
3+
"version": "2.5.0",
4+
"title": "JavaScript Templates",
5+
"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.",
6+
"keywords": [
7+
"javascript",
8+
"templates",
9+
"templating"
10+
],
11+
"homepage": "https://github.com/blueimp/JavaScript-Templates",
12+
"author": {
13+
"name": "Sebastian Tschan",
14+
"url": "https://blueimp.net"
15+
},
16+
"maintainers": [
17+
{
18+
"name": "Sebastian Tschan",
19+
"url": "https://blueimp.net"
20+
}
21+
],
22+
"repository": {
23+
"type": "git",
24+
"url": "git://github.com/blueimp/JavaScript-Templates.git"
25+
},
26+
"bugs": "https://github.com/blueimp/JavaScript-Templates/issues",
27+
"licenses": [
28+
{
29+
"type": "MIT",
30+
"url": "http://www.opensource.org/licenses/MIT"
31+
}
32+
],
33+
"devDependencies": {
34+
"mocha": "1.11.0",
35+
"expect.js": "0.2.0",
36+
"uglify-js": "2.3.6"
37+
},
38+
"main": "js/tmpl.js",
39+
"ignore": [
40+
"/*.*",
41+
"css",
42+
"js/demo.js",
43+
"test"
44+
]
3945
}

js/runtime.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* JavaScript Templates Runtime 2.4.0
2+
* JavaScript Templates Runtime 2.4.1
33
* https://github.com/blueimp/JavaScript-Templates
44
*
55
* Copyright 2011, Sebastian Tschan
@@ -29,6 +29,7 @@
2929
"'" : "&#39;"
3030
};
3131
tmpl.encode = function (s) {
32+
/*jshint eqnull:true */
3233
return (s == null ? "" : "" + s).replace(
3334
tmpl.encReg,
3435
function (c) {

js/tmpl.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* JavaScript Templates 2.4.0
2+
* JavaScript Templates 2.4.1
33
* https://github.com/blueimp/JavaScript-Templates
44
*
55
* Copyright 2011, Sebastian Tschan
@@ -66,6 +66,7 @@
6666
"'" : "&#39;"
6767
};
6868
tmpl.encode = function (s) {
69+
/*jshint eqnull:true */
6970
return (s == null ? "" : "" + s).replace(
7071
tmpl.encReg,
7172
function (c) {

js/tmpl.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: 47 additions & 43 deletions

0 commit comments

Comments
 (0)