forked from tscanlin/tocbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
93 lines (93 loc) · 3.47 KB
/
package.json
File metadata and controls
93 lines (93 loc) · 3.47 KB
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
{
"name": "tocbot",
"version": "2.2.2",
"description": "Generate a table of contents based on the heading structure of a html document.",
"main": "src/js/index.js",
"scripts": {
"build": "npm run clean && npm run mkdirs && npm run build-js && npm run build-js-uglify && npm run build-css && npm run build-docs && npm run build-dist",
"clean": "rm -rf build/ && rm -rf dist/",
"mkdirs": "npm run mkdir-build & npm run mkdir-dist",
"mkdir-build": "mkdir build && cd build && mkdir data && mkdir assets && cd assets && mkdir js && mkdir css",
"mkdir-dist": "mkdir dist",
"build-css": "node-sass --include-path ./node_modules --output-style compressed -o build/assets/css src/scss",
"build-css-watch": "node-sass --source-map-embed --watch --include-path ./node_modules --output-style compressed -o build/assets/css src/scss",
"build-dist": "cp build/assets/js/tocbot.js ./dist/ && cp build/assets/js/tocbot.min.js ./dist/ && cp build/assets/css/tocbot.css ./dist/",
"build-js": "webpack src/js/index.js build/assets/js/tocbot.js -d",
"build-js-watch": "webpack src/js/index.js build/assets/js/tocbot.js -d --watch",
"build-js-uglify": "webpack src/js/index.js build/assets/js/tocbot.min.js -d --optimize-minimize",
"estimate-js-size": "gzip -9 -c build/assets/js/tocbot.min.js | wc -c",
"estimate-css-size": "gzip -9 -c build/assets/css/tocbot.css | wc -c",
"build-docs": "node ./script/parse.js --src **/*.md | babel-node ./script/render.js",
"build-docs-watch": "onchange \"**/*.js\" \"**/*.jsx\" \"**/*.md\" \"src/**/*.html\" -- npm run build-docs",
"build-static": "cp -r src/files/* build/",
"lint": "eslint *.js",
"dev": "parallelshell \"npm run serve\" \"npm run build-js-watch\" \"npm run build-css-watch\" \"npm run build-docs-watch\"",
"serve": "webpack-dev-server --content-base build/ --port 4001",
"start": "npm run clean && npm run mkdirs && npm run build-css && npm run build-docs && npm run dev",
"deploy": "npm run build && gh-pages -d build",
"test": "mocha test/index.js",
"test:watch": "mocha --watch test/index.js"
},
"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#readme",
"devDependencies": {
"babel-cli": "^6.7.7",
"babel-core": "^6.7.4",
"babel-eslint": "^6.0.0",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"babel-register": "^6.7.2",
"babel-runtime": "^6.3.19",
"chai": "^3.4.1",
"eslint": "^2.4.0",
"gh-pages": "^0.11.0",
"glob": "^7.0.3",
"highlight.js": "^9.0.0",
"js-yaml": "^3.5.5",
"jsdom": "^8.3.1",
"marked": "^0.3.5",
"mkdirp": "^0.5.1",
"mocha": "^2.3.4",
"node-sass": "^3.4.2",
"onchange": "^2.2.0",
"optimizely-oui": "^11.3.0",
"parallelshell": "^2.0.0",
"react": "^15.0.1",
"react-dom": "^15.0.1",
"uglify-js": "^2.6.2",
"webpack": "^1.12.14",
"webpack-dev-server": "^1.14.1"
},
"dependencies": {
"smooth-scroll": "cferdinandi/smooth-scroll"
},
"npmName": "tocbot",
"npmFileMap": [
{
"basePath": "dist",
"files": [
"**/*"
]
}
]
}