Skip to content

Commit

Permalink
refactor: Remove all the unused components and replace yarn with npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazhari committed Aug 29, 2024
1 parent dda2042 commit b4e2a66
Show file tree
Hide file tree
Showing 70 changed files with 27 additions and 5,693 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -16,11 +16,10 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
yarn --frozen-lockfile
yarn lint
yarn type-check
yarn test --coverage
yarn build
npm --frozen-lockfile
npm run lint
npm run type-check
npm run build
env:
CI: true
sonarcloud:
Expand All @@ -33,12 +32,11 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: "20.x"
- name: tests and coverage
run: |
yarn install
yarn lint
yarn test --coverage
npm install
npm run lint
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
Expand Down
13 changes: 6 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
language: node_js
node_js: '12'
cache: yarn
node_js: "20"
cache: npm

install:
- yarn install
- npm install

script:
- yarn lint
- yarn type-check
- yarn test --coverage
- yarn build
- npm run lint
- npm run type-check
- npm run build
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ Check the latest version [here](https://movies-finder-v2.vercel.app/)
### Get Start

- `git clone https://github.com/Lazhari/react-movies-finder.git`
- `yarn`
- `yarn dev`
- `npm install`
- `npm dev`

## License

Expand Down
8 changes: 7 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ['image.tmdb.org'],
remotePatterns: [
{
protocol: 'https',
hostname: 'image.tmdb.org',
},
],
unoptimized: true,
},
}

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"type-check": "tsc --pretty --noEmit",
"lint": "eslint . --ext ts --ext tsx --ext js",
"format": "prettier --write .",
"test": "jest",
"test-all": "yarn lint && yarn type-check && yarn test"
"test": "echo \"Info: tests are removed for the time being\" && exit 0",
"test-all": "npm run lint && npm run type-check && npm run test"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "yarn test-all"
"pre-push": "npm run test-all"
}
},
"lint-staged": {
Expand Down
56 changes: 0 additions & 56 deletions pages_old/404.tsx

This file was deleted.

123 changes: 0 additions & 123 deletions pages_old/actors/[id].tsx

This file was deleted.

91 changes: 0 additions & 91 deletions pages_old/genres/[...genre].tsx

This file was deleted.

Loading

0 comments on commit b4e2a66

Please sign in to comment.