-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
76 lines (67 loc) · 2.2 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
'use strict';
let path = require('path');
let _ = require('lodash');
let defaults = {
lib: path.join(__dirname, 'node_modules'),
base: path.join(__dirname, 'dist'),
title: 'djantaJS | The most easiest, faster and strong micro-service platform',
google: {
tracking: {
tid: ''
}
}
};
module.exports = {
build: {
dist: defaults.dist,
rootDir: 'build',
release: 'dist',
assets: 'dist/assets'
},
minify: {
//collapseWhitespace: true,
//removeEmptyAttributes: true
},
vandors: {
files: _.map(['mustache'], file => path.resolve(defaults.lib, file))
},
copy: {
faulker: [
{ from: './resources/themes/resources/faulkner/1.0.5/css/', to: './assets/css/[name].[ext]', test: /([^/]+)\/(.+)\.css/},
{ from: './resources/themes/resources/faulkner/1.0.5/fonts/', to: './assets/fonts/[name].[ext]' },
{ from: './resources/themes/resources/faulkner/1.0.5/js/', to: './assets/js/[name].[ext]' }
]
},
site: {
head: {
title: defaults.title,
metas: [
{ property: 'og:type', content: 'website' },
{ charset: 'UTF-8' },
{ content: 'width=device-width,initial-scale=1.0,maximum-scale=1.0', name: 'viewport' },
{ property: 'og:title', content: 'djantaJS | Micro-Service platform' },
{ property: 'og:url', content: 'https://djantajs.io' },
{ property: 'og:image', content: 'https://djantajs.io/assets/images/djantajs/logo.jpg' },
{ property: 'og:description', content: defaults.title },
{ name: 'twitter:widgets:theme', content: 'light' }
],
links: [
{ rel: 'shortcut icon', type: 'image/x-icon', href: 'assets/images/theme-mountain-favicon.ico' },
{ href: 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700%7CHind+Madurai:400,500&subset=latin-ext', rel:'stylesheet' },
{ rel: 'stylesheet', href: 'assets/css/core.min.css' },
{ rel: 'stylesheet', href: 'assets/css/skin.css' },
],
scripts: []
},
pages: [
{
name: 'index.html',
file: './resources/template/resources/faulkner/1.0.5/default.mustache',
engine: 'mustache'
}
]
},
karma: {
config: 'karma.conf.js'
}
};