SendBird Desk SDK JavaScript
v1.1.4
此專案提供適用於 JavaScript 的 SendBird Desk SDK,其中包括適用於 JavaScript 的 SendBird 訊息傳遞 SDK、SendBird Desk SDK Core 和 SendBird Desk Widget 範例
注意:請確保您安裝了node-js 18和npm v9或更高版本
npm install
npm run build
注意:我們使用dts-bundle-generator
因為我們需要 SDK 的單一d.ts
檔。當我們嘗試在tsconfig.json
中使用declaration: true
時, rollup-plugin-typescript2
會出錯。
將.env.example
複製到.env
並填入值。
這些變數也應該在circle-ci 中設定。 https://app.circleci.com/settings/project/github/sendbird/desk-js/environment-variables
注意:環境變數可以在 1password - Engineering/desk_staging_e2e_test 中找到 要在儀表板中以管理員身份登錄,請使用 1password 中的
E2E Admin - Dev
我們使用 jest 和 js-dom 進行測試測試案例位於test/cases
目錄中並命名為 `*.test.ts
注意:盡量不要在自動監視模式下執行測試。我們將為每個測試案例連接並斷開與伺服器的連接
npm run test
release/v#.#.##
。package.json
檔案中的版本。npm run build; npm publish --tag beta
npm run build; npm publish
CHANGELOG
、 LICENSE
、 dist
和package.json
複製到https://github.com/sendbird/SendBird-Desk-SDK-JavaScript
repo 主分支。 npm run format
或(在 Visual Studio Code 中)安裝Prettier - Code formatter
程式。開啟要調整更漂亮的文件,選擇全部( cmd+a
),以及cmd+k, cmd+f
。
npm run lint