-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: generate sourcemap for minified build
Also added a tiny little acceptance test for easier testing with aegir-test-repo License: MIT Signed-off-by: Victor Bjelkholm <git@victor.earth>
- Loading branch information
Showing
4 changed files
with
90 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#! /usr/bin/env bash | ||
|
||
# Acceptance test for making sure aegir works as we want it to | ||
|
||
set -e | ||
|
||
# Debug | ||
# set -x | ||
|
||
echo "## Creating a link to current AEgir" | ||
npm link | ||
|
||
echo "## Creating test directory" | ||
TEST_DIR=$(mktemp -d) | ||
|
||
cd $TEST_DIR | ||
|
||
echo "## Cloning aegir-test-repo" | ||
git clone https://github.com/ipfs/aegir-test-repo | ||
|
||
cd aegir-test-repo | ||
|
||
echo "## Installing dependencies for aegir-test-repo" | ||
npm install | ||
|
||
echo "## Linking current AEgir into aegir-test-repo" | ||
npm link aegir | ||
|
||
echo "## Running build command" | ||
npm run build | ||
|
||
echo "## Making sure right files were created" | ||
|
||
if [ ! -d "dist" ]; then | ||
echo "'dist/' directory wasn't created correctly " | ||
exit 1 | ||
fi | ||
|
||
if [ ! -e "dist/index.js" ]; then | ||
echo "'dist/index.js' file wasn't created correctly " | ||
exit 1 | ||
fi | ||
|
||
if [ ! -e "dist/index.min.js" ]; then | ||
echo "'dist/index.min.js' file wasn't created correctly " | ||
exit 1 | ||
fi | ||
|
||
if [ ! -e "dist/index.min.js.map" ]; then | ||
echo "'dist/index.min.js.map' file wasn't created correctly " | ||
exit 1 | ||
fi | ||
|
||
echo "## Cleaning up" | ||
rm -rf $TEST_DIR |