Update Husky hooks
This commit is contained in:
parent
7d2ded2cdf
commit
0a5e6bf350
|
@ -0,0 +1 @@
|
||||||
|
_
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
cd ui && npx lint-staged
|
|
@ -13,7 +13,7 @@ WORKDIR /app
|
||||||
|
|
||||||
# Download dependencies
|
# Download dependencies
|
||||||
COPY ui/package*.json /app/
|
COPY ui/package*.json /app/
|
||||||
RUN npm install
|
RUN HUSKY=0 npm ci --only=production
|
||||||
|
|
||||||
# Build frontend
|
# Build frontend
|
||||||
COPY ui /app
|
COPY ui /app
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,47 +1,28 @@
|
||||||
{
|
{
|
||||||
"name": "photoview-ui",
|
"name": "photoview-ui",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/photoview/photoview.git",
|
||||||
|
"directory": "ui"
|
||||||
|
},
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"description": "UI app for Photoview",
|
"description": "UI app for Photoview",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/preset-env": "^7.13.12",
|
|
||||||
"@types/react": "^17.0.3",
|
|
||||||
"babel-plugin-styled-components": "^1.12.0",
|
|
||||||
"copy-to-clipboard": "^3.3.1",
|
|
||||||
"graphql": "^15.5.0",
|
|
||||||
"prop-types": "^15.7.2",
|
|
||||||
"react": "^17.0.2",
|
|
||||||
"react-dom": "^17.0.2",
|
|
||||||
"react-helmet": "^6.1.0",
|
|
||||||
"react-router-dom": "^5.2.0",
|
|
||||||
"react-spring": "^8.0.27",
|
|
||||||
"semantic-ui-css": "^2.4.1",
|
|
||||||
"semantic-ui-react": "^2.0.3",
|
|
||||||
"styled-components": "^5.2.3",
|
|
||||||
"subscriptions-transport-ws": "^0.9.18",
|
|
||||||
"url-join": "^4.0.1"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"start": "node build.js watch",
|
|
||||||
"build": "NODE_ENV=production node build.js",
|
|
||||||
"test": "npm run lint && npm run jest",
|
|
||||||
"lint": "eslint ./src --max-warnings 0 --cache",
|
|
||||||
"jest": "jest"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@apollo/client": "^3.3.13",
|
"@apollo/client": "^3.3.13",
|
||||||
"@babel/core": "^7.13.14",
|
"@babel/core": "^7.13.14",
|
||||||
"@babel/plugin-transform-modules-commonjs": "^7.13.8",
|
"@babel/plugin-transform-modules-commonjs": "^7.13.8",
|
||||||
"@babel/plugin-transform-runtime": "^7.13.10",
|
"@babel/plugin-transform-runtime": "^7.13.10",
|
||||||
|
"@babel/preset-env": "^7.13.12",
|
||||||
"@babel/preset-react": "^7.13.13",
|
"@babel/preset-react": "^7.13.13",
|
||||||
"@testing-library/jest-dom": "^5.11.10",
|
|
||||||
"@testing-library/react": "^11.2.6",
|
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
"babel-jest": "^26.6.3",
|
"babel-jest": "^26.6.3",
|
||||||
"babel-plugin-graphql-tag": "^3.2.0",
|
"babel-plugin-graphql-tag": "^3.2.0",
|
||||||
|
"babel-plugin-styled-components": "^1.12.0",
|
||||||
"babel-plugin-transform-semantic-ui-react-imports": "^1.4.1",
|
"babel-plugin-transform-semantic-ui-react-imports": "^1.4.1",
|
||||||
"browser-sync": "^2.26.14",
|
"browser-sync": "^2.26.14",
|
||||||
"connect-history-api-fallback": "^1.6.0",
|
"connect-history-api-fallback": "^1.6.0",
|
||||||
|
"copy-to-clipboard": "^3.3.1",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"esbuild": "^0.8.52",
|
"esbuild": "^0.8.52",
|
||||||
"eslint": "^7.23.0",
|
"eslint": "^7.23.0",
|
||||||
|
@ -50,23 +31,43 @@
|
||||||
"eslint-plugin-react": "^7.23.1",
|
"eslint-plugin-react": "^7.23.1",
|
||||||
"eslint-plugin-react-hooks": "^4.2.0",
|
"eslint-plugin-react-hooks": "^4.2.0",
|
||||||
"fs-extra": "^9.1.0",
|
"fs-extra": "^9.1.0",
|
||||||
|
"graphql": "^15.5.0",
|
||||||
|
"mapbox-gl": "^2.2.0",
|
||||||
|
"prop-types": "^15.7.2",
|
||||||
|
"react": "^17.0.2",
|
||||||
|
"react-dom": "^17.0.2",
|
||||||
|
"react-helmet": "^6.1.0",
|
||||||
|
"react-router-dom": "^5.2.0",
|
||||||
|
"react-router-prop-types": "^1.0.5",
|
||||||
|
"react-spring": "^8.0.27",
|
||||||
|
"react-test-renderer": "^17.0.2",
|
||||||
|
"semantic-ui-css": "^2.4.1",
|
||||||
|
"semantic-ui-react": "^2.0.3",
|
||||||
|
"styled-components": "^5.2.3",
|
||||||
|
"subscriptions-transport-ws": "^0.9.18",
|
||||||
|
"url-join": "^4.0.1",
|
||||||
|
"workbox-build": "^6.1.2"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"start": "node build.js watch",
|
||||||
|
"build": "NODE_ENV=production node build.js",
|
||||||
|
"test": "npm run lint && npm run jest",
|
||||||
|
"lint": "eslint ./src --max-warnings 0 --cache",
|
||||||
|
"jest": "jest",
|
||||||
|
"prepare": "(cd .. && npx husky install)"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@testing-library/jest-dom": "^5.11.10",
|
||||||
|
"@testing-library/react": "^11.2.6",
|
||||||
|
"@types/react": "^17.0.3",
|
||||||
"husky": "^6.0.0",
|
"husky": "^6.0.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"lint-staged": "^10.5.4",
|
"lint-staged": "^10.5.4",
|
||||||
"mapbox-gl": "^2.2.0",
|
"prettier": "^2.2.1"
|
||||||
"prettier": "^2.2.1",
|
|
||||||
"react-router-prop-types": "^1.0.5",
|
|
||||||
"react-test-renderer": "^17.0.2",
|
|
||||||
"workbox-build": "^6.1.2"
|
|
||||||
},
|
},
|
||||||
"cache": {
|
"cache": {
|
||||||
"swDest": "service-worker.js"
|
"swDest": "service-worker.js"
|
||||||
},
|
},
|
||||||
"husky": {
|
|
||||||
"hooks": {
|
|
||||||
"pre-commit": "lint-staged"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"trailingComma": "es5",
|
"trailingComma": "es5",
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
|
@ -86,11 +87,5 @@
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{js,json,css,md,graphql}": "prettier --write",
|
"*.{js,json,css,md,graphql}": "prettier --write",
|
||||||
"*.js": "eslint --cache --fix --max-warnings 0"
|
"*.js": "eslint --cache --fix --max-warnings 0"
|
||||||
},
|
}
|
||||||
"browserslist": [
|
|
||||||
">0.2%",
|
|
||||||
"not dead",
|
|
||||||
"not ie <= 11",
|
|
||||||
"not op_mini all"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue