Code Monkey home page Code Monkey logo

cljs-exe's Introduction

cljs-exe

cljs-exe is a Boot template to create a Clojurescript application that will compile to a native binary using nexe.

Clojars Project

Motivation

nexe, on which this project is based, lists these reasons:

  • Ability to run multiple applications with different node.js runtimes.
  • Distributable binaries without needing node / npm.
  • Starts faster.
  • Lockdown specific application versions, and easily rollback.
  • Faster deployments.

I'll second those and add: "In ClojureScript."

Quickstart

You will need

$ brew install boot-clj
$ boot -d boot/new new -S -t cljs-exe -n your_project_name
$ cd your_project_name
$ boot package

This will compile some sample Clojurescript code to Javascript, then compiling the Javascript to a native binary.

Tasks

This project template gives you a few boot tasks:

  • build: runs the Clojurescript compiler with defaults that include: fetching npm dependencies that are listed in the js-dependencies var in build.boot, emitting source maps, and no compiler optimizations.
  • dev: runs build in a watch loop, rerunning build anytime you change a source file.
  • binary: compiles the current project Javascript into a native binary on your platform.
  • package: compiles Clojurescript to Javascript with simple compiler optimizations and no source maps, then compiles that Javascript to a native binary on your platform.

cljs-exe's People

Contributors

ckampfe avatar

Stargazers

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