-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfiles4build.js
85 lines (80 loc) · 1.94 KB
/
files4build.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
/* The Arrays contains all libraries
that are included in the 'build.js' call
with 'npm run build'
*/
const getLibs4Build = function (pLibPath) {
var vLibs4Build = [
'./src/npm_header.js',
//pLibPath+'require_mods.js',
//pLibPath+'arrayhash.js',
//pLibPath+'handlebars.js',
//pLibPath+'handlebars_helpers.js',
//'./src/npm_inherit.js',
pLibPath+'exportmod.js'
//'./dist/print.js'
];
return vLibs4Build;
}
const getHtml4Build = function (pPath,pBody) {
var vBody = pBody || pPath+'body.html';
var vArray = [
pPath+'header.html',
//'./src/html_title.html',
pPath+'title.html',
pPath+'datajson.html',
pPath+'headerlibs.html',
pPath+'headerscript.html',
pPath+'bodyheader.html',
'./src/html_description.html',
vBody,
pPath+'bodytail.html',
'./src/html_tail.html',
pPath+'tailscript.html',
pPath+'tail.html'
];
return vArray;
}
const getCss4Build = function (pPath) {
var vArray = [
//pPath+'bootstrap.css',
pPath+'wiki2reveal.css'
];
return vArray;
}
const getReadme4Build = function (pPath) {
var vArray = [
// './src/readme_header.md',
pPath+'abstract.md',
pPath+'headerintro.md',
pPath+'doctoc.md',
pPath+'demos.md',
//'./src/readme_install.md',
pPath+'installation.md',
pPath+'usage.md',
pPath+'scanfiles.md',
pPath+'wikiversity.md',
pPath+'background.md',
/*
pPath+'handlebars4code.md',
pPath+'headerlibs.md',
pPath+'headerscript.md',
pPath+'bodyheader.md',
pPath+'body.md',
pPath+'bodytail.md',
*/
//pPath+'jsonschema.md',
pPath+'build_process.md',
pPath+'browserify.md',
pPath+'acknowledgement.md',
'./src/readme_devlibs.md',
'./src/readme_tail.md',
pPath+'tail.md'
];
return vArray;
}
module.exports = {
"getLibs4Build" : getLibs4Build,
"getHtml4Build" : getHtml4Build,
"getCss4Build" : getCss4Build,
"getReadme4Build" : getReadme4Build
}