Add build script
This commit is contained in:
parent
2cccb73fb6
commit
5a47867538
4 changed files with 27 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -2,6 +2,7 @@
|
||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
# output
|
# output
|
||||||
|
bin
|
||||||
out
|
out
|
||||||
dist
|
dist
|
||||||
*.tgz
|
*.tgz
|
||||||
|
@ -32,3 +33,5 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
|
||||||
|
|
||||||
# Finder (MacOS) folder config
|
# Finder (MacOS) folder config
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
*.html
|
||||||
|
|
21
.run/build
Executable file
21
.run/build
Executable file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# Cross-complile buildmd
|
||||||
|
|
||||||
|
# Clean
|
||||||
|
rm -rf bin
|
||||||
|
|
||||||
|
# Linux x64
|
||||||
|
bun build --compile --target=bun-linux-x64 ./src/index.ts --outfile bin/buildmd-linux-x64
|
||||||
|
|
||||||
|
# Linux Arm64
|
||||||
|
bun build --compile --target=bun-linux-arm64 ./src/index.ts --outfile bin/buildmd-linux-arm64
|
||||||
|
|
||||||
|
# Windows x64
|
||||||
|
bun build --compile --target=bun-windows-x64 ./src/index.ts --outfile bin/buildmd-windows-x64
|
||||||
|
|
||||||
|
# Apple Silicon
|
||||||
|
bun build --compile --target=bun-darwin-arm64 ./src/index.ts --outfile bin/buildmd-apple-silicon
|
||||||
|
|
||||||
|
# Legacy Apple
|
||||||
|
bun build --compile --target=bun-darwin-x64 ./src/index.ts --outfile bin/buildmd-apple-intel
|
||||||
|
|
|
@ -48,3 +48,4 @@ If no template file is discovered, `buildmd` will inject a default template that
|
||||||
`buildmd` will automatically look for a `_style.css` file in the current working directory, unless an alternate stylesheet is specified with the `--stylesheet` or `-s` option. The contents of the discovered stylesheet file will be available in the template as `%stylesheet%`.
|
`buildmd` will automatically look for a `_style.css` file in the current working directory, unless an alternate stylesheet is specified with the `--stylesheet` or `-s` option. The contents of the discovered stylesheet file will be available in the template as `%stylesheet%`.
|
||||||
|
|
||||||
In the event that no stylesheet is found, `buildmd` will inject a default stylesheet.
|
In the event that no stylesheet is found, `buildmd` will inject a default stylesheet.
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
{
|
{
|
||||||
"name": "packmd",
|
"name": "@endeavorance/packmd",
|
||||||
"module": "index.ts",
|
"module": "index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"version": "0.0.1",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/bun": "latest"
|
"@types/bun": "latest"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue