forked from mozilla/fireplace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
107 lines (103 loc) · 4.44 KB
/
config.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
var config = require('commonplace').config;
var extend = require('node.extend');
var LIB_DEST_PATH = config.LIB_DEST_PATH;
var localConfig = extend(true, {
bowerConfig: {
// Bower configuration for which files to get, and where to put them.
// [Source, excluding bower_components]: [Destination].
'document-register-element/build/document-register-element.max.js': config.LIB_DEST_PATH,
'flipsnap/flipsnap.js': config.LIB_DEST_PATH,
'fxpay/dist/fxpay.min.js': config.LIB_DEST_PATH,
'marketplace-constants/dist/css/collection_colors.styl': 'src/media/css/lib/',
'marketplace-constants/dist/js/collection_colors.js': config.LIB_DEST_PATH,
'marketplace-constants/dist/css/regions.styl': 'src/media/css/lib/',
'marketplace-constants/dist/js/carriers.js': config.LIB_DEST_PATH,
'marketplace-constants/dist/js/regions.js': config.LIB_DEST_PATH,
'marketplace-constants/dist/img/regions/*': 'src/media/img/icons/regions/',
'marketplace-elements/marketplace-elements.js': config.LIB_DEST_PATH,
'marketplace-elements/marketplace-elements.styl': 'src/media/css/',
'salvattore-moox/dist/salvattore.js': config.LIB_DEST_PATH,
},
cssBundles: {
'splash.css': ['splash.styl.css']
},
cssExcludes: ['splash.styl.css'],
requireConfig: {
// RequireJS configuration for development, notably files in lib/.
// [Module name]: [Module path].
paths: {
'carriers': 'lib/carriers',
'collection_colors': 'lib/collection_colors',
'document-register-element': 'lib/document-register-element.max',
'flipsnap': 'lib/flipsnap',
'fxpay': 'lib/fxpay.min',
'marketplace-elements': 'lib/marketplace-elements',
'regions': 'lib/regions',
'salvattore': 'lib/salvattore',
},
shim: {
'document-register-element': {
'exports': 'window.document.registerElement'
},
'flipsnap': {
'exports': 'Flipsnap'
},
'marketplace-elements': {
'exports': 'window.document.registerElement',
'deps': ['document-register-element'],
},
'salvattore': {
'exports': 'salvattore'
}
}
},
BOWER_PATH: config.BOWER_PATH || 'bower_components/',
PORT: 8675,
packageConfig: {
'prod': {
domain: 'https://marketplace.firefox.com',
media_url: 'https://marketplace.cdn.mozilla.net/media/',
name: 'Marketplace',
origin: 'app://packaged.marketplace.firefox.com',
iframe_origin: 'app://marketplace.firefox.com'
},
'dev': {
domain: 'https://marketplace-dev.allizom.org',
media_url: 'https://marketplace-dev.mozflare.net/media/',
name: 'Dev',
origin: 'app://packaged.marketplace-dev.allizom.org',
iframe_origin: 'app://marketplace-dev.allizom.org'
},
'stage': {
domain: 'https://marketplace.allizom.org',
media_url: 'https://marketplace-stage.cdn.mozilla.net/media/',
name: 'Stage',
origin: 'app://packaged.marketplace.allizom.org',
iframe_origin: 'app://marketplace.allizom.org'
},
'altdev': {
domain: 'https://marketplace-altdev.allizom.org',
media_url: 'https://marketplace-altdev-cdn.allizom.org/media/',
name: 'AltDev',
origin: 'app://packaged.marketplace-altdev.allizom.org',
iframe_origin: 'app://marketplace-altdev.allizom.org'
},
'paymentsalt': {
domain: 'https://payments-alt.allizom.org',
media_url: 'https://payments-alt-cdn.allizom.org/media/',
name: 'PaymentsAlt',
origin: 'app://packaged.payments-alt.allizom.org',
iframe_origin: 'app://payments-alt.allizom.org'
},
'feeddev': {
domain: 'https://marketplace-feed-dev.allizom.org',
media_url: 'https://marketplace-feed-dev.allizom.org/media/',
name: 'FeedDev',
origin: 'app://packaged.marketplace-feed-dev.allizom.org',
iframe_origin: 'app://marketplace-feed-dev.allizom.org'
}
}
}, config);
localConfig.inlineRequireConfig = config.makeInlineRequireConfig(
localConfig.requireConfig);
module.exports = localConfig;