Skip to content

Commit

Permalink
Packaged for npm
Browse files Browse the repository at this point in the history
  • Loading branch information
adammark committed Aug 27, 2012
1 parent 620cc81 commit e69a6ff
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("./src/markup.js");
27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "markup-js",
"version": "1.5.12",
"description": "Markup.js - Powerful JavaScript Templates",
"homepage": "https://github.com/adammark/Markup.js",
"author": {
"name": "Adam Mark"
},
"files": [
"src/markup.js",
"src/markup.min.js",
"README.md"
],
"keywords": [
"markup",
"template",
"templating",
"html"
],
"repository" : {
"type" : "git",
"url" : "https://github.com/adammark/Markup.js.git"
},
"bugs": {
"url" : "https://github.com/adammark/Markup.js/issues"
}
}
4 changes: 4 additions & 0 deletions src/markup.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,3 +447,7 @@ Mark.pipes = {
return obj;
}
};

if (typeof module !== "undefined" && module.exports) {
module.exports = Mark;
}
2 changes: 1 addition & 1 deletion src/markup.min.js

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

0 comments on commit e69a6ff

Please sign in to comment.