GithubHelp home page GithubHelp logo

isabella232 / 2016-09-09-clojure-training Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metosin/2016-09-09-clojure-training

0.0 0.0 0.0 46 KB

Material for 2016-09-09 intermediate Clojure training topics about Tooling and Workflow; and Full-stack apps

Shell 0.96% Clojure 93.23% CSS 5.31% HTML 0.50%

2016-09-09-clojure-training's Introduction

Metosin Clojure Training 2016-09-09

This projects consists of two parts.

Start the app for development

Boot

  • All: Install the child project to local Maven repo: cd checkouts/example-component-lib; boot build
  • Cursive: boot dev and connect to remote repl
  • Fireplace: boot dev and connect to remote repl
  • Cider: boot dev and M-x cider-connect

Lein

  • All: Install the child project to local Maven repo: cd checkouts/example-component-lib; lein install
  • lein less4j auto
  • lein figwheel
  • Cursive: Start repl from cursive or lein repl and connect to remote repl
  • Fireplace: lein repl and connect to remote repl
  • Cider: M-x cider-jack-in to start repl or lein repl and M-x cider-connect
  • Run (go) on the repl

File tree

Common

  • Source files are separated per filetype, common practice(?)
  • Helpful as some files have different roles
    • Cljs files are input only
    • Clj is input only if AOT compiled, but input+output if no AOT
  • src/clj
  • src/cljc
  • src/cljs
  • src/less
  • test/clj
  • test/cljc
  • test/cljs

Boot

  • build.boot Boot entry file
  • boot.properties Java properties file, defines Boot version used
    • by the time build.boot is read, Boot is already running - need for separate file
  • src/cljs/js/main.cljs.edn configuration file for Boot-cljs, will result in result being written to js/main.js path inside the fileset.

Lein

  • project.clj Lein configuration file
  • lein-target The directory used for files written by Lein stuff, in development some parts are included in classpath to serve files from

Cljs macros are defined in Clj files, where would you place such file?

TODO

  • boot-clj/boot-cljs#95
  • New boot-cljs release for compiler-options precedence change
  • Less4clj 1.9.0-alpha12 compat

[]: vim: set nospell :

2016-09-09-clojure-training's People

Contributors

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