forked from tscanlin/tocbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
120 lines (120 loc) · 4.53 KB
/
package.json
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
{
"name": "tocbot",
"version": "4.18.2",
"description": "Generate a table of contents based on the heading structure of a html document.",
"main": "src/js/index.js",
"scripts": {
"clean": "rm -rf dist/",
"mkdir-dist": "mkdir dist",
"cleanInstall": "rm -rf node_modules package-lock.json && npm i",
"build": "npm run build-all",
"build-all": "npm run clean && npm run mkdir-dist && npm run build-js && npm run build-js-uglify && npm run build-css && npm run build-dist && npm run build-docs",
"build-docs": "npm run build-content && npm run next-build && npm run next-export && npm run fix-jekyll",
"build-css": "node-sass --include-path ./node_modules --output-style compressed -o static/css src/scss",
"build-css-watch": "node-sass --source-map-embed --watch --include-path ./node_modules --output-style compressed -o static/css src/scss",
"build-dist": "cp static/js/tocbot.js ./dist/ && cp static/js/tocbot.min.js ./dist/ && cp static/css/tocbot.css ./dist/ && cp static/css/styles.css ./dist/",
"build-js": "webpack-cli src/js/index.js -o static/js/tocbot.js -p",
"build-js-watch": "webpack-cli src/js/index.js -o static/js/tocbot.js --watch",
"build-js-uglify": "webpack-cli src/js/index.js -o static/js/tocbot.min.js -p",
"build-content": "processmd \"*.md\" --outputDir data --markdownOptions.html=true --headingIds",
"build-content-watch": "processmd \"*.md\" --outputDir data --markdownOptions.html=true --headingIds --watch",
"estimate-js-size": "gzip -9 -c dist/tocbot.min.js | wc -c",
"estimate-css-size": "gzip -9 -c dist/tocbot.css | wc -c",
"fix-jekyll": "cd out && touch .nojekyll",
"lint": "standard --fix",
"dev": "npm run build-css && parallelshell \"npm run next\" \"npm run build-js-watch\" \"npm run build-css-watch\" \"npm run build-content-watch\"",
"start": "npm run dev",
"deploy": "npm run build-all && gh-pages -d out",
"deploy:local": "mv out tocbot && mkdir out && mv tocbot out/tocbot",
"test": "npm run lint && mocha test/index.js",
"test:debug": "node-debug _mocha --timeout 0 test/index.js",
"test:watch": "mocha --watch test/index.js",
"test:integration": "codeceptjs run --steps",
"test:update-screenshots": "cp -R -v ./test/__screenshots-new__/* ./test/__screenshots__",
"test:image-diff": "node ./test/imageDiff.js './test/__screenshots__/*.png' './test/__screenshots-new__/*.png'",
"test:diff-preview": "node ./test/diffPreview.js './test/__screenshots__' './test/__screenshots-new__'",
"next": "node ./server.js",
"next-build": "next build",
"next-export": "next export",
"next-start": "next start",
"v-prerelease": "npm version prerelease && git push --tags && npm publish && git push",
"v-patch": "npm version patch && git push --tags && npm publish && git push",
"v-minor": "npm version minor && git push --tags && npm publish && git push",
"v-major": "npm version major && git push --tags && npm publish && git push"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tscanlin/tocbot.git"
},
"keywords": [
"tocbot",
"javascript",
"table",
"of",
"contents",
"generate",
"html",
"structure",
"vanilla"
],
"author": "Tim Scanlin",
"license": "MIT",
"bugs": {
"url": "https://github.com/tscanlin/tocbot/issues"
},
"homepage": "https://github.com/tscanlin/tocbot",
"devDependencies": {
"@babel/cli": "^7.15.7",
"@babel/core": "^7.15.8",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.15.8",
"@babel/preset-react": "^7.14.5",
"babel-loader": "^8.2.3",
"chai": "^4.3.4",
"eslint": "^7.1.0",
"express": "^4.17.1",
"fs-extra": "^10.0.0",
"gh-pages": "^3.2.3",
"globby": "^12.0.2",
"js-yaml": "^4.1.0",
"jsdom": "^9.12.0",
"marked": "^4.0.10",
"mkdirp": "^1.0.4",
"mocha": "^9.1.3",
"next": "^12.0.1",
"next-export": "^0.1.7",
"node-resemble-js": "^0.2.0",
"node-sass": "^7.0.0",
"parallelshell": "github:darkguy2008/parallelshell#8fd83e2",
"processmd": "^4.6.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"standard": "^16.0.4",
"webpack": "^5.60.0",
"webpack-cli": "^3.3.12"
},
"npmName": "tocbot",
"npmFileMap": [
{
"basePath": "dist",
"files": [
"**/*"
]
}
],
"standard": {
"ignore": [
"dist/",
"scripts/",
"test/"
],
"globals": [
"it",
"describe",
"before",
"after",
"beforeEach",
"afterEach"
]
}
}