File create_node_modules.sh of Package python-nbclassic

#!/bin/sh
#
# Script to create node_modules.tar.xz
# needs bower, webpack and webpack-cli installed

yarn install
yarn run build
# Copy components
pushd nbclassic/static/components/
for i in $(find . -type d)
do
    cp -rf $i ../../../node_modules
done
ls > ../../../node_modules/components.txt
popd

tar cJf node_modules.tar.xz node_modules
openSUSE Build Service is sponsored by