New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Preact] #719
Merged
Merged
[Preact] #719
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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,21 @@ | ||
# cljsjs/preact | ||
|
||
[](dependency) | ||
```clojure | ||
[cljsjs/preact "6.0.0-beta"] ;; 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 the packaged library like so: | ||
|
||
|
||
```clojure | ||
(ns your-ns | ||
(:require [cljsjs.preact])) | ||
|
||
``` | ||
|
||
|
||
[flibs]: https://github.com/clojure/clojurescript/wiki/Packaging-Foreign-Dependencies |
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,31 @@ | ||
|
||
(set-env! | ||
:resource-paths #{"resources"} | ||
:dependencies '[[cljsjs/boot-cljsjs "0.5.2" :scope "test"]]) | ||
|
||
(require '[cljsjs.boot-cljsjs.packaging :refer :all]) | ||
|
||
(def +lib-version+ "6.0.0") | ||
(def +version+ (str +lib-version+ "-beta")) | ||
|
||
(task-options! | ||
pom {:project 'cljsjs/preact | ||
:version +version+ | ||
:description "Preact is a fast, 3kb alternative to React, with the same ES2015 API." | ||
:url "https://preactjs.com" | ||
:scm {:url "https://github.com/developit/preact"} | ||
:license {"MIT" "http://opensource.org/licenses/MIT"}}) | ||
|
||
|
||
(deftask package [] | ||
(comp | ||
(download :url (str "https://cdnjs.cloudflare.com/ajax/libs/preact/" +lib-version+ "/preact.js") | ||
:checksum "03d2993b692643a21b0fc25cae936533") | ||
(download :url (str "https://cdnjs.cloudflare.com/ajax/libs/preact/" +lib-version+ "/preact.min.js") | ||
:checksum "23d3be42e4b4c25b76f7ac88f976eccb") | ||
(sift :move {#"preact\.js" "cljsjs/preact/development/preact.inc.js" | ||
#"preact\.min\.js" "cljsjs/preact/development/preact.min.inc.js"}) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be |
||
(sift :include #{#"^cljsjs"}) | ||
(deps-cljs :name "cljsjs.preact") | ||
(pom) | ||
(jar))) |
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,21 @@ | ||
/********************************************************************** | ||
* Extern for preact | ||
* Generated by http://jmmk.github.io/javascript-externs-generator | ||
**********************************************************************/ | ||
var preact = { | ||
"h": function () {}, | ||
"cloneElement": function () {}, | ||
"Component": function () {}, | ||
"render": function () {}, | ||
"rerender": function () {}, | ||
"options": {} | ||
}; | ||
preact.Component.prototype = { | ||
"linkState": function () {}, | ||
"setState": function () {}, | ||
"forceUpdate": function () {}, | ||
"render": function () {} | ||
}; | ||
/********************************************************************** | ||
* End Generated Extern for preact | ||
/**********************************************************************/ |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use
-0
instead of-beta
as suffix.