-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring progress site back from the dead (#1258)
Co-authored-by: FluentCoding <[email protected]>
- Loading branch information
1 parent
221e90a
commit 91747e7
Showing
35 changed files
with
5,022 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/usr/bin/env bash | ||
set -euox pipefail | ||
|
||
apt update | ||
|
||
function install { | ||
apt install -y --no-install-recommends "${@}" | ||
} | ||
|
||
install curl ca-certificates | ||
|
||
curl -L https://deb.nodesource.com/setup_20.x | bash - | ||
|
||
install \ | ||
doxygen \ | ||
git \ | ||
libarchive-tools \ | ||
nodejs \ | ||
python-is-python3 \ | ||
python3-full | ||
|
||
# Acquire external assets | ||
git clone --no-checkout --depth=1 \ | ||
'https://github.com/doldecomp/assets.git' \ | ||
/tmp/assets | ||
pushd /tmp/assets | ||
git sparse-checkout init --cone | ||
git sparse-checkout set melee | ||
git checkout | ||
mv melee /opt/assets | ||
popd | ||
|
||
# Acquire fonts | ||
fonts_url='https://media.fontsgeek.com/download/zip/a/-/a-otf-folk-pro_WeXVg.zip' | ||
curl -L "$fonts_url" | | ||
bsdtar -xvf- -C /tmp | ||
mv '/tmp/A-OTF Folk Pro/A-OTF Folk Pro M/A-OTF Folk Pro M.otf' \ | ||
'/opt/assets/progress' | ||
|
||
# Install progress site node modules | ||
pushd /tmp | ||
npm install --no-audit --no-progress | ||
mv node_modules /opt | ||
popd | ||
|
||
# Create and update Python venv | ||
python -m venv --upgrade-deps /opt/venv | ||
. /opt/venv/bin/activate | ||
pip install --no-cache-dir -r /tmp/requirements.txt | ||
|
||
# Install melee compiler (for checking ctx.c) | ||
curl -L "$MELEE_COMPILERS_URL" | | ||
bsdtar -xvf- -C /tmp | ||
mv /tmp/GC /tmp/mwcc_compiler | ||
mv /tmp/mwcc_compiler /opt | ||
|
||
# Clean up | ||
apt remove -y \ | ||
libarchive-tools | ||
apt autoremove -y | ||
apt clean | ||
npm cache clean --force | ||
rm -rf /var/lib/apt/lists/* | ||
rm -rf /tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** @type { import("eslint").Linter.Config } */ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:svelte/recommended', | ||
'prettier' | ||
], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2020, | ||
extraFileExtensions: ['.svelte'] | ||
}, | ||
env: { | ||
browser: true, | ||
es2017: true, | ||
node: true | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.svelte'], | ||
parser: 'svelte-eslint-parser', | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser' | ||
} | ||
} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
**/extern/* | ||
!**/extern/.gitkeep | ||
|
||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
vite.config.js.timestamp-* | ||
vite.config.ts.timestamp-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
engine-strict=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"tabWidth": 4, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"printWidth": 100, | ||
"plugins": ["prettier-plugin-svelte"], | ||
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] | ||
} |
Oops, something went wrong.