Skip to content

Commit 11c19d8

Browse files
committed
add build script for esbuild
1 parent 5aa8f65 commit 11c19d8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
# Find all .js files
4+
FILES=$(find -E ./src -regex ".*.js")
5+
6+
# Compile with esbuild
7+
esbuild $FILES --minify --outdir=lib --platform=node --format=cjs --target=node12
8+
9+
# A bit annoying, but let's copy the css file that we require
10+
mkdir -p ./lib/plugins/css
11+
cp ./src/plugins/css/preflight.css ./lib/plugins/css/preflight.css

0 commit comments

Comments
 (0)