Skip to content

Commit

Permalink
[pixi-viewport] create package for version 3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Pierre committed Mar 18, 2019
1 parent 5efb5c6 commit 921bf0a
Show file tree
Hide file tree
Showing 4 changed files with 4,531 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pixi-viewport/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# cljsjs/pixi-viewport

[](dependency)
```clojure
[cljsjs/pixi-viewport "3.4.1-0"] ;; latest release
```
[](/dependency)

This jar comes with `deps.cljs` as used by the [Foreign Libs][flibs] feature
of the ClojureScript compiler. After adding the above dependency to your project
you can require and use the packaged library like so:

```clojure
(ns application.core
(:require cljsjs.pixi-viewport))

(def viewport (js/PIXI.extras.Viewport)
```
Contains complete PIXI with the extension of pixi-viewport in it.

Externs were generated using https://github.com/jmmk/javascript-externs-generator

[flibs]: https://clojurescript.org/reference/packaging-foreign-deps
4 changes: 4 additions & 0 deletions pixi-viewport/boot-cljsjs-checksums.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{"cljsjs/pixi-viewport/development/pixi-viewport.inc.js"
"2AAC799E6F6CFAACC4F65C819F5B50EF",
"cljsjs/pixi-viewport/production/pixi-viewport.min.inc.js"
"07668D4C2346D407BB873F697B31C237"}
32 changes: 32 additions & 0 deletions pixi-viewport/build.boot
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
(set-env!
:resource-paths #{"resources"}
:dependencies '[[cljsjs/boot-cljsjs "0.10.3" :scope "test"]
[cljsjs/pixi "4.8.6-0"]])

(require '[cljsjs.boot-cljsjs.packaging :refer :all])

(def +lib-version+ "3.4.1")
(def +version+ (str +lib-version+ "-0"))

(task-options!
pom {:project 'cljsjs/pixi-viewport
:version +version+
:description "A highly configurable viewport/2D camera designed to work with pixi.js"
:url "https://github.com/davidfig/pixi-viewport"
:scm {:url "https://github.com/cljsjs/packages"}
:license {"MIT" "http://opensource.org/licenses/MIT"}})

(deftask package []
(comp
(download
:url (format "https://github.com/davidfig/pixi-viewport/releases/download/%s/pixi-viewport.min.js" +lib-version+)
:target "cljsjs/pixi-viewport/production/pixi-viewport.min.inc.js")
(download
:url (format "https://github.com/davidfig/pixi-viewport/releases/download/%s/pixi-viewport.js" +lib-version+)
:target "cljsjs/pixi-viewport/development/pixi-viewport.inc.js")
(sift :include #{#"^cljsjs"})
(deps-cljs :name "cljsjs.pixi-viewport"
:requires ["cljsjs.pixi"])
(pom)
(jar)
(validate-checksums)))
Loading

0 comments on commit 921bf0a

Please sign in to comment.