Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit fbff6a5

Browse files
committed
chore (build): format all files before gulp task runs
- also always generate the faq Change-Id: I92896ed2f8fbe43518967068b864f83f453ba55c
1 parent d5fd191 commit fbff6a5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
"version": "2.4.0-alpha",
44
"description": "A Photobooth webinterface for Raspberry Pi and Windows",
55
"scripts": {
6-
"build": "gulp",
7-
"watch": "gulp watch",
8-
"test": "echo \"Error: no test specified\" && exit 1",
6+
"build": "npm run format && npm run build:faq && npm run build:gulp",
7+
"build:faq": "mdown --input 'faq/*.md' --output manual --header faq/header.html --footer faq/footer.html",
8+
"build:gulp": "gulp",
99
"eslint": "eslint src/js/*.js",
1010
"eslint:fix": "eslint src/js/*.js --fix",
11-
"pack:build": "npm run eslint && npm run build && npm run format && npm run build:faq && npm run pack:zip",
12-
"pack:zip": "node scripts/pack-build.js",
1311
"format": "npm-run-all --parallel format:*",
1412
"format:js": "prettier src/js/*.js --write",
1513
"format:scss": "prettier src/sass/* --write",
16-
"build:faq": "node_modules/gh-markdown-cli/bin/mdown --input 'faq/*.md' --output manual --header faq/header.html --footer faq/footer.html"
14+
"pack:build": "npm run eslint && npm run build && npm run pack:zip",
15+
"pack:zip": "node scripts/pack-build.js",
16+
"test": "echo \"Error: no test specified\" && exit 1",
17+
"watch": "gulp watch"
1718
},
1819
"author": "",
1920
"license": "MIT",

0 commit comments

Comments
 (0)