Permalink
Browse files

updates

  • Loading branch information...
1 parent 302d030 commit af7cb218bbf4ab4705718ea1bd34b93d01a2033f @heavyk committed Mar 3, 2013
Showing with 8 additions and 14 deletions.
  1. +1 −3 README.md
  2. +6 −1 component_tests.js
  3. +1 −10 package.js
View
@@ -2,9 +2,7 @@
you will need to do some trickery for this to work... that is until they have npm package dependencies built into meteor (it's coming! eventually...) for now, try this:
- npm install component component-builder
- cd node_modules/component && npm link && cd ../..
- cd node_modules/component-builder && npm link && cd ../..
+I am working on a Npm dependency module for meteor... not ready yet though...
# Notes
View
@@ -1,4 +1,9 @@
+
+Meteor.__COMPONENT_PRESENT = require('component/package.json').version;
+Meteor.__COMPONENT_BUILDER_PRESENT = require('component-builder/package.json').version;
+
Tinytest.add("component - presence", function(test) {
- test.isTrue(Meteor.__COMPONENT_PRESENT);
+ test.isTrue(Meteor.__COMPONENT_PRESENT === '0.13.0');
+ test.isTrue(Meteor.__COMPONENT_BUILDER_PRESENT === '0.6.3');
});
View
@@ -19,11 +19,6 @@ const css_path = Path.join(odir, 'build.css');
const js_path = Path.join(odir, 'build.js');
const component_json_path = Path.join(".meteor", "component.json");
-Meteor.__COMPONENT_PRESENT = true;
-// TODO:
-// Meteor.__COMPONENT_PRESENT = require('component/package.json').version;
-// Meteor.__COMPONENT_BUILDER_PRESENT = require('component-builder/package.json').version;
-
try {
fs.mkdirSync(odir);
} catch(e) {}
@@ -203,10 +198,6 @@ Package.register_extension(
}
);
-/*
-//TODO: I'm not yet sure on how to write tests for this. get to it before releasing
Package.on_test(function (api) {
- api.add_files(['component_tests.ls', 'component_tests.js'],
- ['client', 'server']);
+ api.add_files(['component_tests.js'], 'server');
});
-*/

0 comments on commit af7cb21

Please sign in to comment.