Vulcan/packages/custom/package.js

52 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Package.describe({
summary: 'Telescope custom package use as template for your own packages',
version: '0.1.0',
name: 'my-custom-package'
});
Package.onUse(function (api) {
// ---------------------------------- 1. Core dependency -----------------------------------
api.use("telescope:core");
// ---------------------------------- 2. Files to include ----------------------------------
// i18n config (must come first)
api.addFiles([
'package-tap.i18n'
], ['client', 'server']);
// client & server
api.addFiles([
'lib/custom_fields.js',
'lib/template_modules.js',
'lib/callbacks.js'
], ['client', 'server']);
// client
api.addFiles([
'lib/client/templates/hello.html',
'lib/client/templates/hello.js',
'lib/client/templates/custom_post_title.html',
'lib/client/templates/custom_post_title.js',
'lib/client/stylesheets/custom.scss',
'lib/client/custom_templates.js'
], ['client']);
// server
api.addFiles([
'lib/server/templates/custom_emailPostItem.handlebars'
], ['server']);
// i18n languages (must come last)
api.addFiles([
'i18n/en.i18n.json'
], ['client', 'server']);
});