diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 00000000..593ac77a --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,35 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) +# and commit this file to your remote git repository to share the goodness with others. + +# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart + +ports: + - name: Swanky Node + port: 9944 + +vscode: + extensions: + - rust-lang.rust-analyzer + +tasks: + - init: | + # Add wasm target + rustup target add wasm32-unknown-unknown + + # Add necessary components + rustup component add rust-src + + # Install or update cargo packages + cargo install --force --locked cargo-contract + cargo install cargo-dylint dylint-link + + yarn install + yarn build + command: | + echo "Swanky Dev Environment ready!" + echo "Use Swanky directly by running \"./bin/run.js COMMAND\"" + echo "For example:" + echo "./bin/run.js init temp_project" + echo "cd temp_project" + echo "../bin/run.js contract compile flipper"