Skip to content

Building And Testing

Building

Open a terminal in the project’s directory and run this:

Terminal window
npm run build
Terminal window
yarn run build
Terminal window
pnpm build

Then make sure you’ve added your app to Spicetify’s config by running this:

Terminal window
spicetify config extensions my-app.js
Terminal window
spicetify config custom_apps my-app

Finally, do

Terminal window
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:

Terminal window
npm run watch
Terminal window
yarn run watch
Terminal window
pnpm watch

Then, run Spotify in watch mode:

Terminal window
spicetify watch -le
Terminal window
spicetify watch -la

Building locally

If you want to upload the build files with your repository or just see them, you can do:

Terminal window
npm run build-local
Terminal window
yarn run build-local
Terminal window
pnpm build-local

And the compiled files will be created in a local dist folder.