Coder Social home page Coder Social logo

continuum-cli-templates's Introduction

Continuum CLI Templates

spawn.json

  • Template directories may contain a file named spawn.json
  • This file contains settings for rendering a directory template
  • The format is as follows
    • inherits path to a spawn template folder that this spawn inherits
      • inherited spawns will process all rules and files of the parents as well as this spawn
    • globals contains all values that will be provided by default if not overridden by the user
    • propertySchema is the JSON schemas for all available properties that must be provided by the user
      • If you provide a default this will be presented as the default to the user
      • The default can use a liquid.js expression that will be populated with values in the context
      • A description can be used to prompt the user for the value if not supplied

Example:

{
  "inherits": "../applicationCommon",
  "globals": {
    "groovyVersion": "3.0.6",
    "springBootVersion": "2.6.3",
    "springDependencyManagementVersion": "1.0.11.RELEASE",
    "continuumVersion": "1.0-SNAPSHOT"
  },
  "propertySchema":{
    "applicationName": {
      "type": "string",
      "description": "Application Name"
    },
    "groupId": {
      "type": "string",
      "description": "Maven Group Id"
    },
    "artifactId": {
      "type": "string",
      "description": "Maven Artifact Id"
    },
    "basePackage": {
      "type": "string",
      "description": "Base java package for application",
      "default": "{{groupId}}.{{artifactId}}"
    },
    "javaVersion": {
      "type": "string",
      "enum": ["8", "11", "17"],
      "default": "17",
      "description": "Java source compatibility version"
    }
  }
}

continuum-cli-templates's People

Contributors

navidmitchell avatar

Watchers

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