Building And Testing
Building​
Open a terminal in the project's directory and run this:
- npm
- Yarn
- pnpm
npm run build
yarn run build
pnpm build
Then make sure you've added your app to Spicetify's config by running this:
- Extension
- Custom App
spicetify config extensions my-app.js
spicetify config custom_apps my-app
Finally, do
spicetify apply
and you'll see your app in Spotify.
Watching​
Please first build your app at least once before watching.
Watching means that it'll rebuild the app every time the code changes.
Go into your project's directory and enter the following command:
- npm
- Yarn
- pnpm
npm run watch
yarn run watch
pnpm watch
Then, run Spotify in watch mode:
- Extension
- Custom App
spicetify watch -le
spicetify watch -la
Building locally​
If you want to upload the build files with your repository or just see them, you can do:
- npm
- Yarn
- pnpm
npm run build-local
yarn run build-local
pnpm build-local
And the compiled files will be created in a local dist
folder.