Skip to content

Commit 96562ee

Browse files
committed
[explorer/frontend] fix: add scripts
1 parent 7ad2cad commit 96562ee

File tree

6 files changed

+37
-0
lines changed

6 files changed

+37
-0
lines changed

explorer/frontend/scripts/ci/build.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
npm run build

explorer/frontend/scripts/ci/lint.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
npm run lint
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
# generate version.txt to be used in publishing
6+
echo $(npm run version --silent) > version.txt
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
npm install

explorer/frontend/scripts/ci/test.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
if [ "$1" = "code-coverage" ];
6+
then
7+
npm run test:jenkins:cov
8+
cd $(git rev-parse --show-toplevel)/explorer/frontend
9+
mkdir -p .nyc_output && cp ./coverage/coverage-final.json ./.nyc_output
10+
else
11+
npm run test:jenkins
12+
fi
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
npm run build
4+
serve -s build

0 commit comments

Comments
 (0)