clean-jsdoc-theme 4.1.7 → 4.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +5 -5
- package/.eslintrc.js +3 -3
- package/.github/ISSUE_TEMPLATE/bug_report.md +43 -43
- package/.github/ISSUE_TEMPLATE/feature_request.md +27 -27
- package/.github/dependabot.yml +9 -9
- package/.github/pull_request_template.md +16 -16
- package/.github/workflows/codeql.yml +72 -72
- package/.github/workflows/greetings.yml +16 -16
- package/.prettierignore +1 -2
- package/.prettierrc +5 -5
- package/.stylelintignore +4 -4
- package/.stylelintrc +18 -23
- package/.travis.yml +30 -30
- package/CHANGELOG.md +256 -235
- package/CODE_OF_CONDUCT.md +76 -76
- package/CODE_OF_CONDUCT_HINDI.md +61 -46
- package/CONTRIBUTING.md +36 -24
- package/LICENSE +21 -21
- package/README.md +497 -456
- package/SECURITY.md +21 -21
- package/css.js +124 -0
- package/helpers/down-arrow.js +9 -9
- package/jsdoc-config.json +62 -61
- package/minify.js +60 -56
- package/package.json +52 -50
- package/publish.js +1130 -1129
- package/static/scripts/core.js +662 -656
- package/static/scripts/core.min.js +2 -2
- package/static/scripts/resize.js +90 -90
- package/static/scripts/search.js +262 -262
- package/static/scripts/third-party/Apache-License-2.0.txt +202 -202
- package/static/scripts/third-party/fuse.js +8 -8
- package/static/scripts/third-party/hljs-line-num-original.js +369 -365
- package/static/scripts/third-party/hljs-line-num.js +1 -1
- package/static/scripts/third-party/hljs-original.js +5162 -5162
- package/static/scripts/third-party/popper.js +5 -5
- package/static/scripts/third-party/tippy.js +1 -1
- package/static/scripts/third-party/tocbot.js +672 -1
- package/static/scripts/third-party/tocbot.min.js +1 -0
- package/static/styles/clean-jsdoc-theme-base.css +968 -968
- package/static/styles/clean-jsdoc-theme-dark.css +407 -407
- package/static/styles/clean-jsdoc-theme-light.css +388 -388
- package/tmpl/augments.tmpl +10 -10
- package/tmpl/container.tmpl +190 -190
- package/tmpl/details.tmpl +207 -207
- package/tmpl/example.tmpl +3 -3
- package/tmpl/examples.tmpl +40 -40
- package/tmpl/exceptions.tmpl +32 -32
- package/tmpl/icons.tmpl +72 -72
- package/tmpl/layout.tmpl +157 -157
- package/tmpl/mainpage.tmpl +10 -10
- package/tmpl/members.tmpl +42 -42
- package/tmpl/method.tmpl +139 -139
- package/tmpl/mobile-sidebar.tmpl +20 -20
- package/tmpl/navbar-actions.tmpl +18 -18
- package/tmpl/navbar-menu.tmpl +24 -24
- package/tmpl/navbar.tmpl +13 -13
- package/tmpl/params.tmpl +124 -124
- package/tmpl/properties.tmpl +109 -109
- package/tmpl/returns.tmpl +18 -18
- package/tmpl/search.tmpl +16 -16
- package/tmpl/sidebar-items.tmpl +23 -23
- package/tmpl/sidebar-title.tmpl +9 -9
- package/tmpl/sidebar.tmpl +8 -8
- package/tmpl/source.tmpl +12 -12
- package/tmpl/toc.tmpl +3 -3
- package/tmpl/tutorial.tmpl +19 -19
- package/tmpl/type.tmpl +12 -7
package/SECURITY.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
# Security Policy
|
|
2
|
-
|
|
3
|
-
## Supported Versions
|
|
4
|
-
|
|
5
|
-
Use this section to tell people about which versions of your project are
|
|
6
|
-
currently being supported with security updates.
|
|
7
|
-
|
|
8
|
-
| Version | Supported |
|
|
9
|
-
|
|
10
|
-
| 5.1.x | :white_check_mark: |
|
|
11
|
-
| 5.0.x | :x: |
|
|
12
|
-
| 4.0.x | :white_check_mark: |
|
|
13
|
-
| < 4.0 | :x: |
|
|
14
|
-
|
|
15
|
-
## Reporting a Vulnerability
|
|
16
|
-
|
|
17
|
-
Use this section to tell people how to report a vulnerability.
|
|
18
|
-
|
|
19
|
-
Tell them where to go, how often they can expect to get an update on a
|
|
20
|
-
reported vulnerability, what to expect if the vulnerability is accepted or
|
|
21
|
-
declined, etc.
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
Use this section to tell people about which versions of your project are
|
|
6
|
+
currently being supported with security updates.
|
|
7
|
+
|
|
8
|
+
| Version | Supported |
|
|
9
|
+
|---------|--------------------|
|
|
10
|
+
| 5.1.x | :white_check_mark: |
|
|
11
|
+
| 5.0.x | :x: |
|
|
12
|
+
| 4.0.x | :white_check_mark: |
|
|
13
|
+
| < 4.0 | :x: |
|
|
14
|
+
|
|
15
|
+
## Reporting a Vulnerability
|
|
16
|
+
|
|
17
|
+
Use this section to tell people how to report a vulnerability.
|
|
18
|
+
|
|
19
|
+
Tell them where to go, how often they can expect to get an update on a
|
|
20
|
+
reported vulnerability, what to expect if the vulnerability is accepted or
|
|
21
|
+
declined, etc.
|
package/css.js
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
var fs = require('jsdoc/fs');
|
|
2
|
+
var path = require('jsdoc/path');
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var defaultCSSProps = {
|
|
6
|
+
// Font applied to headings.
|
|
7
|
+
headingFont: 'heading',
|
|
8
|
+
// Font applied to body/normal texts.
|
|
9
|
+
bodyFont: 'body',
|
|
10
|
+
// Font applied to code.
|
|
11
|
+
codeFont: 'code',
|
|
12
|
+
// The background color of selected text on the dark theme.
|
|
13
|
+
darkSelectionBg: '#ffce76',
|
|
14
|
+
// The text color of selected text on the dark theme.
|
|
15
|
+
darkSelectionTextColor: '#222',
|
|
16
|
+
// The background color of the body on the dark theme.
|
|
17
|
+
darkBodyBg: '#1a1a1a',
|
|
18
|
+
// The text color on the dark theme.
|
|
19
|
+
darkBodyTextColor: '#fff',
|
|
20
|
+
// Anchor's color on the dark theme.
|
|
21
|
+
darkAnchorColor: '#00bbff',
|
|
22
|
+
// Horizontal line color on the dark theme.
|
|
23
|
+
darkHrColor: '#222',
|
|
24
|
+
// Heading color on the dark theme.
|
|
25
|
+
darkHeadingColor: '#fff',
|
|
26
|
+
// Sidebar background color on the dark theme.
|
|
27
|
+
darkSidebarBg: '#222',
|
|
28
|
+
// Sidebar text color on the dark theme.
|
|
29
|
+
darkSidebarTextColor: '#999',
|
|
30
|
+
// Sidebar title's color on the dark theme.
|
|
31
|
+
darkSidebarTitleColor: '#999',
|
|
32
|
+
// Sidebar accordion title color on the dark theme.
|
|
33
|
+
darkSidebarAccordionTitleColor: '#999',
|
|
34
|
+
// Sidebar accordion title hover background color on the dark theme.
|
|
35
|
+
darkSidebarAccordionTitleHoverBg: '#252525',
|
|
36
|
+
// Sidebar accordion arrow color on the dark theme.
|
|
37
|
+
darkSidebarAccordionArrowColor: '#999',
|
|
38
|
+
// Sidebar accordion child background on the dark theme.
|
|
39
|
+
darkSidebarAccordionChildBg: '#292929',
|
|
40
|
+
// Sidebar accordion child item color on the dark theme.
|
|
41
|
+
darkSidebarAccordionChildItemColor: '#fff',
|
|
42
|
+
// Sidebar accordion child item hover background on the dark theme.
|
|
43
|
+
darkSidebarAccordionChildItemHoverBg: '#2c2c2c',
|
|
44
|
+
// Navbar background on the dark theme. Make sure it matches with the
|
|
45
|
+
// background color of the body, otherwise it will look a bit odd.
|
|
46
|
+
darkNavbarBg: '#1a1a1a',
|
|
47
|
+
// Icon button color on the dark theme.
|
|
48
|
+
darkIconButtonFillColor: '#999',
|
|
49
|
+
// Navbar item text color on the dark theme.
|
|
50
|
+
darkNavbarItemColor: '#999',
|
|
51
|
+
// Color of the icon on the tooltip for font size on the dark theme.
|
|
52
|
+
darkFontSizeTooltipIconColor: '#fff',
|
|
53
|
+
// Disabled color of the icon on the tooltip for font size on the dark theme.
|
|
54
|
+
darkFontSizeTooltipIconColorWhenDisabled: '#999',
|
|
55
|
+
// Icon button background when hovered on the dark theme.
|
|
56
|
+
darkIconButtonHoverBg: '#333',
|
|
57
|
+
// Icon button background when click is active on the dark theme.
|
|
58
|
+
darkIconButtonActiveBg: '#444',
|
|
59
|
+
// Sidebar on the dark theme.
|
|
60
|
+
darkSidebarColor: '#222',
|
|
61
|
+
// Sidebar on the dark theme.
|
|
62
|
+
darkSidebarColor: '#222',
|
|
63
|
+
// Sidebar on the dark theme.
|
|
64
|
+
darkSidebarColor: '#222',
|
|
65
|
+
// Sidebar on the dark theme.
|
|
66
|
+
darkSidebarColor: '#222',
|
|
67
|
+
// Sidebar on the dark theme.
|
|
68
|
+
darkSidebarColor: '#222',
|
|
69
|
+
// Sidebar on the dark theme.
|
|
70
|
+
darkSidebarColor: '#222',
|
|
71
|
+
// Sidebar on the dark theme.
|
|
72
|
+
darkSidebarColor: '#222',
|
|
73
|
+
// Sidebar on the dark theme.
|
|
74
|
+
darkSidebarColor: '#222',
|
|
75
|
+
// Sidebar on the dark theme.
|
|
76
|
+
darkSidebarColor: '#222',
|
|
77
|
+
// Sidebar on the dark theme.
|
|
78
|
+
darkSidebarColor: '#222',
|
|
79
|
+
// Sidebar on the dark theme.
|
|
80
|
+
darkSidebarColor: '#222',
|
|
81
|
+
// Sidebar on the dark theme.
|
|
82
|
+
darkSidebarColor: '#222',
|
|
83
|
+
// Sidebar on the dark theme.
|
|
84
|
+
darkSidebarColor: '#222',
|
|
85
|
+
// Sidebar on the dark theme.
|
|
86
|
+
darkSidebarColor: '#222',
|
|
87
|
+
// Sidebar on the dark theme.
|
|
88
|
+
darkSidebarColor: '#222',
|
|
89
|
+
// Sidebar on the dark theme.
|
|
90
|
+
darkSidebarColor: '#222',
|
|
91
|
+
// Sidebar on the dark theme.
|
|
92
|
+
darkSidebarColor: '#222',
|
|
93
|
+
// Sidebar on the dark theme.
|
|
94
|
+
darkSidebarColor: '#222',
|
|
95
|
+
// Sidebar on the dark theme.
|
|
96
|
+
darkSidebarColor: '#222',
|
|
97
|
+
// Sidebar on the dark theme.
|
|
98
|
+
darkSidebarColor: '#222',
|
|
99
|
+
// Sidebar on the dark theme.
|
|
100
|
+
darkSidebarColor: '#222',
|
|
101
|
+
// Sidebar on the dark theme.
|
|
102
|
+
darkSidebarColor: '#222',
|
|
103
|
+
// Sidebar on the dark theme.
|
|
104
|
+
darkSidebarColor: '#222',
|
|
105
|
+
// Sidebar on the dark theme.
|
|
106
|
+
darkSidebarColor: '#222',
|
|
107
|
+
// Sidebar on the dark theme.
|
|
108
|
+
darkSidebarColor: '#222',
|
|
109
|
+
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @param {typeof defaultCSSProps} cssProps
|
|
115
|
+
* @returns {string} :root css rule.
|
|
116
|
+
*/
|
|
117
|
+
function mapCSSPropsToCSSVar(cssProps) {
|
|
118
|
+
return ""
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
module.exports = function (outdir) {
|
|
122
|
+
fs.writeFileSync(path.join(outdir, 'new.css'), ":root{ --test-color: #007bff; }")
|
|
123
|
+
|
|
124
|
+
}
|
package/helpers/down-arrow.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const upIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
2
|
-
<path
|
|
3
|
-
fill-rule="evenodd"
|
|
4
|
-
clip-rule="evenodd"
|
|
5
|
-
d="M12.7803 6.21967C13.0732 6.51256 13.0732 6.98744 12.7803 7.28033L8.53033 11.5303C8.23744 11.8232 7.76256 11.8232 7.46967 11.5303L3.21967 7.28033C2.92678 6.98744 2.92678 6.51256 3.21967 6.21967C3.51256 5.92678 3.98744 5.92678 4.28033 6.21967L8 9.93934L11.7197 6.21967C12.0126 5.92678 12.4874 5.92678 12.7803 6.21967Z">
|
|
6
|
-
</path>
|
|
7
|
-
</svg>`;
|
|
8
|
-
|
|
9
|
-
module.exports = upIcon;
|
|
1
|
+
const upIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
2
|
+
<path
|
|
3
|
+
fill-rule="evenodd"
|
|
4
|
+
clip-rule="evenodd"
|
|
5
|
+
d="M12.7803 6.21967C13.0732 6.51256 13.0732 6.98744 12.7803 7.28033L8.53033 11.5303C8.23744 11.8232 7.76256 11.8232 7.46967 11.5303L3.21967 7.28033C2.92678 6.98744 2.92678 6.51256 3.21967 6.21967C3.51256 5.92678 3.98744 5.92678 4.28033 6.21967L8 9.93934L11.7197 6.21967C12.0126 5.92678 12.4874 5.92678 12.7803 6.21967Z">
|
|
6
|
+
</path>
|
|
7
|
+
</svg>`;
|
|
8
|
+
|
|
9
|
+
module.exports = upIcon;
|
package/jsdoc-config.json
CHANGED
|
@@ -1,61 +1,62 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tags": {
|
|
3
|
-
"allowUnknownTags": true
|
|
4
|
-
},
|
|
5
|
-
"source": {
|
|
6
|
-
"include": ["./demo/src", "./README.md"]
|
|
7
|
-
},
|
|
8
|
-
"plugins": ["plugins/markdown"],
|
|
9
|
-
"opts": {
|
|
10
|
-
"encoding": "utf8",
|
|
11
|
-
"destination": "output/v4",
|
|
12
|
-
"recurse": true,
|
|
13
|
-
"template": "./",
|
|
14
|
-
"tutorials": "./demo/src/tutorials",
|
|
15
|
-
"theme_opts": {
|
|
16
|
-
"search": true,
|
|
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
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"tags": {
|
|
3
|
+
"allowUnknownTags": true
|
|
4
|
+
},
|
|
5
|
+
"source": {
|
|
6
|
+
"include": ["./demo/src", "./README.md"]
|
|
7
|
+
},
|
|
8
|
+
"plugins": ["plugins/markdown"],
|
|
9
|
+
"opts": {
|
|
10
|
+
"encoding": "utf8",
|
|
11
|
+
"destination": "output/v4",
|
|
12
|
+
"recurse": true,
|
|
13
|
+
"template": "./",
|
|
14
|
+
"tutorials": "./demo/src/tutorials",
|
|
15
|
+
"theme_opts": {
|
|
16
|
+
"search": true,
|
|
17
|
+
"homepageTitle": "Clean JSDoc Theme",
|
|
18
|
+
"default_theme": "dark",
|
|
19
|
+
"title": "clean-jsdoc-theme",
|
|
20
|
+
"footer": "<div style='margin-bottom: 0.5rem;'>clean-jsdoc-theme</div> Fork: <a href='https://github.com/ankitskvmdam/clean-jsdoc-theme'>https://github.com/ankitskvmdam/clean-jsdoc-theme</a>",
|
|
21
|
+
"meta": [
|
|
22
|
+
{
|
|
23
|
+
"name": "Author",
|
|
24
|
+
"content": "Ankit Kumar"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "Description",
|
|
28
|
+
"content": "A beautifully crafted theme for jsdoc"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"menu": [
|
|
32
|
+
{
|
|
33
|
+
"title": "Github",
|
|
34
|
+
"id": "github",
|
|
35
|
+
"link": "https://github.com/ankitskvmdam/clean-jsdoc-theme"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"title": "npm",
|
|
39
|
+
"id": "npm",
|
|
40
|
+
"link": "https://www.npmjs.com/package/clean-jsdoc-theme"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"resizeable": {
|
|
44
|
+
"navbar": {
|
|
45
|
+
"min": "300",
|
|
46
|
+
"max": "600"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"codepen": {
|
|
50
|
+
"enable_for": ["examples"],
|
|
51
|
+
"options": {
|
|
52
|
+
"js_external": "https://code.jquery.com/jquery-3.6.0.min.js",
|
|
53
|
+
"js_pre_processor": "babel"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"markdown": {
|
|
59
|
+
"hardwrap": false,
|
|
60
|
+
"idInHeadings": true
|
|
61
|
+
}
|
|
62
|
+
}
|
package/minify.js
CHANGED
|
@@ -1,56 +1,60 @@
|
|
|
1
|
-
const uglify = require('uglify-js');
|
|
2
|
-
const csso = require('csso');
|
|
3
|
-
const path = require('path');
|
|
4
|
-
const fs = require('fs');
|
|
5
|
-
|
|
6
|
-
const pwd = path.join(__dirname);
|
|
7
|
-
const scriptsPath = path.join(pwd, 'static', 'scripts');
|
|
8
|
-
const cssPath = path.join(pwd, 'static', 'styles');
|
|
9
|
-
|
|
10
|
-
const uglifyFiles = [
|
|
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
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
const uglify = require('uglify-js');
|
|
2
|
+
const csso = require('csso');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const fs = require('fs');
|
|
5
|
+
|
|
6
|
+
const pwd = path.join(__dirname);
|
|
7
|
+
const scriptsPath = path.join(pwd, 'static', 'scripts');
|
|
8
|
+
const cssPath = path.join(pwd, 'static', 'styles');
|
|
9
|
+
|
|
10
|
+
const uglifyFiles = [
|
|
11
|
+
{
|
|
12
|
+
src: path.join(scriptsPath, 'core.js'),
|
|
13
|
+
dest: path.join(scriptsPath, 'core.min.js')
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
src: path.join(scriptsPath, 'search.js'),
|
|
17
|
+
dest: path.join(scriptsPath, 'search.min.js')
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
src: path.join(scriptsPath, 'third-party', 'hljs-original.js'),
|
|
21
|
+
dest: path.join(scriptsPath, 'third-party', 'hljs.js')
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
src: path.join(scriptsPath, 'third-party', 'hljs-line-num-original.js'),
|
|
25
|
+
dest: path.join(scriptsPath, 'third-party', 'hljs-line-num.js')
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
src: path.join(scriptsPath, 'third-party', 'tocbot.js'),
|
|
29
|
+
dest: path.join(scriptsPath, 'third-party', 'tocbot.min.js')
|
|
30
|
+
}
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
const cssFilePaths = [
|
|
34
|
+
path.join(cssPath, 'clean-jsdoc-theme-base.css'),
|
|
35
|
+
path.join(cssPath, 'clean-jsdoc-theme-dark.css'),
|
|
36
|
+
path.join(cssPath, 'clean-jsdoc-theme-light.css')
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
let css = '';
|
|
40
|
+
|
|
41
|
+
for (const p of cssFilePaths) {
|
|
42
|
+
css += fs.readFileSync(p, 'utf-8');
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const minifiedCss = csso.minify(css, { restructure: false });
|
|
46
|
+
|
|
47
|
+
fs.writeFileSync(
|
|
48
|
+
path.join(cssPath, 'clean-jsdoc-theme.min.css'),
|
|
49
|
+
minifiedCss.css
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
for (const f of uglifyFiles) {
|
|
53
|
+
const data = fs.readFileSync(f.src, 'utf-8');
|
|
54
|
+
|
|
55
|
+
const out = uglify.minify(data, {
|
|
56
|
+
compress: true
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
fs.writeFileSync(f.dest, out.code);
|
|
60
|
+
}
|
package/package.json
CHANGED
|
@@ -1,50 +1,52 @@
|
|
|
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
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "clean-jsdoc-theme",
|
|
3
|
+
"version": "4.1.8",
|
|
4
|
+
"description": "A beautifully crafted theme/template for JSDoc 3. This theme/template looks and feels like a premium theme/template. This is a fully mobile responsive theme and also fully customizable theme.",
|
|
5
|
+
"main": "publish.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "node minify.js && node node_modules/jsdoc/jsdoc.js -c jsdoc-config.json",
|
|
8
|
+
"lint:js": "eslint . --ext .js --fix",
|
|
9
|
+
"lint:style": "stylelint-config-prettier-check && stylelint static/styles/",
|
|
10
|
+
"lint": "npm run lint:js && npm run lint:style"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/ankitskvmdam/clean-jsdoc-theme.git"
|
|
15
|
+
},
|
|
16
|
+
"author": "Ank",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/ankitskvmdam/clean-jsdoc-theme/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://ankdev.me/clean-jsdoc-theme/v4/index.html",
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"jsdoc": "3"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"jsdoc",
|
|
27
|
+
"template",
|
|
28
|
+
"jsdoc-template",
|
|
29
|
+
"javascript documentation",
|
|
30
|
+
"customizable jsdoc theme / template"
|
|
31
|
+
],
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@jsdoc/eslint-config": "^1.1.6",
|
|
34
|
+
"concurrently": "^7.2.2",
|
|
35
|
+
"csso": "^5.0.3",
|
|
36
|
+
"eslint": "^8.19.0",
|
|
37
|
+
"eslint-config-prettier": "^8.5.0",
|
|
38
|
+
"prettier": "^2.2.1",
|
|
39
|
+
"stylelint": "^14.9.1",
|
|
40
|
+
"stylelint-config-prettier": "^9.0.3",
|
|
41
|
+
"stylelint-config-sass-guidelines": "^9.0.0",
|
|
42
|
+
"stylelint-config-standard": "^26.0.0",
|
|
43
|
+
"stylelint-order": "^5.0.0",
|
|
44
|
+
"stylelint-scss": "^4.2.0",
|
|
45
|
+
"uglify-js": "^3.16.0"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"fs-extra": "^10.1.0",
|
|
49
|
+
"html-minifier": "^4.0.0",
|
|
50
|
+
"nanoid": "^3.3.4"
|
|
51
|
+
}
|
|
52
|
+
}
|