mirror of
https://github.com/FuelLabs/sway.git
synced 2025-08-09 05:08:17 +00:00

* added sway highlight.js * added higlightjs/sway and its build script * added initial prism for sway * added script for prism * added prism-sway and instructions * rename to all caps * update build scripts * added missing dots
22 lines
427 B
Bash
22 lines
427 B
Bash
#!/bin/bash
|
|
project="prism"
|
|
components="components.json"
|
|
sway="prism-sway.js"
|
|
|
|
if ! test -d ./${project}; then
|
|
git clone git@github.com:PrismJS/prism.git
|
|
fi
|
|
|
|
cp ${sway} ${project}/components
|
|
cp ${components} ${project}
|
|
cd ${project}
|
|
npm ci
|
|
|
|
npm run build
|
|
cp components/prism-sway.min.js ../prism-sway.min.js
|
|
|
|
# add "keep" in order to keep highlight.js repo
|
|
if [[ ${1} != "keep" ]]; then
|
|
cd ../
|
|
rm -rf ${project}
|
|
fi
|