-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopy-statics.bash
More file actions
29 lines (20 loc) · 871 Bytes
/
copy-statics.bash
File metadata and controls
29 lines (20 loc) · 871 Bytes
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
mkdir -p ./dist/ext
# @asimojs/asimo module
cp ./node_modules/@asimojs/asimo/dist/asimo.mjs ./dist/ext/
# preact module
cp ./node_modules/preact/dist/preact.mjs ./dist/ext/
cp ./node_modules/preact/dist/preact.module.js.map ./dist/ext/
# preact/hooks module
cp ./node_modules/preact/hooks/dist/hooks.mjs ./dist/ext/
cp ./node_modules/preact/hooks/dist/hooks.module.js.map ./dist/ext/
# react/jsx-runtime module
cp ./node_modules/preact-jsx-runtime/jsx-runtime.js ./dist/ext/
# @traxjs/trax module
cp ./node_modules/@traxjs/trax/dist/trax.mjs ./dist/ext/
# @traxjs/trax-preact module
cp ./node_modules/@traxjs/trax-preact/dist/trax-preact.mjs ./dist/ext/
# copy dist-bundles to dist
mkdir -p ./dist/assets/dist-bundles
cp ./dist-bundles/*.js ./dist/assets/dist-bundles/
# copy secondary html pages to root - e.g. homer_simpson.html
cp ./dist/public/*.html ./dist