Code Monkey home page Code Monkey logo

vc-dev-tools's Introduction

vc-dev-tools

Tools for automating routine Virto Commerce developing processes.

Features

  • Mass clone and update from git repositories
  • Mass build for modules
  • Module, theme, storefront and common types of repositories supported
  • Multi-configuration support. Prepare independent configurations and switch between them easily.
  • Multi-branch support
  • Mass create symbolic links for Virto Commerce modules
  • Fast IIS Application Pool recycle

Prerequisittes

  • Node.js
  • npm
  • Virto Commerce Platform running on local IIS (dedicated Application Pool)

Setup

  1. Download / clone the tools repository;
  2. Run npm install;
  3. Configure environment in .env file:
    • CONFIG - name for currently active configuration
    • LOGIN - username for repository authentication
    • PASSWORD - password for repository authentication
  4. Prepare the configuration:
    1. Create a copy of config.json for active configuration (defined in previous step): config.{active configuration}.json
    2. Configuration:
    • directories.repositoriesRoot - local root folder for the repositories
    • directories.platformModulesRoot - Modules folder location for VC Platform
    • build.msbuildPath - full path to msbuild.exe. Note: the path depends on Visual Studio version and edition.
    • build.nugetPath - path to nuget.exe. It's ok to leave the default value.
    • iis.appcmdPath - path to "IIS command line administration tool" (appcmd.exe). It's ok to leave the default value.
    • iis.apppool - name of IIS Application Pool used by VC Platform application
    • branch.all - array of branches to pull while updating the repositories
    • repositories - array of repositories. Single entry structure:
      {
          "name": "default",  // custom name for the repository
          "type": "theme",    // { module | storefront | theme }
          "url": "https://github.com/VirtoCommerce/vc-theme-default" // repository URL
      },
      

Usage

  • npm run init - clone all repositories
  • npm run update - update all repositories (all branches defined in branch.all)
  • npm run build-modules - restore nuget packages and build modules
  • npm run mklinks - create directory symbolic links for each module in directories.platformModulesRoot (elevated permissions needed)
  • npm run restart-iis - recycle Application Pool defined in iis.apppool (elevated permissions needed).

vc-dev-tools's People

Contributors

olegoo avatar vitalytartynov 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.