cljsjs / boot-cljsjs

Helper tasks to aid the packaging of JS dependencies for Clojurescript projects
66 stars 22 forks source link

Deprecate from-jars (and maybe from-webjars) task #10

Closed Deraen closed 7 years ago

Deraen commented 9 years ago

On boot rc5 the sift task now has :add-jar option.

(from-jars "react/react.js" :target "public/js/react.inc.js")
# would now be
(sift :add-jar {'com.facebook/react #"react/(externs/)?react.js"})
(sift :move {#"react/react.js" "react/react.inc.js"
             #"react/externs/react.js" "react/react.ext.js")

from cli:

❯ boot -d com.facebook/react sift --add-jar com.facebook/react:"react/(externs/)?react.js" sift --move "react/react.js":"react/react.inc.js" --move "react/externs/react.js":"react/react.ext.js"                                                                                   
Sifting output files...
Adding jar entries from react-0.12.2.1.jar...
Sifting output files...

~/tmp master*  
❯ tree target
target       
└── react
    ├── react.ext.js
    └── react.inc.js
martinklepsch commented 9 years ago

that's cool!

Deraen commented 7 years ago

Old tasks are removed in the latest version.