Skip to content

Commit

Permalink
Cleanup internal scripts (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
smithki authored Nov 17, 2020
1 parent 1d077b4 commit 731a8cb
Show file tree
Hide file tree
Showing 5 changed files with 305 additions and 46 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@typescript-eslint/eslint-plugin": "^2.15.0",
"auto": "^9.60.1",
"ava": "^3.4.0",
"cli-glob": "^0.1.0",
"boxen-cli": "^1.0.0",
"eslint": "^6.7.2",
"eslint-import-resolver-typescript": "^2.0.0",
"eslint-plugin-import": "^2.18.2",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

echo
echo "Building Magic Admin SDK for production."
boxen --border-color cyan --dim-border --padding 1 "🏗 Building Magic Admin SDK for production."
echo

# Increase memory limit for Node
Expand Down
2 changes: 1 addition & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

echo
echo "Building Magic Admin SDK for development."
boxen --border-color cyan --dim-border --padding 1 "🏗 Building Magic Admin SDK for development."
echo

# Increase memory limit for Node
Expand Down
6 changes: 1 addition & 5 deletions scripts/test.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
#!/usr/bin/env bash

echo
echo "Running unit tests..."
boxen --border-color cyan --dim-border --padding 1 "🚦 Running unit tests..."
echo

# Increase memory limit for Node
export NODE_OPTIONS=--max_old_space_size=4096

export NODE_ENV=test

if [ -n "$1" ]; then
input=$(echo $(npx glob $1))
fi

export TS_NODE_PROJECT="test/tsconfig.json"
npx nyc --reporter=lcov --reporter=text-summary ava $input
Loading

0 comments on commit 731a8cb

Please sign in to comment.