This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.js
62 lines (58 loc) · 2.15 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
/* Configures component and module upgrade paths. */
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].
// 'isotope/dist/isotope.pkgd.js': config.LIB_DEST_PATH,
'normalize.css/normalize.css': 'src/media/css/',
'js-spatial-navigation/spatial_navigation.js': 'src/media/js/lib/'
},
cssBundles: {
// Arbitrary CSS bundles to create.
// The key is the bundle name, which'll be excluded from the CSS build.
// 'splash.css': ['splash.styl.css']
},
cssExcludes: [
// List of CSS filenames to exclude from CSS build.
// splash.styl.css
],
requireConfig: {
// RequireJS configuration for development, notably files in lib/.
// [Module name]: [Module path].
paths: {
// 'isotope': 'lib/isotope.pkgd',
'lib/spatial_navigation': 'lib/spatial_navigation'
},
shim: {
// 'underscore': { 'exports': '_' }
'lib/spatial_navigation': { 'exports': 'SpatialNavigation' }
}
},
PORT: 8674,
packageConfig: {
'prod': {
domain: 'https://marketplace.firefox.com',
media_url: 'https://marketplace.cdn.mozilla.net/media/',
name: 'Web Apps',
origin: 'app://marketplace.firefox.com'
},
'dev': {
domain: 'https://marketplace-dev.allizom.org',
media_url: 'https://marketplace-dev.allizom.org/media/',
name: 'Dev',
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://marketplace.allizom.org'
}
}
}, config);
localConfig.inlineRequireConfig = config.makeInlineRequireConfig(
localConfig.requireConfig);
module.exports = localConfig;