Giter VIP home page Giter VIP logo

boot-cljsjs's Introduction

boot-cljsjs

CLJSJS logo

[cljsjs/boot-cljsjs "0.4.7"] ;; latest release

This project provides tasks for the boot build system to package Javascript dependencies in Clojurescript projects.

Using libraries

Please refer to the packages project for documentation.

Packaging a library

There are various tasks in the cljsjs.boot-cljsjs.packaging namespace to smooth packaging of libraries:

  • download can be used to download zip files containing the files you want to package
  • sift, which is a regular Boot task, can be used to move files to the desired locations and filter out files you don't want to end up in the jar
  • deps-cljs creates a deps.cljs file based on the information in the fileset

Full example:

(deftask package []
  (comp
    (download :url "https://github.com/facebook/react/releases/download/v0.12.2/react-0.12.2.zip"
              :checksum "6a242238790b21729a88c26145eca6b9"
              :unzip true)
    (sift :move {#"^react-.*/build/react.js" "cljsjs/development/react.inc.js"
                 #"^react-.*/build/react.min.js" "cljsjs/production/react.min.inc.js"})
    (sift :include #{#"^cljsjs"})
    (deps-cljs :name "cljsjs.react")))

;; This would then be used like this:
;; boot package build-jar

License

Copyright © 2014 Martin Klepsch and Juho Teperi

Distributed under the Eclipse Public License, the same as Clojure.

boot-cljsjs's People

Contributors

martinklepsch avatar deraen avatar danielsz avatar micha avatar jeluard avatar rabidpraxis avatar

Watchers

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