-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
98 lines (84 loc) · 2.6 KB
/
app.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
const path = require('path');
require('apostrophe')({
shortName: 'app',
baseUrl: process.env.APP_BASE_URL || null,
modules: {
// Apostrophe module configuration
// Note: most configuration occurs in the respective
// modules' directories. See lib/@apostrophecms/assets/index.js for an example.
// However any modules that are not present by default in Apostrophe must at
// least have a minimal configuration here to turn them on: `moduleName: {}`
// If a template is not found somewhere else, serve it from the top-level
// `views/` folder of the project
'@corllete/apos-ds': {
options: {
enabled: true,
modules: [ 'myui' ]
},
// override the docs top category so doc stories are not shown in category lists
// all subcategory lists will be autmatically disabled as well
categories: {
add: {
'ds-docs': {
label: 'Docs',
list: false
}
}
}
},
'@corllete/apos-ds-page-type': {
options: {
docs: true,
// Set how the index behaves - show a button story by id
// home: 'atoms-buttons-button'
// We don't have a plan how to render e.g. JSON from nunjucks
// because the new code parser is not allowing evaluation of nunjucks.
// We stick with legacy for now, and we might need to introduce another custom tag.
legacyCodeBlocks: false,
// Disable the release ID (see apos docs)
useReleaseId: false
}
},
'@apostrophecms/template': {
options: {
viewsFolderFallback: path.join(__dirname, 'views')
}
},
// Custom CSS classes for standard apostrophe widgets
'@apostrophecms/rich-text-widget': {
options: {
className: 'bp-rich-text'
}
},
'@apostrophecms/image-widget': {
options: {
className: 'bp-image-widget'
}
},
'@apostrophecms/video-widget': {
options: {
className: 'bp-video-widget'
}
},
// Manages apostrophe's overall asset pipeline
'@apostrophecms/asset': {
// When not in production, refresh the page on restart
options: {
refreshOnRestart: true
}
},
'@apostrophecms/express': {
options: {
session: {
// If this still says `undefined`, set a real secret!
secret: 'wndfGxffCv9tiwUbXVfRBBjsXY7CfFwC'
}
}
},
// A home for our own project-specific javascript and SASS assets
asset: {},
'default-page': {},
// Our UI components, documented by the design system
myui: {}
}
});