File: test.sh

package info (click to toggle)
node-crc 3.8.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,236 kB
  • sloc: python: 3,073; xml: 632; javascript: 414; ansic: 227; sh: 218; makefile: 24
file content (17 lines) | stat: -rwxr-xr-x 326 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash -e

cd webpack-test

if [ ! -d node_modules ]; then
  npm install
  ln -s $(cd .. && pwd) node_modules/crc
fi

$(npm bin)/webpack --mode=production

if [[ "$(node output.js)" != "222957957 222957957" ]]; then
  echo "👎 Webpack bundle didn't produce expected output!"
  exit 1
fi

echo "👍 Webpack bundle ok!"