Files
insomnia/scripts/build.sh
Gregory Schier 860353474a Sidebar Sorting (#25)
* Got request moving working but is pretty messy

* Can now drag between groups

* Minor stuff

* Prevent deletion of last workspace

* Fixed some things

* Copy-pasta RequestGroup drag-n-drop

* Closes #2
2016-07-19 09:59:26 -07:00

30 lines
671 B
Bash

#!/bin/bash
#? Package the app
BUILD_DIR='./build'
echo "-- REMOVING DIST FOLDER --"
rm -r "$BUILD_DIR/*"
echo "-- BUILDING PRODUCTION APP --"
NODE_ENV=production node -r babel-register ./node_modules/.bin/webpack --config ./webpack/webpack.config.production.js
echo "-- COPYING REMAINING FILES --"
# Copy package JSON
# TODO: Remove the need for both of these
cp app/app.json "$BUILD_DIR/package.json"
cp app/app.json "$BUILD_DIR/app.json"
# Copy some things
cp app/app.js "$BUILD_DIR/"
cp -r app/images "$BUILD_DIR/"
cp -r app/external "$BUILD_DIR/"
echo "-- INSTALLING PACKAGES --"
cd "$BUILD_DIR"/
NODE_ENV=production npm install
echo "-- BUILD COMPLETE --"