-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
38 lines (38 loc) · 1.52 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
{
"name": "faq-git",
"version": "0.1.0",
"description": "FAQ Git pour developpez.com",
"author": "marlou <[email protected]>",
"private": true,
"license": "CC-BY-SA-4.0",
"repository": {
"type": "git",
"url": "https://github.com/MarcLoupias/dev.com-faq-git"
},
"engines": {
"node": ">=6.0.0",
"npm": ">=5.2.0"
},
"devDependencies": {
"dvlp-faq-md-summary": "2.1.0",
"dvlp-faq-xml": "2.2.1",
"http-server": "^0.11.1",
"husky": "^1.3.1",
"markdownlint-cli": "^0.13.0",
"mdfc-map-to-html": "^1.0.0",
"rimraf": "^2.6.3"
},
"husky": {
"hooks": {
"pre-commit": "npm test",
"pre-push": "npm test"
}
},
"scripts": {
"test": "node node_modules/.bin/markdownlint faq-content/**/*.md",
"build-summary": "node node_modules/.bin/mdfc convert 'dvlp-faq-md-summary' 'faq-content/**/*.md' --dest 'faq-content/' --filename 'SUMMARY'",
"build-xml": "rimraf 'xml/' && mkdir xml/ && node node_modules/.bin/mdfc convert 'dvlp-faq-xml' 'faq-content/**/*.md' --dest 'xml/' --filename 'dvlp-faq-git'",
"build-html": "node node_modules/.bin/mdfc convert 'mdfc-map-to-html' 'faq-content/**/*.md'",
"serve": "npm run build-html && cd faq-content/ && find . -name '*.html' | cpio -pdm ../dist/ && find . -name '*.html' -type f -delete && cd .. && mv dist/SUMMARY.html dist/index.html && node node_modules/http-server/bin/http-server -c-1 dist/"
}
}