JSPM

@grams-dev/contributors

0.0.5
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q56168F
    • License Apache-2.0

    Streamlining the setup process and providing essential tools that facilitate efficient contributions to Grams.

    Package Exports

    • @grams-dev/contributors
    • @grams-dev/contributors/bin/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@grams-dev/contributors) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Grams Contributors

    Boost your productivity and streamline your open-source collaboration with Grams, an innovative decentralized platform that is reshaping the digital landscape. Our package, @grams-dev/contributors, simplifies your setup, enabling you to dedicate more time to coding and less time to configuration.

    Prerequisites

    Before you get started, make sure you have the following installed:

    • Windows Subsystem for Linux (WSL): WSL allows developers to run a GNU/Linux environment directly on Windows. Open PowerShell as Administrator and run wsl --install. Ignore this step if you are on mac or linux.
    • Docker: Docker is an open platform for developing, shipping, and running applications. Download and install Docker.
    • Node Version Manager (NVM): A version manager for Node.js, simplifying the process of managing different versions of Node.js on a single system. Download and install NVM or NVM for Windows.

    After installing NVM, install the latest version of Node.js by typing nvm install node in your terminal.

    Make sure to run gh auth login because all your interactions with git will be through Github's CLI.

    Setting Up Grams Contributor's Environment

    The Grams project spans across multiple repositories. To help you navigate this complexity, we've developed the @grams-dev/contributors package. This tool clones the necessary repositories and sets up their dependencies with ease.

    Install the contributors package globally using npm:

    npm install -g @grams-dev/contributors

    Usage

    Note that the CLI works on a workspace level, it is recommended to use it where you want to setup your vscode workspace file.

    gcx <command> [options]

    Commands

    Setup

    This command will set up the repositories for development. It either clones the Grams repositories directly or forks them into your GitHub account if you provide your GitHub username. Defaults to setting up everything.

    gcx setup [ghuser] [options]

    Arguments:

    • ghuser: Your GitHub username. If specified, repositories will be forked into your account. If not specified, you will just clone the grams-dev repositories.

    Options:

    • -a, --all: Setup everything, this might take a while.
    • -k, --knowledgebase: Setup the knowledge base including wiki and gip.
    • -l, --libraries: Setup libraries only.
    • -p, --platform <platform>: Setup platform specific repositories (browser, mobile, desktop, vscode). If no platform is specified, all platforms will be set up.
    • -r, --repository <repository>: Setup specific repository.
    • -s, --resources: Setup resources only.
    • -w, --website: Setup the website only.

    Examples

    gcx setup <mygithubusername> -r mobile
    gcx setup -w

    Update

    This command will update the npm dependencies for a repository.

    gcx update <repository>

    Examples

    gcx update desktop
    gcx update dapps

    Build

    This command will build the specified repository.

    gcx build <repository>

    Examples

    gcx build wiki
    gcx build i18n

    Start

    This command will start the specified repository.

    gcx start <repository>

    Examples

    gcx start ui
    gcx start extension

    Run

    This command will run any command within a repository.

    gcx run <repository> <command>

    Examples

    gcx run mobile android
    gcx run desktop electron

    Global Options

    • -v, --version: Show current version.
    • -h, --help: Show help information.

    Help

    You can access the help section by running gcx --help. This command will display a list of all available commands and options you can use with the Grams Contributors CLI.