The scripts portion of a package.json file used for Shopify theme development.
To run use the command npm run build
.
Watch and build JS files in the _src/js/
folder.
This will create a minified file and a debug version (including a sourcemap) for development, and add them to the assets folder.
We also watch for changes the main theme.js file in the assets folder and then minify this for production.