All Projects β†’ eginez β†’ Calvin

eginez / Calvin

A minimalistic build tool for clojurescript projects that does not require the jvm

Programming Languages

clojure
4091 projects
clojurescript
191 projects

Projects that are alternatives of or similar to Calvin

Baumeister
πŸ‘· The aim of this project is to help you to build your things. From Bootstrap themes over static websites to single page applications.
Stars: ✭ 171 (-5.52%)
Mutual labels:  build-tool, bootstrap
Raspberrypi Ua Netinst
RaspberryPi (minimal) unattended netinstaller
Stars: ✭ 179 (-1.1%)
Mutual labels:  bootstrap
Slider
Touch swipe image slider/slideshow/gallery/carousel/banner mobile responsive bootstrap
Stars: ✭ 2,046 (+1030.39%)
Mutual labels:  bootstrap
Awesome Bootstrap Checkbox
βœ”οΈFont Awesome Bootstrap Checkboxes & Radios. Pure css way to make inputs look prettier
Stars: ✭ 2,044 (+1029.28%)
Mutual labels:  bootstrap
Bdialog
Extend the Bootstrap Modal features, making dialog more functions and easier to use, dialog type including modal, alert, mask and toast types
Stars: ✭ 174 (-3.87%)
Mutual labels:  bootstrap
Yii2 Bootstrap
Yii 2 Bootstrap 3 Extension
Stars: ✭ 177 (-2.21%)
Mutual labels:  bootstrap
Reduce.jl
Symbolic parser generator for Julia language expressions using REDUCE algebra term rewriter
Stars: ✭ 172 (-4.97%)
Mutual labels:  repl
Laravel Bootstrap 4 Forms
Bootstrap 4 forms for Laravel 5/6/7/8
Stars: ✭ 181 (+0%)
Mutual labels:  bootstrap
Cognito Vue Bootstrap
This application illustrates how to use the Amazon Amplify with vue.js.
Stars: ✭ 180 (-0.55%)
Mutual labels:  bootstrap
Unifiedtransform
A school management Software
Stars: ✭ 2,248 (+1141.99%)
Mutual labels:  bootstrap
Zeus
An Electrifying Build System
Stars: ✭ 176 (-2.76%)
Mutual labels:  build-tool
Elm Repl
A REPL for Elm
Stars: ✭ 174 (-3.87%)
Mutual labels:  repl
Image Bootstrap
⛅️ Creates (chroots and) bootable virtual machine images; command line tool (Python 3)
Stars: ✭ 178 (-1.66%)
Mutual labels:  bootstrap
Fe
ε‰η«―ηƒ­ι—¨ζ–‡η« ι˜…θ―»
Stars: ✭ 174 (-3.87%)
Mutual labels:  bootstrap
Jupyter Php
A PHP Kernel for Jupyter
Stars: ✭ 179 (-1.1%)
Mutual labels:  repl
Win95.css
Responsive Bootstrap 4 windows 95/98 theme & landing template
Stars: ✭ 171 (-5.52%)
Mutual labels:  bootstrap
Stellar
Stellar is completely based on the latest version of Bootstrap 4. Stellar Admin is designed to reflect the simplicity and svelte of the components and UI elements and coded to perfection with well-organized code.
Stars: ✭ 176 (-2.76%)
Mutual labels:  bootstrap
Bootstrap Input Spinner
A Bootstrap 4 / jQuery plugin to create input spinner elements for number input
Stars: ✭ 176 (-2.76%)
Mutual labels:  bootstrap
Reactsimpleflexgrid
A way to quickly add a Grid Layout to your React app πŸš€
Stars: ✭ 181 (+0%)
Mutual labels:  bootstrap
Parameters
πŸ“Š Computation and processing of models' parameters
Stars: ✭ 181 (+0%)
Mutual labels:  bootstrap

calvin npm package

A minimalistic build tool for clojurescript in clojurescript that does not require the jvm.

Why?

In conjunction with boostrapped clojurescript calvin aims to enable a clojurescript jvm-less development environment

Current status

  1. Repls: calvin boostraps planck or lumo repls with the proper "classpath" as described in a lein project file
  2. Dependencies: calvin resolves and prints dependencies specified in lein project files
  3. Building: Calvin can now build your cljs project using the lumo build api and your lein-cljsbuild configuration. For more information look at the lumo build api

Installation

  1. Install lumo or planck

  2. Download and install via npm

Getting started

Once calvin is installed you can do this in your terminal

calvin -h

This will print out the help for calvin

Repls

To start one of the boostrapped repls you can

start a lumo repl

calvin repl

start a planck repl

calvin -p planck repl

Any remaining arguments are passed on to lumo/planck, so you can do things like

calvin repl my_script.cljs
calvin repl --dumb-terminal
calvin repl -c src -m my-project.main
calvin repl --socket-repl 3333

Dependencies

To discover the dependecies of a project

calvin deps

Calvin assumes there is a lein project file in the current directory. It will read such file and resolve transitive dependencies

Building

Build will read the cljsbuild :compiler options of yout project.clj file. Please note that some compiler options are not supported by the lumo.build.api

calvin build dev

Using node modules

Assuming npm is installed, here is an example of using an artifact from npm:

  1. Installation
npm install shelljs --save
  1. Invoking
(require '[cljs.nodejs :as node])
(def s (node/require "shelljs"))
(.echo s "foo")
  1. Latest node_modules inference in ClojureScript

ClojureScript versions 1.9.854 and after can treat node modules as namespaces.

Example cljsbuild configuration in the project.clj:

:cljsbuild {:builds
            {:dev {:source-paths ["src"]
                   :compiler {:output-to "out/main.js"
                              :main some-ns.main
                              :target :nodejs
                              ;; :npm-deps causes to treat node
                              ;; modules as proper name spaces
                              :npm-deps {:shelljs "0.7.8"}}}}}

Now the specified node module can be required like a ClojureScript namespace.

(require 'shelljs)
(shelljs/echo "foo")

Hacking

Calvin uses Figwheel for interactive development:

 lein figwheel
 node out/dev/figwheel-server.js
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].