-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
54 lines (50 loc) · 1.72 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
/**
* this file use to define the @paths for @gulpJs file
* contents:
*** @port
*** @root_directory
*** @css_files_and_folders_path
*** @javaScript_files_and_folders_path
*** @docs_path
*** and more
*/
// import @path module
const path = require("path");
// define an empty onject for @settings
let config = {};
/* Start filling the settings object */
config.port = 3000;
config.rootDir = path.join(__dirname, "./");
config.root = config.rootDir;
config.docsSrc = config.rootDir + "docs-src/";
config.docsCssSrc = config.docsSrc + "css/";
config.docsJsSrc = config.docsSrc + "js/";
config.docsSass = config.docsSrc + "scss/";
config.docs = config.rootDir + "docs/";
config.docsCss = config.docs + "css/";
config.docsJs = config.docs + "js/";
config.docsCssFiles = config.docsCss + "**/*.css";
config.docsJsFiles = config.docsJs + "**/*.js";
config.docsSassFiles = config.docsSass + "**/*.s[c|a]ss";
config.docsSassMain = config.docsSass + "style.scss";
config.sassFolder = config.rootDir + "scss/";
config.sassFiles = config.sassFolder + "**/*.scss";
config.sassMain = config.sassFolder + "grid-system.scss";
config.pugFolder = config.docsSrc + "pug/";
config.pugFiles = config.pugFolder + "**/*.pug";
config.pugMain = config.pugFolder + "index.pug";
config.cssFolder = config.rootDir + "css/";
config.jsList = [
"./node_modules/js-cookie/src/js.cookie.js",
"./node_modules/highlightjs/highlight.pack.min.js",
config.docsJsSrc + "script.js",
];
config.cssList = [
"./node_modules/@fortawesome/fontawesome-free/css/all.min.css",
"./node_modules/highlightjs/styles/monokai-sublime.css",
"./css/grid-system.css",
config.docsCssSrc + "style.css",
];
/* End filling the settings object */
// export the settings
module.exports = config;