GithubHelp home page GithubHelp logo

testdev's Introduction

Swanky dev container

Intro

Dev container is a Visual Studio Code extension that allows for sharing a full dev environment.

This means you can develop your project inside a preconfigured container with all prerequisites met and correct dependencies installed. This includes Rust compiler, cargo contract and swanky-cli.

Prerequisites

To run the container, you will need:

More detailed information on system requirements can be found here.

Software versions

Swanky dev container comes with cargo contract v2 and swanky-cli v3 installed, supporting and optimized for ink! v4 and above. If you need an older version, please refer to the environmet setup docs and swanky-cli update guide

Usage

  • This is a template repo, create a new repo from this template, or clone it
  • open the repo in VS Code

There should be a popup in the lower-right offering you to open the container. Click "Reopen in Container".

You can also click on the green button on the lower-left to open the dev container commands menu, and select "Reopen in container" from there.

Terminal

To interact with your project (including calling swanky commands), use VS Code integrated terminal.

Updating swanky version

Swanky is installed into /opt/swanky, and the main executable is linked to /usr/local/bin/swanky.

To update the Swanky version you can use the following steps:

sudo rm -rf /opt/swanky /usr/local/bin/swanky
wget -O /tmp/swanky.tar.gz [new_version_url]
sudo tar -xf /tmp/swanky.tar.gz -C /opt
sudo ln -s /opt/swanky/bin/swanky /usr/local/bin/swanky

Adding vscode extensions

Any VS code extensions you need to run during the development in the container need to be specified in the devcontainer.json file.

To add the extensions you want, copy the identifier found in the extension details page into the customizations.vscode.extensions array in devcontainer.json

Add features

Features are "modules" that can be added to the dev container to install additional software or extend the functionality.

Officially supported and community maintained features can be found here, but you can also build your own.

To add a feature, simply copy it's reference into the features field.

Note: not all features are compatible, and some need to be installed in a specific order. Check the readme before adding any.

References

testdev's People

Contributors

midegdugarova avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.