kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Switch to Deno
rodzic
058917b22f
commit
094e886da0
|
@ -1,4 +1,4 @@
|
|||
image: node:22
|
||||
image: denoland/deno:2.0.5
|
||||
|
||||
default:
|
||||
interruptible: true
|
||||
|
@ -10,12 +10,12 @@ stages:
|
|||
build:
|
||||
stage: build
|
||||
before_script:
|
||||
- yarn install --ignore-scripts
|
||||
- deno install
|
||||
- apt-get update -y && apt-get install -y zip
|
||||
script:
|
||||
- yarn lint
|
||||
- yarn i18n && git diff --quiet || (echo "Locale files are out of date. Please run `yarn i18n`" && exit 1)
|
||||
- NODE_ENV=production yarn build
|
||||
- deno task lint
|
||||
- deno task i18n && git diff --quiet || (echo "Locale files are out of date. Please run `deno task i18n`" && exit 1)
|
||||
- NODE_ENV=production deno task build
|
||||
- cp dist/index.html dist/404.html
|
||||
- cd dist && zip -r ../soapbox.zip . && cd ..
|
||||
artifacts:
|
||||
|
|
|
@ -1 +1 @@
|
|||
nodejs 21.4.0
|
||||
deno 2.0.5
|
Plik diff jest za duży
Load Diff
|
@ -99,6 +99,7 @@
|
|||
"clsx": "^2.0.0",
|
||||
"comlink": "^4.4.1",
|
||||
"cssnano": "^6.0.0",
|
||||
"csstype": "^3.1.3",
|
||||
"detect-passive-events": "^2.0.0",
|
||||
"emoji-datasource": "15.0.1",
|
||||
"emoji-mart": "^5.6.0",
|
||||
|
|
|
@ -51,7 +51,7 @@ export function useNostrReq(filters: NostrFilter[]): { events: NostrEvent[]; eos
|
|||
}, [relay, value]);
|
||||
|
||||
return {
|
||||
events: [...nset.current],
|
||||
events: [...nset.current.values()],
|
||||
eose,
|
||||
closed,
|
||||
};
|
||||
|
|
|
@ -23,6 +23,7 @@ import type { AppDispatch } from 'soapbox/store';
|
|||
// Mock Redux
|
||||
// https://redux.js.org/recipes/writing-tests/
|
||||
const rootState = rootReducer(undefined, {} as Action);
|
||||
// @ts-ignore idk
|
||||
const mockStore = configureMockStore<typeof rootState, AnyAction, AppDispatch>([thunk]);
|
||||
|
||||
/** Apply actions to the state, one at a time. */
|
||||
|
|
Ładowanie…
Reference in New Issue