forked from issacting93/reaction-paypal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
64 lines (55 loc) · 1.77 KB
/
package.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Package.describe({
summary: "Reaction Paypal - PayPal payments for Reaction Commerce",
name: "reactioncommerce:reaction-paypal",
version: "1.2.3",
git: "https://github.com/reactioncommerce/reaction-paypal.git"
});
Npm.depends({
'paypal-rest-sdk': '1.6.1'
});
Package.onUse(function (api, where) {
api.versionsFrom('METEOR@1.2');
// meteor base packages
api.use("standard-minifiers");
api.use("mobile-experience");
api.use("meteor-base");
api.use("mongo");
api.use("blaze-html-templates");
api.use("session");
api.use("jquery");
api.use("tracker");
api.use("logging");
api.use("reload");
api.use("random");
api.use("ejson");
api.use("spacebars");
api.use("check");
// meteor add-on packages
api.use("less");
api.use("http");
api.use("reactioncommerce:core@0.9.2");
api.addFiles([
"server/register.js", // register as a reaction package
"server/browserPolicy.js", // set browser policy to allow PayPal scripts and images
"server/methods/express.js", // server methods for express checkout
"server/methods/payflow.js" // server methods for payflow
], "server");
api.addFiles([
"common/collections.js",
"common/router.js",
"lib/paypal.js"
], ["client", "server"]);
api.addFiles([
"client/templates/paypal.less",
"client/templates/settings/settings.html",
"client/templates/settings/settings.js",
"client/templates/dashboard/dashboard.html",
"client/templates/dashboard/dashboard.js",
"client/templates/checkout/checkoutButton.html",
"client/templates/checkout/checkoutButton.js",
"client/templates/checkout/payflowForm.html",
"client/templates/checkout/payflowForm.js",
"client/templates/checkout/paymentForm.html",
"client/templates/checkout/paymentForm.js"
], "client");
});