mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 01:18:12 +08:00
Add auto deployment infrastructure for website
This commit is contained in:
@@ -18,7 +18,7 @@ module.exports = {
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, "public/build"),
|
||||
publicPath: "/build/",
|
||||
publicPath: "./build/",
|
||||
filename: "[name].js"
|
||||
},
|
||||
module: {
|
||||
|
||||
+14
-8
@@ -1,21 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo 🔧 Install Rust
|
||||
echo 📁 Create output directory in 'website/other/dist'
|
||||
cd website/other
|
||||
mkdir dist
|
||||
|
||||
echo 🔧 Install the latest Rust
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||
export PATH=$PATH:/opt/buildhome/.cargo/bin
|
||||
rustup update stable
|
||||
echo rustc version:
|
||||
rustc --version
|
||||
|
||||
echo 🚧 Install Node dependencies
|
||||
echo 🚧 Print installed node and npm versions
|
||||
echo node version:
|
||||
node --version
|
||||
echo npm version:
|
||||
npm --version
|
||||
|
||||
echo 👷 Build Bezier-rs demos to 'website/other/dist/libraries/bezier-rs'
|
||||
mkdir dist/libraries
|
||||
mkdir dist/libraries/bezier-rs
|
||||
cd bezier-rs-demos
|
||||
npm ci
|
||||
|
||||
echo 👷 Build Bezier-rs Demos
|
||||
export NODE_ENV=production
|
||||
npm run build-prod-unix
|
||||
mkdir ../../public/libraries
|
||||
mv public ../../public/libraries/bezier-rs
|
||||
NODE_ENV=production npm run build-prod-unix
|
||||
mv public/* ../dist/libraries/bezier-rs
|
||||
cd ..
|
||||
|
||||
Reference in New Issue
Block a user