GithubHelp home page GithubHelp logo

conscript-plugin's Introduction

Setup

This is a plugin for making your own Conscript apps. Get started using it by applying this giter8 template project.

g8 n8han/conscript

The sbt 0.11 project it creates will have conscript-plugin preconfigured, and comes with skeletal sources for your app.

Use

Start an sbt 0.11 interactive session in your project directory.

$ sbt # or whatever you've called your sbt 0.11 script

You'll have a few additional tasks (commands) available.

cs-run app

Runs an app named "app". The name is taken from the directory containing the launchconfig. In the template project, you have src/main/conscript/app/launchconfg so the name here (and eventual script name) is "app".

The cs-run task does a publish-local for the project, produces a temporary finished launchconfig, then invokes the launcher in a separate process. This is a close approximation of how the app will actually be launched in the script produced by Conscript's cs command. Arguments appended to the task will be passed on to the launched program:

cs-run app goodbye world

Alternate Launch

If your app (like the template app) includes a standard runnable class, you can run it directly with sbt's run task. This is a much faster way to test the app as you are developing, since it avoids the overhead of publishing and launching in a separate process.

run goodbye world

It is also similar to running it deployed as a runnable jar that has been built either through assembly or proguard--the most common alternatives to Conscript's local-repository-based launching.

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.