Replace prettier with standard, add husky

This commit is contained in:
Yarmo Mackenbach 2021-07-09 23:47:48 +02:00
parent 3676023df1
commit 122ab4c58c
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
7 changed files with 853 additions and 43 deletions

View file

@ -1,4 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm test
yarn run license:check
yarn test

View file

@ -8,6 +8,10 @@
**/*.env
**/*.pug
ignore
docs
\.husky
package.json
yarn.lock
\.editorconfig
@ -15,4 +19,5 @@ yarn.lock
\.licenseignore
\.prettierignore
\.prettierrc.yaml
\.drone.yml
Dockerfile

View file

@ -1,7 +0,0 @@
.git
docs
dist
node_modules
LICENSE
LICENSE.HEADER
CHANGELOG.md

View file

@ -1,4 +0,0 @@
trailingComma: 'es5'
tabWidth: 2
semi: false
singleQuote: true

View file

@ -34,7 +34,7 @@
"minify": "^6.0.1",
"mocha": "^8.2.0",
"nodemon": "^2.0.7",
"prettier": "^2.1.2"
"standard": "^16.0.3"
},
"scripts": {
"release:bundle": "./node_modules/.bin/browserify ./src/index.js --standalone doip -x openpgp -x jsdom -x @xmpp/client -x @xmpp/debug -x irc-upd -o ./dist/doip.js",
@ -45,7 +45,9 @@
"license:add": "./node_modules/.bin/license-check-and-add add",
"license:remove": "./node_modules/.bin/license-check-and-add remove",
"docs:lib": "./node_modules/.bin/jsdoc -c jsdoc-lib.json -r -d ./docs",
"test": "./node_modules/.bin/mocha",
"standard": "./node_modules/.bin/standard ./src",
"mocha": "./node_modules/.bin/mocha",
"test": "yarn run standard && yarn run license:check && yarn run mocha",
"proxy": "NODE_ENV=production node ./src/proxy/",
"proxy:dev": "NODE_ENV=development ./node_modules/.bin/nodemon ./src/proxy/",
"prepare": "husky install"

869
yarn.lock

File diff suppressed because it is too large Load diff