Skip to content

Commit

Permalink
bundle script; version 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Nov 6, 2016
1 parent 9d51a06 commit 90edb5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 3 additions & 1 deletion doT.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"use strict";

var doT = {
version: "1.0.3",
version: "1.1.1",
templateSettings: {
evaluate: /\{\{([\s\S]+?(\}?)+)\}\}/g,
interpolate: /\{\{=([\s\S]+?)\}\}/g,
Expand Down Expand Up @@ -38,6 +38,7 @@

_globals = (function(){ return this || (0,eval)("this"); }());

/* istanbul ignore else */
if (typeof module !== "undefined" && module.exports) {
module.exports = doT;
} else if (typeof define === "function" && define.amd) {
Expand Down Expand Up @@ -130,6 +131,7 @@
try {
return new Function(c.varname, str);
} catch (e) {
/* istanbul ignore else */
if (typeof console !== "undefined") console.log("Could not create a template function: " + str);
throw e;
}
Expand Down
8 changes: 1 addition & 7 deletions doT.min.js

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"simple",
"templating"
],
"version": "1.1.0",
"version": "1.1.1",
"main": "index",
"bin": {
"dottojs": "./bin/dot-packer"
Expand All @@ -22,7 +22,9 @@
"scripts": {
"eslint": "if-node-version '>=4' eslint *.js --ignore-pattern *.min.js",
"test-cov": "nyc mocha test/*.test.js",
"test": "npm run eslint && npm run test-cov"
"test": "npm run eslint && npm run test-cov",
"bundle": "uglifyjs doT.js -o doT.min.js -c -m --preamble '/* Laura Doktorova https://github.com/olado/doT */'",
"prepublish": "npm run bundle"
},
"dependencies": {},
"devDependencies": {
Expand Down

0 comments on commit 90edb5d

Please sign in to comment.