tidal-music/tidal-sdk-web
Tentang
TIDAL SDK for Web
Alat pengembanganPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +1
- dalam 15 hari
- +2
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliTIDAL SDK for Web
The TIDAL SDK for Web enables fast prototyping and development of new web apps built on TIDAL Developer Platform by providing core functionality in a set of easy-to-use software modules.
The TIDAL SDK for Web serves as a complement to, and extension of, the TIDAL API, meaning that some functionality provided by the TIDAL Developer Platform will only be made available through the TIDAL SDK, whereas some functionality will be available via both the TIDAL API and the TIDAL SDK.
Documentation
All public modules are documented and described. Please also have a look at the examples in the modules since they show more of the use cases.
Development (of the SDK)
git clone [email protected]:tidal-music/tidal-sdk-web.git
cd ./tidal-sdk-web
# install deps
pnpm i
# run tests in all packages
pnpm test
# go to the package dir you want to work on
cd ./packages/event-producer
pnpm dev
Update workspace dependencies
Normally handled by Renovate, but if you need to do it manually:
pnpm update --interactive --latest --recursive
# can also trim some sub-dependencies with:
pnpm update
pnpm dedupe
Create a new module
Run:
./bin/generate-module.sh
And follow the prompts.
Create a module release
Bump your module's version to the desired value in your module's
package.jsonfile. You'll find an entry looking like this:"version": "0.0.1",Change
versionto the new value. Follow Semantic Versioning. Also, you cannot downgrade - the CI/CD pipeline will refuse to work with downgrades.Update the module's changelog file with the changes that will be introduced in the new version.
Open a Pull Request with your version bump and changelog update, get it approved and merge it. A release draft will be created for the module you changed.
Find your draft in the releases list and add some meaningful sentences about the release, changelog style (Note: We should automate and regulate changelog creation, but for now, you are free to just type).
Check in with your teammates, lead, the module's owner etc. to make sure the release is ready to go.
Click
Publishat the bottom of your draft release. This will trigger a workflow to tag the release commit and attach artifacts to the release. It will also trigger publishing the package toNpm, where it should appear under @tidal-music Npm org shortly!
@tidal-music/api releases automatically
The api module is generated from the published TIDAL API spec, and nobody needs to step in to release it:
- Every night,
check-tidalapi-spec.ymlchecks for spec changes. If there are any, it regenerates the types, bumps the minor version, and writes a changelog entry listing the endpoints and schemas that were added, changed or removed. It then opens a PR, or updates the open one. - The PR is approved automatically and set to auto-merge, so it merges once the required checks pass.
- On merge, the draft release is created as usual. The package is then published to npm, and the release is published with the changelog entry as its notes.
Auto-merge needs the ACTIONS_PAT org secret (from tidal-tools, which must have write access to this repo), and Run Unit Tests / Run Unit Tests must be a required status check on main. Without either, the PR is still opened but has to be approved and merged by hand.
Jelajahi proyek terkait
Memuat…