mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
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
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npm test
|
||||
yarn run license:check
|
||||
yarn test
|
|
@ -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
|
|
@ -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",
|
||||
"theme_opts": {
|
||||
"theme": "light",
|
||||
"menu" : [
|
||||
"menu": [
|
||||
{
|
||||
"title": "Source code",
|
||||
"link": "https://codeberg.org/keyoxide/doipjs",
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue