better organization for blank package

This commit is contained in:
Sacha Greif 2015-01-01 18:47:11 +09:00
parent f2e20f9baf
commit f4a01f90e2
5 changed files with 113 additions and 24 deletions

View file

@ -13,24 +13,3 @@ var customProperty = {
}
}
addToPostSchema.push(customProperty);
// Custom Setting
var customSetting = {
propertyName: 'customSetting',
propertySchema: {
type: String,
optional: true,
autoform: {
group: 'customGroup', // assign custom group (fieldset) in Settings form
private: true // mark as private (not published to client)
}
}
}
addToSettingsSchema.push(customSetting);
// Global Function
myFunction = function (a, b) {
return a + b;
}

View file

@ -0,0 +1,88 @@
// ------------------------------------------------------------------------------------------- //
// -------------------------------------- Subscriptions -------------------------------------- //
// ------------------------------------------------------------------------------------------- //
// add a subscription to be preloaded before the rest of the app
preloadSubscriptions.push('');
// ------------------------------------------------------------------------------------------- //
// ------------------------------------------- Nav ------------------------------------------- //
// ------------------------------------------------------------------------------------------- //
// add templates to the primary nav bar
primaryNav.push({
template: '',
order: 99
});
// add templates to the secondary nav bar
secondaryNav.push({
template: '',
order: 99
});
// add items to the view menu
viewNav.push({
route: '',
label: '',
description: ''
});
// add items to the admin menu
adminNav.push({
route: '',
label: '',
description: ''
});
// ------------------------------------------------------------------------------------------- //
// ------------------------------------------ Zones ------------------------------------------ //
// ------------------------------------------------------------------------------------------- //
// add templates to the hero zone (before posts list)
heroModules.push({
template: '',
order: 99
});
// add templates to the footer (after posts list)
footerModules.push({
template: '',
order: 99
});
// ------------------------------------------------------------------------------------------- //
// ------------------------------------------ Posts ------------------------------------------ //
// ------------------------------------------------------------------------------------------- //
// add templates to the post items
postModules.push({
template: '',
order: 99
});
// add templates to the post heading zone
postHeading.push({
template: '',
order: 99
});
// add templates to the post meta zone
postMeta.push({
template: '',
order: 99
});
// ------------------------------------------------------------------------------------------- //
// -------------------------------------- User Profiles -------------------------------------- //
// ------------------------------------------------------------------------------------------- //
userProfileDisplay.push({
template: '',
order: 99
});
userProfileEdit.push({
template: '',
order: 99
});

View file

@ -0,0 +1,5 @@
// Global Function
myFunction = function (a, b) {
return a + b;
}

View file

@ -0,0 +1,14 @@
// Custom Setting
var customSetting = {
propertyName: 'customSetting',
propertySchema: {
type: String,
optional: true,
autoform: {
group: 'customGroup', // assign custom group (fieldset) in Settings form
private: true // mark as private (not published to client)
}
}
}
addToSettingsSchema.push(customSetting);

View file

@ -48,8 +48,11 @@ Package.onUse(function (api) {
// both
api.add_files([
'lib/both.js',
'lib/routes.js'
'lib/custom_fields.js',
'lib/hooks.js',
'lib/main.js',
'lib/routes.js',
'lib/settings.js'
], ['client', 'server']);
// client