Include to Wekan packages directory contents, so that meteor command would build all directly.

This also simplifies build scripts.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2019-04-20 15:18:33 +03:00
parent 6117097a93
commit 73e265d8fd
354 changed files with 36977 additions and 106 deletions

View file

@ -0,0 +1,38 @@
Meteor.publish('foo', function () {
this.ready();
});
Meteor.publish('fooNotReady', function () {
});
Meteor.publish('bar', function () {
this.ready();
});
// use this only to test global subs
Meteor.publish('baz', function () {
this.ready();
});
Meteor.publish('bazNotReady', function () {
});
Meteor.publish('readyness', function (doIt) {
if(doIt) {
this.ready();
}
});
InjectData = Package['meteorhacks:inject-data'].InjectData;
var urlResolve = Npm.require('url').resolve;
GetFRData = function GetFRData(path) {
var url = urlResolve(process.env.ROOT_URL, path);
// FastRender only servers if there is a accept header with html in it
var options = {
headers: {'accept': 'html'}
};
var res = HTTP.get(url, options);
var encodedData = res.content.match(/data">(.*)<\/script/)[1];
return InjectData._decode(encodedData)['fast-render-data'];
}