Permalink
Browse files

Fixed misc. issues with Meteor integration (fixes #34)

Remove `meteor/runtime.js` symlink and just have `meteor/package.js` locate it
Temporarily add `node_modules` directory to `meteor` until smart package is added to Meteor
Post install script now installs symlink for entire Blade library into `node_modules` directory
Push to 1.3.5
  • Loading branch information...
1 parent 9ff8b25 commit 93fd3b4726f57373b802077a91de718931e0d5af @bminer committed Jun 12, 2012
Showing with 5 additions and 4 deletions.
  1. +1 −0 meteor/node_modules/blade
  2. +2 −1 meteor/package.js
  3. +0 −1 meteor/runtime.js
  4. +2 −2 package.json

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,5 +1,6 @@
var path = require('path');
var blade = require('blade');
+var runtimePath = path.dirname(require.resolve('blade')) + "/runtime.js";
Package.describe({
summary: "Blade - HTML Template Compiler, inspired by Jade & Haml"
@@ -78,7 +79,7 @@ Package.register_extension("blade", function(bundle, srcPath, servePath, where)
Package.on_use(function(api) {
//The plain-old Blade runtime
- api.add_files('runtime.js', 'client');
+ api.add_files(runtimePath, 'client');
//The Blade runtime with overridden loadTemplate function, designed for Meteor
api.add_files('runtime-meteor.js', 'client');
});
View
View
@@ -13,7 +13,7 @@
"jade",
"haml"
],
- "version": "1.3.4",
+ "version": "1.3.5",
"homepage": "https://github.com/bminer/node-blade",
"repository": {
"url": "https://github.com/bminer/node-blade"
@@ -37,7 +37,7 @@
"pretest": "./lib/parser/build.sh",
"test": "node ./test/test.js",
"prepublish": "./lib/parser/build.sh; ./dist/build.sh",
- "postinstall": "ln -s ../lib/runtime.js ./meteor/runtime.js"
+ "postinstall": "ln -s ../.. ./meteor/node_modules/blade"
},
"contributors": [
"Michel Löhr (https://github.com/mlohr)"

0 comments on commit 93fd3b4

Please sign in to comment.