Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit c448dcc

Browse files
authored
chore: cleanup types warnings (#1367)
* chore: rmt log spec, rm warnings * chore: rmt log spec, rm warnings * chore: update ci action * fix: ziToast type * chore: rm audit warnings * fix: ziToast type * fix: use npm in ci * fix: use global interface
1 parent 1ef65e9 commit c448dcc

File tree

232 files changed

+1188
-947
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+1188
-947
lines changed

.github/workflows/ci.yml

+13-17
Original file line numberDiff line numberDiff line change
@@ -61,35 +61,31 @@ jobs:
6161
fetch-depth: 0
6262
repository: 'coderplanets/coderplanets_web'
6363
path: 'frontend_server'
64-
65-
- name: Get yarn cache directory path
66-
id: yarn-cache-dir-path
67-
run: echo "::set-output name=dir::$(yarn cache dir)"
68-
69-
- uses: actions/cache@v2
70-
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
71-
with:
72-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
73-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
74-
restore-keys: |
75-
${{ runner.os }}-yarn-
76-
7764
- name: (Frontend) setup node env
7865
uses: actions/setup-node@v2
7966
with:
8067
node-version: '16.13.0'
8168
- name: (Frontend) Install Packages
8269
working-directory: ./frontend_server
83-
run: yarn
70+
run: npm install
8471
- name: (Frontend) Setup Config CMD Tools
8572
working-directory: ./frontend_server
8673
run: chmod +x ./utils/bin/jq-linux; ./utils/bin/jq-linux -s '.[0] * .[1]' config/config.json config/config.ci.json > /tmp/config.json; cp /tmp/config.json ./config/config.json
8774
- name: (Frontend) Build Project
8875
working-directory: ./frontend_server
8976
run: npm run build.ci
90-
- name: check /etc/hosts
91-
working-directory: ./frontend_server
92-
run: echo "#>>>>#"; cat /etc/hosts; pwd; echo "#>>>>#"
77+
- name: cache the build
78+
uses: actions/cache@v2
79+
with:
80+
path: |
81+
~/.npm
82+
${{ github.workspace }}/.next/cache
83+
# Generate a new cache whenever packages or source files change.
84+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
85+
# If source files changed but packages didn't, rebuild from a prior cache.
86+
restore-keys: |
87+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
88+
9389
# - name: (Frontend) Check Bundle Size
9490
# working-directory: ./frontend_server
9591
# run: BUNDLEWATCH_GITHUB_TOKEN=${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} npm run size.check

global.d.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { IziToast } from 'iziToast'
2+
3+
declare global {
4+
interface IWindow extends Window {
5+
iziToast: IziToast
6+
}
7+
}

0 commit comments

Comments
 (0)