16 lines
372 B
Bash
16 lines
372 B
Bash
#!/bin/bash
|
|
|
|
source /etc/profile
|
|
|
|
npm install --prefer-offline --loglevel info --unsafe-perm=true --allow-root --build-from-source >> boundle.log
|
|
echo 'copy node_modules to /data/publish/node_packages' >> boundle.log
|
|
|
|
gulp
|
|
|
|
rm -rf ./src
|
|
|
|
tar -zcvf pikachu_be.tar.gz ./
|
|
|
|
mkdir target && mv ./pikachu_be.tar.gz ./target/pikachu_be.tar.gz
|
|
echo 'all done' 2>&1 >> boundle.log
|