forked from Mirrors/doipjs
Replace prettier with standard, add husky
This commit is contained in:
parent
3676023df1
commit
122ab4c58c
7 changed files with 853 additions and 43 deletions
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
npm test
|
yarn run license:check
|
||||||
|
yarn test
|
|
@ -8,6 +8,10 @@
|
||||||
**/*.env
|
**/*.env
|
||||||
**/*.pug
|
**/*.pug
|
||||||
|
|
||||||
|
ignore
|
||||||
|
docs
|
||||||
|
\.husky
|
||||||
|
|
||||||
package.json
|
package.json
|
||||||
yarn.lock
|
yarn.lock
|
||||||
\.editorconfig
|
\.editorconfig
|
||||||
|
@ -15,4 +19,5 @@ yarn.lock
|
||||||
\.licenseignore
|
\.licenseignore
|
||||||
\.prettierignore
|
\.prettierignore
|
||||||
\.prettierrc.yaml
|
\.prettierrc.yaml
|
||||||
|
\.drone.yml
|
||||||
Dockerfile
|
Dockerfile
|
|
@ -1,7 +0,0 @@
|
||||||
.git
|
|
||||||
docs
|
|
||||||
dist
|
|
||||||
node_modules
|
|
||||||
LICENSE
|
|
||||||
LICENSE.HEADER
|
|
||||||
CHANGELOG.md
|
|
|
@ -1,4 +0,0 @@
|
||||||
trailingComma: 'es5'
|
|
||||||
tabWidth: 2
|
|
||||||
semi: false
|
|
||||||
singleQuote: true
|
|
|
@ -15,7 +15,7 @@
|
||||||
"template": "node_modules/clean-jsdoc-theme",
|
"template": "node_modules/clean-jsdoc-theme",
|
||||||
"theme_opts": {
|
"theme_opts": {
|
||||||
"theme": "light",
|
"theme": "light",
|
||||||
"menu" : [
|
"menu": [
|
||||||
{
|
{
|
||||||
"title": "Source code",
|
"title": "Source code",
|
||||||
"link": "https://codeberg.org/keyoxide/doipjs",
|
"link": "https://codeberg.org/keyoxide/doipjs",
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
"minify": "^6.0.1",
|
"minify": "^6.0.1",
|
||||||
"mocha": "^8.2.0",
|
"mocha": "^8.2.0",
|
||||||
"nodemon": "^2.0.7",
|
"nodemon": "^2.0.7",
|
||||||
"prettier": "^2.1.2"
|
"standard": "^16.0.3"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"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",
|
"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:add": "./node_modules/.bin/license-check-and-add add",
|
||||||
"license:remove": "./node_modules/.bin/license-check-and-add remove",
|
"license:remove": "./node_modules/.bin/license-check-and-add remove",
|
||||||
"docs:lib": "./node_modules/.bin/jsdoc -c jsdoc-lib.json -r -d ./docs",
|
"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": "NODE_ENV=production node ./src/proxy/",
|
||||||
"proxy:dev": "NODE_ENV=development ./node_modules/.bin/nodemon ./src/proxy/",
|
"proxy:dev": "NODE_ENV=development ./node_modules/.bin/nodemon ./src/proxy/",
|
||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
|
|
Loading…
Reference in a new issue