This repository has been archived by the owner on Sep 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_node_modules.sh
executable file
·65 lines (46 loc) · 1.83 KB
/
setup_node_modules.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
COPY=${1:-all}
INSTALL=${2:-~/src/jbrowse-components}
TARGET=`pwd`
echo $TARGET;
if [ $COPY = "all" ] || [ $COPY = "core" ]
then
cd $INSTALL/packages/core
yarn build && rm -rf $TARGET/node_modules/@jbrowse/core && cp -R dist $TARGET/node_modules/@jbrowse/core;
fi;
if [ $COPY = "all" ] || [ $COPY = "lgv" ]
then
cd $INSTALL/plugins/linear-genome-view;
yarn build && rm -rf $TARGET/node_modules/@jbrowse/plugin-linear-genome-view && cp -R dist $TARGET/node_modules/@jbrowse/plugin-linear-genome-view;
fi;
if [ $COPY = "all" ] || [ $COPY = "jblgv" ]
then
cd $INSTALL/products/jbrowse-react-linear-genome-view;
yarn build && rm -rf $TARGET/node_modules/@jbrowse/react-linear-genome-view && cp -R dist $TARGET/node_modules/@jbrowse/react-linear-genome-view;
fi;
if [ $COPY = "all" ] || [ $COPY = "wiggle" ]
then
cd $INSTALL/plugins/wiggle
yarn build && rm -rf $TARGET/node_modules/@jbrowse/plugin-wiggle && cp -R dist $TARGET/node_modules/@jbrowse/plugin-wiggle
fi;
if [ $COPY = "all" ] || [ $COPY = "sequence" ]
then
cd $INSTALL/plugins/sequence
yarn build && rm -rf $TARGET/node_modules/@jbrowse/plugin-sequence && cp -R dist $TARGET/node_modules/@jbrowse/plugin-sequence
fi;
if [ $COPY = "all" ] || [ $COPY = "variants" ]
then
cd $INSTALL/plugins/variants
yarn build && rm -rf $TARGET/node_modules/@jbrowse/plugin-variants && cp -R dist $TARGET/node_modules/@jbrowse/plugin-variants
fi;
if [ $COPY = "all" ] || [ $COPY = "svg" ]
then
cd $INSTALL/plugins/svg/
yarn build && rm -rf $TARGET/node_modules/@jbrowse/plugin-svg && cp -R dist $TARGET/node_modules/@jbrowse/plugin-svg
fi;
if [ $COPY = "all" ] || [ $COPY = "alignments" ]
then
cd $INSTALL/plugins/alignments/
yarn build && rm -rf $TARGET/node_modules/@jbrowse/plugin-alignments && cp -R dist $TARGET/node_modules/@jbrowse/plugin-alignments
fi;
cd $TARGET;