python-jupyter-ydoc/create_node_modules.sh
Benjamin Greiner 532576a6a4 Accepting request 1063595 from home:bnavigator:branches:devel:languages:python:jupyter
- Initial specfile for v0.3.1
- Required by jupyterlab 3.6
- Provide node_modules.tar.xz generated by create_node_modules.sh
  for the tests. Those modules are not part of the python package

OBS-URL: https://build.opensuse.org/request/show/1063595
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-ydoc?expand=0&rev=3
2023-02-07 09:48:04 +00:00

26 lines
531 B
Bash

#!/bin/sh
#
# Script to create node_modules.tar.xz for the tests.
# Adapted from .github/workflows/test.yml
# Execute this in an extracted github archive/cloned repository
# Note: The pathname MUST NOT include any ':' as is common
# in checked out obs package directories.
# requires: yarn, npm
pushd javascript
yarn
yarn build
popd
pushd tests
npm install
popd
tar cJf node_modules.tar.xz \
yarn.lock \
package-lock.json \
node_modules \
javascript/lib \
javascript/node_modules \
javascript/tsconfig.tsbuildinfo