forked from megastef/reaction-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
executable file
·412 lines (319 loc) · 18.1 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
Package.describe({
summary: "Reaction Commerce Core",
name: "reactioncommerce:core",
version: "0.9.6",
git: "https://github.com/reactioncommerce/reaction-core.git"
});
Npm.depends({
"node-geocoder": "3.0.0"
});
Package.onUse(function (api) {
api.versionsFrom("[email protected]");
// meteor base packages
api.use("meteor-base");
api.use("mongo");
api.use("ecmascript");
api.use("es5-shim");
api.use("blaze-html-templates");
api.use("session");
api.use("jquery");
api.use("tracker");
// meteor add-on packages
api.use("ddp-rate-limiter");
api.use("underscore");
api.use("logging");
api.use("reload");
api.use("random");
api.use("ejson");
api.use("check");
api.use("less");
api.use("http");
api.use("reactive-var");
api.use("email");
api.use("browser-policy");
api.use("service-configuration");
api.use("[email protected]");
// meteor authentication packages
api.use("oauth-encryption");
api.use("accounts-base");
api.use("accounts-password");
// community packages
api.use("mquandalle:[email protected]");
api.use("underscorestring:[email protected]");
api.use("ongoworks:[email protected]");
api.use("reactioncommerce:[email protected]");
api.use("aldeed:[email protected]", "client");
api.use("aldeed:[email protected]");
api.use("iron:[email protected]");
api.use("ongoworks:[email protected]");
api.use("alanning:[email protected]");
api.use("ongoworks:[email protected]");
api.use("momentjs:[email protected]");
api.use("risul:[email protected]");
api.use("utilities:[email protected]", "client");
api.use("utilities:[email protected]");
api.use("meteorhacks:[email protected]");
// imply exports package vars
api.imply("less");
api.imply("amplify");
api.imply("accounts-base");
api.imply("ecmascript");
api.imply("es5-shim");
api.imply("browser-policy");
api.imply("service-configuration");
api.imply("reactioncommerce:reaction-collections");
api.imply("ongoworks:security");
api.imply("aldeed:autoform");
api.imply("aldeed:template-extension");
api.imply("iron:router");
api.imply("alanning:roles");
api.imply("momentjs:moment");
api.imply("utilities:spin", ["client"]);
api.imply("utilities:avatar");
api.imply("meteorhacks:ssr");
// reaction core dependencies
api.addFiles("lib/bower.json", "client");
api.addFiles("lib/bower/jquery.ui/ui/core.js", "client");
api.addFiles("lib/bower/jquery.ui/ui/widget.js", "client");
api.addFiles("lib/bower/jquery.ui/ui/mouse.js", "client");
api.addFiles("lib/bower/jquery.ui/ui/position.js", "client");
api.addFiles("lib/bower/jquery.ui/ui/autocomplete.js", "client");
api.addFiles("lib/bower/jquery.ui/ui/sortable.js", "client");
api.addFiles("lib/bower/jquery.ui/ui/draggable.js", "client");
api.addFiles("lib/bower/jquery.ui/ui/droppable.js", "client");
api.addFiles("lib/bower/jquery.ui/ui/effect.js", "client");
api.addFiles("lib/bower/jquery.ui/ui/effect-slide.js", "client");
api.addFiles("lib/bower/jquery.ui/ui/menu.js", "client");
api.addFiles("lib/bower/autosize/dist/autosize.js", "client");
api.addFiles("lib/bower/openexchangerates.accounting/accounting.min.js", "client");
api.addFiles("lib/bower/openexchangerates.money/money.js", "client");
api.addFiles("lib/bower/jquery.tagsinput/dist/jquery.tagsinput.min.css", "client");
api.addFiles("lib/css/jquery-ui.css", "client");
api.addFiles("lib/geocoder.js", ["server"]);
// exports
api.addFiles("common/global.js");
// init reaction core
api.addFiles("client/main.js", "client");
api.addFiles("server/main.js", "server");
api.addFiles("server/register.js", "server");
api.addFiles("common/common.js");
// Private fixture data
api.addAssets("private/data/Products.json", "server");
api.addAssets("private/data/Shops.json", "server");
api.addAssets("private/data/Tags.json", "server");
// i18n translations
api.addAssets("private/data/i18n/ar.json", "server");
api.addAssets("private/data/i18n/cn.json", "server");
api.addAssets("private/data/i18n/cs.json", "server");
api.addAssets("private/data/i18n/de.json", "server");
api.addAssets("private/data/i18n/en.json", "server");
api.addAssets("private/data/i18n/el.json", "server");
api.addAssets("private/data/i18n/es.json", "server");
api.addAssets("private/data/i18n/fr.json", "server");
api.addAssets("private/data/i18n/he.json", "server");
api.addAssets("private/data/i18n/hr.json", "server");
api.addAssets("private/data/i18n/hu.json", "server");
api.addAssets("private/data/i18n/it.json", "server");
api.addAssets("private/data/i18n/my.json", "server");
api.addAssets("private/data/i18n/nl.json", "server");
api.addAssets("private/data/i18n/pl.json", "server");
api.addAssets("private/data/i18n/pt.json", "server");
api.addAssets("private/data/i18n/ru.json", "server");
api.addAssets("private/data/i18n/sl.json", "server");
api.addAssets("private/data/i18n/sv.json", "server");
api.addAssets("private/data/i18n/tr.json", "server");
api.addAssets("private/data/i18n/vi.json", "server");
// import fixture data
api.addFiles("server/import.js", "server");
api.addFiles("server/fixtures.js", "server");
// security
api.addFiles("server/browserPolicy.js", "server");
api.addFiles("server/security.js", "server");
// cron jobs
api.addFiles("server/jobs.js", "server");
// common
api.addFiles("common/router.js");
api.addFiles("common/methods/layout.js");
api.addFiles("common/methods/workflow.js");
api.addFiles("common/methods/cart.js");
// publications
api.addFiles("server/publications/sessions.js", "server");
api.addFiles("server/publications/shops.js", "server");
api.addFiles("server/publications/cart.js", "server");
api.addFiles("server/publications/media.js", "server");
api.addFiles("server/publications/orders.js", "server");
api.addFiles("server/publications/packages.js", "server");
api.addFiles("server/publications/products.js", "server");
api.addFiles("server/publications/translations.js", "server");
// methods
api.addFiles("server/methods/cart.js", "server");
api.addFiles("server/methods/orders.js", "server");
api.addFiles("server/methods/products.js", "server");
api.addFiles("server/methods/shipping.js", "server");
api.addFiles("server/methods/shop.js", "server");
// method hooks
api.addFiles("server/methods/hooks/hooks.js");
api.addFiles("server/methods/hooks/cart.js", "server");
// Email Templates
api.addAssets("server/emailTemplates/orders/itemsShipped.html", "server");
// client
api.addFiles("client/subscriptions.js", "client");
api.addFiles("client/helpers/layout.js", "client");
api.addFiles("client/helpers/packages.js", "client");
api.addFiles("client/helpers/cart.js", "client");
api.addFiles("client/helpers/globals.js", "client");
api.addFiles("client/helpers/products.js", "client");
api.addFiles("client/helpers/i18n.js", "client");
api.addFiles("client/helpers/metadata.js", "client");
api.addFiles("client/helpers/permissions.js", "client");
api.addFiles("client/helpers/utilities.js", "client");
api.addFiles("client/components/numericInput/numericInput.html", "client");
api.addFiles("client/components/numericInput/numericInput.js", "client");
api.addFiles("client/templates/layout/layout.html", "client");
api.addFiles("client/templates/layout/layout.js", "client");
api.addFiles("client/templates/layout/header/header.html", "client");
api.addFiles("client/templates/layout/header/header.js", "client");
api.addFiles("client/templates/layout/header/tags/tags.html", "client");
api.addFiles("client/templates/layout/header/tags/tags.js", "client");
api.addFiles("client/templates/layout/header/i18n/i18n.html", "client");
api.addFiles("client/templates/layout/header/i18n/i18n.js", "client");
api.addFiles("client/templates/layout/header/brand/brand.html", "client");
api.addFiles("client/templates/layout/footer/footer.html", "client");
api.addFiles("client/templates/layout/alerts/bootstrapAlerts.js", "client");
api.addFiles("client/templates/layout/alerts/alerts.html", "client");
api.addFiles("client/templates/layout/alerts/alerts.js", "client");
api.addFiles("client/templates/layout/loading/loading.html", "client");
api.addFiles("client/templates/layout/notFound/notFound.html", "client");
api.addFiles("client/templates/layout/notice/unauthorized.html", "client");
api.addFiles("client/templates/layout/notice/shopNotFound.html", "client");
api.addFiles("client/templates/cart/cartDrawer/cartDrawer.html", "client");
api.addFiles("client/templates/cart/cartDrawer/cartDrawer.js", "client");
api.addFiles("client/templates/cart/cartDrawer/cartItems/cartItems.html", "client");
api.addFiles("client/templates/cart/cartDrawer/cartItems/cartItems.js", "client");
api.addFiles("client/templates/cart/cartDrawer/cartSubTotals/cartSubTotals.html", "client");
api.addFiles("client/templates/cart/cartDrawer/cartSubTotals/cartSubTotals.js", "client");
api.addFiles("client/templates/cart/cartIcon/cartIcon.html", "client");
api.addFiles("client/templates/cart/cartIcon/cartIcon.js", "client");
api.addFiles("client/templates/cart/cartPanel/cartPanel.html", "client");
api.addFiles("client/templates/cart/cartPanel/cartPanel.js", "client");
api.addFiles("client/templates/cart/checkout/checkout.html", "client");
api.addFiles("client/templates/cart/checkout/checkout.js", "client");
api.addFiles("client/templates/cart/checkout/header/header.html", "client");
api.addFiles("client/templates/cart/checkout/login/login.html", "client");
api.addFiles("client/templates/cart/checkout/login/login.js", "client");
api.addFiles("client/templates/cart/checkout/progressBar/progressBar.html", "client");
api.addFiles("client/templates/cart/checkout/progressBar/progressBar.js", "client");
api.addFiles("client/templates/cart/checkout/review/review.html", "client");
api.addFiles("client/templates/cart/checkout/review/review.js", "client");
api.addFiles("client/templates/cart/checkout/payment/payment.html", "client");
api.addFiles("client/templates/cart/checkout/payment/methods/cards.html", "client");
api.addFiles("client/templates/cart/checkout/payment/methods/cards.js", "client");
api.addFiles("client/templates/cart/checkout/completed/completed.html", "client");
api.addFiles("client/templates/cart/checkout/completed/completed.js", "client");
api.addFiles("client/templates/cart/checkout/shipping/shipping.html", "client");
api.addFiles("client/templates/cart/checkout/shipping/shipping.js", "client");
api.addFiles("client/templates/cart/checkout/addressBook/addressBook.html", "client");
api.addFiles("client/templates/cart/checkout/addressBook/addressBook.js", "client");
api.addFiles("client/templates/dashboard/console/console.html", "client");
api.addFiles("client/templates/dashboard/console/console.js", "client");
api.addFiles("client/templates/dashboard/console/icon/icon.html", "client");
api.addFiles("client/templates/dashboard/console/icon/icon.js", "client");
api.addFiles("client/templates/dashboard/import/import.html", "client");
api.addFiles("client/templates/dashboard/import/import.js", "client");
api.addFiles("client/templates/dashboard/orders/orders.html", "client");
api.addFiles("client/templates/dashboard/orders/orders.js", "client");
api.addFiles("client/templates/dashboard/orders/orderPage/orderPage.html", "client");
api.addFiles("client/templates/dashboard/orders/orderPage/orderPage.js", "client");
api.addFiles("client/templates/dashboard/orders/orderPage/details/details.html", "client");
api.addFiles("client/templates/dashboard/orders/orderPage/details/details.js", "client");
api.addFiles("client/templates/dashboard/orders/list/ordersList.html", "client");
api.addFiles("client/templates/dashboard/orders/list/ordersList.js", "client");
api.addFiles("client/templates/dashboard/orders/list/items/items.html", "client");
api.addFiles("client/templates/dashboard/orders/list/items/items.js", "client");
api.addFiles("client/templates/dashboard/orders/list/summary/summary.html", "client");
api.addFiles("client/templates/dashboard/orders/list/summary/summary.js", "client");
api.addFiles("client/templates/dashboard/orders/list/pdf/pdf.html", "client");
api.addFiles("client/templates/dashboard/orders/list/pdf/pdf.js", "client");
api.addFiles("client/templates/dashboard/orders/widget/widget.html", "client");
api.addFiles("client/templates/dashboard/orders/widget/widget.js", "client");
api.addFiles("client/templates/dashboard/orders/details/detail.html", "client");
api.addFiles("client/templates/dashboard/orders/details/detail.js", "client");
api.addFiles("client/templates/dashboard/orders/social/orderSocial.html", "client");
api.addFiles("client/templates/dashboard/orders/workflow/workflow.html", "client");
api.addFiles("client/templates/dashboard/orders/workflow/workflow.js", "client");
api.addFiles("client/templates/dashboard/orders/workflow/orderSummary/orderSummary.html", "client");
api.addFiles("client/templates/dashboard/orders/workflow/orderCompleted/orderCompleted.html", "client");
api.addFiles("client/templates/dashboard/orders/workflow/shippingSummary/shippingSummary.html", "client");
api.addFiles("client/templates/dashboard/orders/workflow/shippingSummary/shippingSummary.js", "client");
api.addFiles("client/templates/dashboard/orders/workflow/shippingInvoice/shippingInvoice.html", "client");
api.addFiles("client/templates/dashboard/orders/workflow/shippingInvoice/shippingInvoice.js", "client");
api.addFiles("client/templates/dashboard/orders/workflow/shippingTracking/shippingTracking.html", "client");
api.addFiles("client/templates/dashboard/orders/workflow/shippingTracking/shippingTracking.js", "client");
api.addFiles("client/templates/dashboard/packages/packages.html", "client");
api.addFiles("client/templates/dashboard/packages/grid/package/package.html", "client");
api.addFiles("client/templates/dashboard/packages/grid/package/package.js", "client");
api.addFiles("client/templates/dashboard/packages/grid/grid.html", "client");
api.addFiles("client/templates/dashboard/packages/grid/grid.js", "client");
api.addFiles("client/templates/dashboard/dashboard.html", "client");
api.addFiles("client/templates/dashboard/dashboard.js", "client");
api.addFiles("client/templates/dashboard/settings/settings.html", "client");
api.addFiles("client/templates/dashboard/settings/settings.js", "client");
api.addFiles("client/templates/dashboard/shop/settings/settings.html", "client");
api.addFiles("client/templates/dashboard/shop/settings/settings.js", "client");
// Product Templates
api.addFiles("client/templates/products/products.html", "client");
api.addFiles("client/templates/products/products.js", "client");
api.addFiles("client/templates/products/productList/productList.html", "client");
api.addFiles("client/templates/products/productList/productList.js", "client");
api.addFiles("client/templates/products/productGrid/productGrid.html", "client");
api.addFiles("client/templates/products/productGrid/productGrid.js", "client");
api.addFiles("client/templates/products/productDetail/productDetail.html", "client");
api.addFiles("client/templates/products/productDetail/productDetail.js", "client");
api.addFiles("client/templates/products/productDetail/edit/edit.html", "client");
api.addFiles("client/templates/products/productDetail/edit/edit.js", "client");
api.addFiles("client/templates/products/productDetail/images/productImageGallery.html", "client");
api.addFiles("client/templates/products/productDetail/images/productImageGallery.js", "client");
api.addFiles("client/templates/products/productDetail/tags/tags.html", "client");
api.addFiles("client/templates/products/productDetail/tags/tags.js", "client");
api.addFiles("client/templates/products/productDetail/social/social.html", "client");
api.addFiles("client/templates/products/productDetail/social/social.js", "client");
api.addFiles("client/templates/products/productDetail/variants/variant.html", "client");
api.addFiles("client/templates/products/productDetail/variants/variant.js", "client");
api.addFiles("client/templates/products/productDetail/variants/variantList/variantList.html", "client");
api.addFiles("client/templates/products/productDetail/variants/variantList/variantList.js", "client");
api.addFiles("client/templates/products/productDetail/variants/variantForm/variantForm.html", "client");
api.addFiles("client/templates/products/productDetail/variants/variantForm/variantForm.js", "client");
api.addFiles("client/templates/products/productDetail/variants/variantForm/childVariant/childVariant.html", "client");
api.addFiles("client/templates/products/productDetail/variants/variantForm/childVariant/childVariant.js", "client");
api.addFiles("client/templates/products/productDetail/attributes/attributes.html", "client");
api.addFiles("client/templates/products/productDetail/attributes/attributes.js", "client");
api.addFiles("client/templates/products/productSettings/productSettings.html", "client");
api.addFiles("client/templates/products/productSettings/productSettings.js", "client");
// Exports
api.export("ReactionCore");
api.export("ReactionImport");
api.export("ReactionRegistry", "server");
// legacy Exports (TODO: move to ReactionCore)
api.export("Alerts", ["client"]);
api.export("currentProduct", ["client", "server"]);
});
Package.onTest(function (api) {
api.use("underscore");
api.use("random");
api.use("sanjo:[email protected]");
api.use("velocity:[email protected]");
api.use("velocity:[email protected]");
api.use("accounts-base");
api.use("accounts-password");
// reaction core
api.use("reactioncommerce:[email protected]");
api.use("reactioncommerce:[email protected]");
api.use("reactioncommerce:[email protected]");
// server integration tests
api.addFiles("tests/jasmine/server/integration/cart.js", "server");
api.addFiles("tests/jasmine/server/integration/shops.js", "server");
api.addFiles("tests/jasmine/server/integration/methods.js", "server");
api.addFiles("tests/jasmine/server/integration/products.js", "server");
api.addFiles("tests/jasmine/server/integration/publications.js", "server");
api.export("faker", ["server"]);
});