Skip to content

Commit d9d18fe

Browse files
committed
Add lint-node, lint-node-fix, lint-browser and lint-browser-fix scripts to package.json
1 parent a7f0e22 commit d9d18fe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
"prestart": "npm stop && npm run rebase && touch janitor.log janitor.pid && chmod 600 janitor.log janitor.pid",
2323
"start": "if [ -z \"$SCRIPT\" ] ; then printf \"Run which Janitor script? [join/app]:\" && read SCRIPT ; fi ; node \"$SCRIPT\" >> janitor.log 2>&1 & printf \"$!\\n\" > janitor.pid",
2424
"poststart": "printf \"[$(date -uIs)] Background process started (PID $(cat janitor.pid), LOGS $(pwd)/janitor.log).\\n\"",
25-
"stop": "if [ -e janitor.pid -a -n \"$(ps h $(cat janitor.pid))\" ] ; then kill $(cat janitor.pid) && printf \"[$(date -uIs)] Background process stopped (PID $(cat janitor.pid)).\\n\" ; fi ; rm -f janitor.pid"
25+
"stop": "if [ -e janitor.pid -a -n \"$(ps h $(cat janitor.pid))\" ] ; then kill $(cat janitor.pid) && printf \"[$(date -uIs)] Background process stopped (PID $(cat janitor.pid)).\\n\" ; fi ; rm -f janitor.pid",
26+
"lint-node": "eslint -c .eslintrc-node.js *.js api/ lib/",
27+
"lint-node-fix": "npm run lint-node -- --fix",
28+
"lint-browser": "eslint -c .eslintrc-browser.js *.js api/ lib/",
29+
"lint-browser-fix": "npm run lint-browser -- --fix"
2630
},
2731
"dependencies": {
2832
"@jankeromnes/camp": "~16.2.17",

0 commit comments

Comments
 (0)