Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitPod config #204

Merged
merged 9 commits into from
Mar 5, 2024
Merged
35 changes: 35 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -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"
Loading