mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 13:36:31 +02:00
25 lines
572 B
Bash
Executable file
25 lines
572 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# echo "Printing Empty Directory"
|
|
# ls -R -a
|
|
|
|
# echo "Printing piston files"
|
|
# cd /piston/packages/gleam/0.27.0/
|
|
# ls -R -a
|
|
|
|
|
|
gleam new project --skip-git
|
|
mkdir project/build
|
|
cp /piston/packages/gleam/0.27.0/template_project/build* project -r
|
|
cp /piston/packages/gleam/0.27.0/template_project/manifest.toml project/manifest.toml
|
|
|
|
# cp template_project/build* project -r
|
|
# cp template_project/manifest.toml project/manifest.toml
|
|
|
|
cat $1 > project/src/project.gleam
|
|
|
|
cd project
|
|
# echo "Printing Copied Files"
|
|
# ls -R -a
|
|
gleam build --target=javascript
|
|
|