Move towards NPM for Cornerstone dependencies

This commit is contained in:
Erik Ziegler committed 2017-06-15 09:18:54 +02:00
1 parent 6c98c6a589
commit ddef3c4710
59 files changed
+2435 -29162

No files matched your search

@@ -1,16 +0,0 @@
// Temporary fix to drop all Collections on server restart
// http://stackoverflow.com/questions/23891631/meteor-how-can-i-drop-all-mongo-collections-and-clear-all-data-on-startup
Meteor.startup(() => {
if (Meteor.settings.dropCollections === true) {
console.warn('Dropping all global Collections!');
Object.keys(global).forEach((key) => {
const object = global[key];
if (object instanceof Meteor.Collection) {
if (!(/^server|currentServer$/).test(object._name)) {
console.warn(`Dropping: ${object._debugName || object._name}`);
object.remove({});
}
}
});
}
});