File: pack_and_store_artifact.sh

package info (click to toggle)
node-react 17.0.1%2Bdfsg%2B~cs106.58.5-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 23,976 kB
  • sloc: javascript: 280,795; cpp: 1,326; sh: 84; makefile: 27
file content (15 lines) | stat: -rwxr-xr-x 385 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

set -e

# Compress build directory into a single tarball for easy download
tar -zcvf ./build.tgz ./build

# NPM pack all modules to ensure we archive the correct set of files
cd ./build/node_modules
for dir in ./* ; do
  npm pack "$dir"
done

# Compress packed modules into a single tarball for easy download by the publish script
tar -zcvf ../../node_modules.tgz ./*.tgz