This repository has been archived by the owner on May 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_config-default.js
126 lines (121 loc) · 3.6 KB
/
_config-default.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
// Set the NODE_ENV when calling your gulp task
// export NODE_ENV=production
var prodLikeEnvs = ['production', 'staging'];
module.exports = {
// File system
BasePath: _BASE_PATH,
SrcPath: _BASE_PATH + _SRC_DIR,
BuildPath: _BASE_PATH + _BUILD_DIR,
sassPath: _SRC_PATH + _SASS_DIR,
// Plugins options
sass: { // https://github.com/sass/node-sass#options
errLogToConsole: true,
outputStyle: 'compact', // nested, expanded, compact, compressed
includePaths: []
},
autoprefixer:{
browsers: ['last 2 versions'],
cascade: false
},
// unused
mqpacker: {
sort: true
},
// En test
doiuse: {
browsers:['ie >= 11'],
ignore: ['rem'], // an optional array of features to ignore
ignoreFiles: ['**/normalize.css'], // an optional array of file globs to match against original source file path, to ignore
onFeatureUsage: function(usageInfo) {
console.log(usageInfo.message);
}
},
sourcemaps:{
path: './',
sourceRoot: '../_scss'
},
fontblast:{
sourceFont: _SRC_PATH + 'assets/fonts/icons/font/icons.svg',
glyph: _SRC_PATH + 'assets/fonts/icons/glyph.scss',
destPath: _BUILD_PATH + 'fontblast/',
cleanAfter: false
},
svgSprite: {
sourcesPath: _SRC_PATH + 'assets/svg/',
spriteDest: _BASE_PATH ,
svgoPlugins: {
plugins: [ // https://github.com/svg/svgo#what-it-can-do
{
removeViewBox: false
},
{
removeStyleElement: true
},
{
cleanupIDs: false
}
]
},
options: { // https://www.npmjs.com/package/gulp-svg-sprites#options
mode: "symbols", // sprite|defs|symbols
common: "icon",
selector: "%f",
layout: "vertical", // horizontal|diagonal
svgId: "%f",
cssFile: _SRC_DIR + _SASS_DIR + "_sprite.scss", // Only in sprite mode
baseSize: 64,
templates: {
scss: require("fs").readFileSync("gulp-tasks/tmpl/sprite.scss", "utf-8"),
},
// Custom files names & path relative to spriteDest
svg: {
symbols: _BUILD_DIR + "assets/images/symbols.svg"
},
preview: { // or false
symbols: _SRC_DIR + "templates/symbols_demo.twig"
}
}
},
// https://marked.js.org/#/USING_ADVANCED.md
markedConfig: {
// highlight: function (code) {
// return require('highlight.js').highlightAuto(code).value;
// },
baseUrl: null, // A prefix url for any relative link
gfm: true, // Enable GitHub flavored markdown.
tables: true, // Enable GFM tables. This option requires the gfm option to be true.
breaks: false, // Enable GFM line breaks. This option requires the gfm option to be true.
pedantic: false,
sanitize: false, // Sanitize the output. Ignore any HTML that has been input.
smartLists: true,
smartypants: false // Use "smart" typograhic punctuation for things like quotes and dashes.
},
frontmatterConfig: {
language:'yaml',
delimiters:'---' // Default
},
nunjuks:{
defaultTemplatesPath: _SRC_PATH + _TEMPLATES_DIR,
searchPaths: [
_SRC_PATH + _TEMPLATES_DIR,
_SRC_PATH + _IMG_DIR
],
templateExt: '.njk',
options: {
autoescape:false,
throwOnUndefined: false
}
},
bundleConfig:{
dest: '',
// précéder le path de l'url de prod pour que les chemins soit correct
// y compris quand on parcour l'arborescence des pages
// pathPrefix: 'http:localhost:3000/',
pathPrefix: '/',
fileName: 'bundle.result'
},
bundle: {
},
copy: [
]
};