Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion archive-static-sites/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,16 @@ npm run build
# Zip it up
Set-Location -Path "dist"
Compress-Archive -Path * -DestinationPath "../../../build/x-archive.zip" -Force
Set-Location -Path "../.."
Set-Location -Path "../.."

# Build the Facebook archive static site
Write-Output ">> Building Facebook archive static site..."
Set-Location -Path "facebook-archive"
Remove-Item -Recurse -Force "dist" -ErrorAction SilentlyContinue
npm install
npm run build

# Zip it up
Set-Location -Path "dist"
Compress-Archive -Path * -DestinationPath "../../../build/facebook-archive.zip" -Force
Set-Location -Path "../.."
32 changes: 19 additions & 13 deletions archive-static-sites/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,23 @@
# Change to the directory of the script
cd "$(dirname "$0")"

# Build the archive static site
echo ">> Building X archive static site..."
rm -f x-archive/public/assets/archive.js
cd x-archive
rm -r dist || true
npm install
npm run build
build_archive_site() {
site=$1
echo ">> Building ${site} archive static site..."
rm -f ${site}-archive/public/assets/archive.js
cd ${site}-archive
rm -r dist || true
npm install
npm run build

# Zip it up
cd dist
mkdir -p ../../../build/
rm -f ../../../build/x-archive.zip
zip -r ../../../build/x-archive.zip .
cd ../..
# Zip it up
cd dist
mkdir -p ../../../build/
rm -f ../../../build/${site}-archive.zip
zip -r ../../../build/${site}-archive.zip .
cd ../..
}

# Build each site
build_archive_site x
build_archive_site facebook
24 changes: 24 additions & 0 deletions archive-static-sites/facebook-archive/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# facebook-archive

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
Loading