mirror of
https://github.com/zhigang1992/uber-cities.git
synced 2026-01-12 22:53:16 +08:00
64 lines
1.5 KiB
JSON
64 lines
1.5 KiB
JSON
{
|
|
"private": true,
|
|
"name": "uber-cities",
|
|
"version": "0.0.0",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"start": "if-env NODE_ENV=production && npm run -s serve || npm run -s dev",
|
|
"build": "preact build -p --template src/template.html",
|
|
"serve": "preact build && preact serve",
|
|
"dev": "preact watch",
|
|
"test": "eslint src",
|
|
"format": "prettier --write 'src/**/*.{js,css,md}'",
|
|
"posttest": "npm run format",
|
|
"precommit": "lint-staged",
|
|
"seed": "node seed.js"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": [
|
|
"eslint-config-synacor",
|
|
"prettier"
|
|
],
|
|
"rules": {
|
|
"react/display-name": "off",
|
|
"react/no-did-mount-set-state": "off"
|
|
}
|
|
},
|
|
"eslintIgnore": [
|
|
"build/*"
|
|
],
|
|
"devDependencies": {
|
|
"eslint": "^4.15.0",
|
|
"eslint-config-prettier": "^2.9.0",
|
|
"eslint-config-synacor": "^2.0.4",
|
|
"husky": "^0.14.3",
|
|
"if-env": "^1.0.0",
|
|
"jsonfile": "^4.0.0",
|
|
"lint-staged": "^6.0.0",
|
|
"osmosis": "^1.1.6",
|
|
"preact-cli": "^2.1.1",
|
|
"prettier": "^1.10.2"
|
|
},
|
|
"dependencies": {
|
|
"algoliasearch": "^3.24.9",
|
|
"capitalize": "^1.0.0",
|
|
"lodash.uniqby": "^4.7.0",
|
|
"preact": "^8.2.7",
|
|
"preact-compat": "^3.17.0",
|
|
"preact-router": "^2.6.0",
|
|
"react-confetti": "^2.0.2",
|
|
"react-sizeme": "^2.3.6",
|
|
"react-styled-flexboxgrid": "^2.1.1",
|
|
"remove-accents": "^0.4.2",
|
|
"styled-components": "^2.4.0",
|
|
"styled-is": "^1.1.0",
|
|
"styled-loaders": "^0.2.1"
|
|
},
|
|
"lint-staged": {
|
|
"*.js": [
|
|
"eslint --fix",
|
|
"git add"
|
|
]
|
|
}
|
|
}
|