Note the __
underscores, the extra space before the method name, and the parantheses at the end.
Template.plantsListPage.__helpers[" hasNoContent"]()
# User for local dev | |
FROM app/base | |
RUN npm install -g orion-cli | |
# This forces package-catalog update. Should speed up further runs | |
RUN meteor show meteor-platform |
Note the __
underscores, the extra space before the method name, and the parantheses at the end.
Template.plantsListPage.__helpers[" hasNoContent"]()
http://swizec.com/blog/how-to-run-javascript-tests-in-chrome-on-travis/swizec/6647 |
language: node_js | |
node_js: | |
- "0.10" | |
services: | |
- mongodb | |
sudo: required |
Meteor has a fairly extensive API, and places various objects on the global scope of the browser's Javascript environment, such as Session
, Template
, Collection
, and of course Meteor
. Here is how to test methods on such objects using Nightwatch and the Selenium .execute()
API.
exports.command = function(sessionVarName, expectedValue) {
var client = this;
this
.execute(function(data){
```` | |
meteor admin set-unmigrated clinical:foo | |
```` |
function addComponent(api, name, imports) {
api.addFiles('components/' + name + '/' + name + '.html', 'client');
api.addFiles('components/' + name + '/' + name + '.js', 'client');
api.addFiles('components/' + name + '/' + name + '.styl', 'client');
if(imports) {
api.addFiles('components/' + name + '/skin.import.styl', 'client');
api.addFiles('components/' + name + '/structure.import.styl', 'client');
let remote = DDP.connect(Meteor.settings.public.remote.url); | |
Meteor.connection = remote; | |
Accounts.connection = remote; | |
Meteor.users = new Mongo.Collection('users', remote); | |
Orders = new Mongo.Collection('orders', remote); | |
FlowRouter.subscriptions = function () { | |
this.register('workstation', Meteor.settings.remote.id); |
````js | |
//packages/clinical-router/lib/version_conflict_error.js | |
if (Package['cmather:iron-router']) { | |
throw new Error("\n\n\ | |
Sorry! The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n\ | |
You can see which cmather:iron-{x} packages have been installed by using this command:\n\n\ | |
> meteor list\n\n\ | |
Can you remove any installed cmather:iron-{x} packages like this:\ |
cd examples | |
git clone https://github.com/awatson1978/clinical-scheduling.git | |
git add --all . | |
git submodule init | |
git submodule update | |
git commit -a -m 'added submodules' | |
git push origin master | |
https://github.com/blog/2104-working-with-submodules |