forked from dennisreimann/uiengine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuiengine.config.js
More file actions
71 lines (64 loc) · 2.11 KB
/
uiengine.config.js
File metadata and controls
71 lines (64 loc) · 2.11 KB
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
const breakpoints = require('./src/lib/breakpoints.json')
const pugAdapterOptions = require('./src/lib/pug-adapter-options')
const vueAdapterOptions = require('./src/lib/vue-adapter-options')
module.exports = {
// Project config: Defaults to name and version from package.json.
// Here you can overwrite it and add more custom properties.
name: 'UIengine Sample Project',
version: '1.0.0',
copyright: '<a href="https://github.com/dennisreimann/uiengine">Generated with UIengine</a>',
// Base directories for the input, your raw source files:
// - components is the root of the directory containing the components
// - templates contains the variant preview and application templates
// - pages is the directory of the UIengine's site structure and page markdown files
source: {
components: './src/components',
templates: './src/templates',
entities: './src/uiengine/entities',
pages: './src/uiengine/pages',
data: './src/uiengine/data'
},
// Destination path for the generated site.
target: '../tmp',
// Adapters are used for templating/rendering. Each adapter is a module that gets required
// and needs to provide functions for setup and rendering. For details see the adapters docs.
adapters: {
pug: {
module: '@uiengine/adapter-pug',
options: pugAdapterOptions
},
vue: {
module: '@uiengine/adapter-vue',
options: vueAdapterOptions
},
vhtml: {
module: '@uiengine/adapter-vue',
options: vueAdapterOptions
},
js: '@uiengine/adapter-vue',
jsx: '@uiengine/adapter-react',
hbs: '@uiengine/adapter-handlebars',
marko: '@uiengine/adapter-marko',
html: '@uiengine/adapter-html',
ejs: '@uiengine/adapter-ejs'
},
// Here you can configure the template that the variant preview gets embeded in.
template: 'uiengine.pug',
ui: {
customStylesFile: '/assets/styles/uiengine-custom-styles.css',
themes: [
{
id: 'default',
title: 'Default'
},
{
id: 'funky',
title: 'Funky crazy awesome'
}
],
breakpoints
},
browserSync: {
open: false
}
}