From a46d5b14c63eaf17a2e807cf9b1b8b3d6d3b2b3d Mon Sep 17 00:00:00 2001 From: AppElent Date: Mon, 16 Dec 2024 20:28:35 +0100 Subject: [PATCH] small changes --- .github/workflows/build.yml | 30 ++++++++++++ package-lock.json | 95 ------------------------------------- package.json | 5 +- 3 files changed, 31 insertions(+), 99 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..bd747fb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: Run npm command on Pull Request + +on: + pull_request: + branches: + - main + types: [opened, reopened, synchronize] + +jobs: + run-npm-command: + runs-on: ubuntu-latest + + steps: + # Check out the repository + - name: Checkout code + uses: actions/checkout@v3 + + # Set up Node.js + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '16' # Replace with your desired Node.js version + + # Install dependencies + - name: Install dependencies + run: npm install + + # Run your npm command + - name: Run npm command + run: npm run build # Replace 'your-command' with the desired npm script diff --git a/package-lock.json b/package-lock.json index d00eafe..781ff04 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,6 @@ "name": "template-vite-ts-react-app", "version": "0.0.0", "dependencies": { - "@andypf/json-viewer": "^2.1.7", "@emotion/styled": "^11.14.0", "@faker-js/faker": "^9.3.0", "@hello-pangea/dnd": "^17.0.0", @@ -25,7 +24,6 @@ "material-ui-confirm": "^3.0.16", "prop-types": "^15.8.1", "react": "^18.3.1", - "react-beautiful-dnd": "^13.1.1", "react-dom": "^18.3.1", "react-easy-crop": "^5.2.0", "react-helmet-async": "^2.0.5", @@ -67,12 +65,6 @@ "node": ">=6.0.0" } }, - "node_modules/@andypf/json-viewer": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/@andypf/json-viewer/-/json-viewer-2.1.7.tgz", - "integrity": "sha512-lzlDkpKBq78P1mQ7kWoGsTbfFmtCLzJN/lQLgHFfPsn7fSqZrQ/mYU1rS6zHZKOHEwN/A6xW4B6GOggWHB3xOQ==", - "license": "MIT" - }, "node_modules/@babel/code-frame": { "version": "7.26.2", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", @@ -2615,27 +2607,6 @@ "@types/react": "^18.0.0" } }, - "node_modules/@types/react-redux": { - "version": "7.1.34", - "resolved": "https://registry.npmjs.org/@types/react-redux/-/react-redux-7.1.34.tgz", - "integrity": "sha512-GdFaVjEbYv4Fthm2ZLvj1VSCedV7TqE5y1kNwnjSdBOTXuRSgowux6J8TAct15T3CKBr63UMk+2CO7ilRhyrAQ==", - "license": "MIT", - "dependencies": { - "@types/hoist-non-react-statics": "^3.3.0", - "@types/react": "*", - "hoist-non-react-statics": "^3.3.0", - "redux": "^4.0.0" - } - }, - "node_modules/@types/react-redux/node_modules/redux": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz", - "integrity": "sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.9.2" - } - }, "node_modules/@types/react-transition-group": { "version": "4.4.12", "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.12.tgz", @@ -5090,72 +5061,6 @@ "lodash.curry": "^4.1.1" } }, - "node_modules/react-beautiful-dnd": { - "version": "13.1.1", - "resolved": "https://registry.npmjs.org/react-beautiful-dnd/-/react-beautiful-dnd-13.1.1.tgz", - "integrity": "sha512-0Lvs4tq2VcrEjEgDXHjT98r+63drkKEgqyxdA7qD3mvKwga6a5SscbdLPO2IExotU1jW8L0Ksdl0Cj2AF67nPQ==", - "deprecated": "react-beautiful-dnd is now deprecated. Context and options: https://github.com/atlassian/react-beautiful-dnd/issues/2672", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.9.2", - "css-box-model": "^1.2.0", - "memoize-one": "^5.1.1", - "raf-schd": "^4.0.2", - "react-redux": "^7.2.0", - "redux": "^4.0.4", - "use-memo-one": "^1.1.1" - }, - "peerDependencies": { - "react": "^16.8.5 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.5 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/react-beautiful-dnd/node_modules/memoize-one": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz", - "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==", - "license": "MIT" - }, - "node_modules/react-beautiful-dnd/node_modules/react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", - "license": "MIT" - }, - "node_modules/react-beautiful-dnd/node_modules/react-redux": { - "version": "7.2.9", - "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-7.2.9.tgz", - "integrity": "sha512-Gx4L3uM182jEEayZfRbI/G11ZpYdNAnBs70lFVMNdHJI76XYtR+7m0MN+eAs7UHBPhWXcnFPaS+9owSCJQHNpQ==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.15.4", - "@types/react-redux": "^7.1.20", - "hoist-non-react-statics": "^3.3.2", - "loose-envify": "^1.4.0", - "prop-types": "^15.7.2", - "react-is": "^17.0.2" - }, - "peerDependencies": { - "react": "^16.8.3 || ^17 || ^18" - }, - "peerDependenciesMeta": { - "react-dom": { - "optional": true - }, - "react-native": { - "optional": true - } - } - }, - "node_modules/react-beautiful-dnd/node_modules/redux": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz", - "integrity": "sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.9.2" - } - }, "node_modules/react-dom": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", diff --git a/package.json b/package.json index eef1e9b..7e3fcb5 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "dev": "vite", "build": "tsc -b && vite build", + "build:fix": "npm run lint-fix && tsc -b && vite build", "tsc": "tsc -b", "lint": "eslint .", "preview": "vite preview", @@ -13,15 +14,12 @@ "format:write": "prettier --write \"**/*.{js,jsx,ts,tsx,mdx}\" --cache", "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,mdx}\" --cache", "deploy:stg": "npm run lint-fix && npm run build && firebase deploy --only hosting:stg", - "deploy:stg:skipchecks": "npm run build && firebase deploy --only hosting:stg", "deploy:prd": "npm run lint-fix && npm run build && firebase deploy --only hosting:prd", - "deploy:prd:skipchecks": "npm run build && firebase deploy --only hosting:prd", "check-updates": "npx npm-check-updates -i", "docs": "jsdoc -c jsdoc.conf.json", "npm-check": "npm-check" }, "dependencies": { - "@andypf/json-viewer": "^2.1.7", "@emotion/styled": "^11.14.0", "@faker-js/faker": "^9.3.0", "@hello-pangea/dnd": "^17.0.0", @@ -38,7 +36,6 @@ "material-ui-confirm": "^3.0.16", "prop-types": "^15.8.1", "react": "^18.3.1", - "react-beautiful-dnd": "^13.1.1", "react-dom": "^18.3.1", "react-easy-crop": "^5.2.0", "react-helmet-async": "^2.0.5",