File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ storybook-static/
15
15
16
16
# development workflows
17
17
.node_modules /
18
+ exposed /
18
19
19
20
* .orig
20
21
* .rej
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ exposed_directory=${PWD} /exposed
4
+
5
+ # Clean out the exposed directory and recreate it
6
+ rm -rf " ${exposed_directory} " && mkdir -p " ${exposed_directory} "
7
+
8
+ # Link the various pieces we need to make it look like our package
9
+ for f in src $( node -p ' (require("./package.json").files || []).join("\n")' ) ; do
10
+ ln -s " ../${f} " " ${exposed_directory} /${f} "
11
+ done
12
+ # Hardlink files such as package.json to prevent smart tools trying to bork things.
13
+ for f in package.json; do
14
+ ln " ${f} " " ${exposed_directory} /${f} "
15
+ done
16
+ (cd " ${exposed_directory} " && NODE_ENV=production npm link)
17
+
18
+ npm install
19
+ npm run build -- --watch
You can’t perform that action at this time.
0 commit comments