-
Notifications
You must be signed in to change notification settings - Fork 816
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pixi-viewport] create package for version 3.4.1
- Loading branch information
Jean-Pierre
committed
Mar 18, 2019
1 parent
5efb5c6
commit 921bf0a
Showing
4 changed files
with
4,531 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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))) |
Oops, something went wrong.