mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 18:29:08 +00:00
add husky and autolinting
This commit is contained in:
parent
e1bd5747b3
commit
d050277730
5 changed files with 56 additions and 7 deletions
12
package.json
12
package.json
|
@ -4,15 +4,19 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"lerna": "lerna",
|
||||
"start": "lerna run start",
|
||||
"start": "node packages/roleypoly-server/dist/index.js",
|
||||
"dev": "babel-node packages/roleypoly-server/index.js",
|
||||
"build": "lerna run build",
|
||||
"flow:install": "flow-mono install-types",
|
||||
"flow": "flow",
|
||||
"remotedebug": "remotedebug_ios_webkit_adapter --port=9000 > /dev/null",
|
||||
"test": "jest --color --coverage",
|
||||
"lint": "run-p lint:*",
|
||||
"lint:css": "stylelint 'packages/roleypoly-ui/**/*.js'",
|
||||
"lint:js": "standard",
|
||||
"rpcrepl": "babel-node packages/roleypoly-server/util/rpcrepl.js",
|
||||
"dev:up": "docker-compose up -d"
|
||||
"dev:up": "docker-compose up -d",
|
||||
"precommit": "yarn lint && yarn test"
|
||||
},
|
||||
"private": true,
|
||||
"workspaces": [
|
||||
|
@ -43,6 +47,7 @@
|
|||
"flow-bin": "^0.96.0",
|
||||
"flow-mono-cli": "^1.5.0",
|
||||
"flow-typed": "^2.5.1",
|
||||
"husky": "^1.3.1",
|
||||
"jest": "^24.7.0",
|
||||
"jest-styled-components": "^6.3.1",
|
||||
"lerna": "^3.13.1",
|
||||
|
@ -66,6 +71,9 @@
|
|||
"globals": [
|
||||
"$Shape",
|
||||
"$Call"
|
||||
],
|
||||
"ignore": [
|
||||
"flow-typed/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue