Benjamin Greiner
532576a6a4
- 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
26 lines
531 B
Bash
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
|
|
|