Skip to content
Permalink
Browse files

Merge pull request #1890 from 2knu/create-re-resizable

[re-resizable] created with version 5.0.0
  • Loading branch information...
Deraen committed Jun 12, 2019
2 parents 1a0b27c + 40a4125 commit c744b27840853efc9aa75dd9b5ae24caa5e7a04c
@@ -0,0 +1,28 @@
# cljsjs/re-resizable

https://github.com/bokuweb/re-resizable


[](dependency)
```clojure
[cljsjs/re-resizable "5.0.0-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 the packaged library like so:

```clojure
(ns application.core
(:require cljsjs.re-resizable))
;Example
[:> (aget js/ReResizable "Resizable")
{:style {:background-color "red"}
:defaultSize {:width 200
:height 200}}
"test"]
```
[flibs]: https://clojurescript.org/reference/packaging-foreign-deps
@@ -0,0 +1,4 @@
{"cljsjs/re-resizable/development/re-resizable.inc.js"
"ADB1600EAF7D4504E6E978D3792857C6",
"cljsjs/re-resizable/production/re-resizable.min.inc.js"
"825401190446D7077A9A5AD1737AD2BA"}
@@ -0,0 +1,35 @@
(set-env!
:resource-paths #{"resources"}
:dependencies '[[cljsjs/boot-cljsjs "0.10.3" :scope "test"]])

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

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

(task-options!
pom {:project 'cljsjs/re-resizable
:version +version+
:description "A resizable component for React."
:url "https://github.com/bokuweb/re-resizable"
:scm {:url "https://github.com/cljsjs/packages"}
:license {"MIT" "http://opensource.org/licenses/MIT"}})

(deftask package []
(comp
(run-commands :commands [["npm" "install" "--include-dev"]
["npm" "run" "build:dev"]
["npm" "run" "build:prod"]
["rm" "-rf" "./node_modules"]])
(sift :move {#".*re-resizable.inc.js" "cljsjs/re-resizable/development/re-resizable.inc.js"
#".*re-resizable.min.inc.js" "cljsjs/re-resizable/production/re-resizable.min.inc.js"})
(sift :include #{#"^cljsjs"})
(deps-cljs :name "cljsjs.re-resizable")
(deps-cljs :foreign-libs [{:file #"re-resizable.inc.js"
:file-min #"re-resizable.min.inc.js"
:provides ["cljsjs.re-resizable"]
:global-exports '{"re-resizable" ReResizable}}]
:externs [#"re-resizable.ext.js"])
(pom)
(jar)
(validate-checksums)))
@@ -0,0 +1,61 @@
/**********************************************************************
* Extern for ReResizable
* Generated by http://jmmk.github.io/javascript-externs-generator
**********************************************************************/
var ReResizable = {
"Resizable": {
"defaultProps": {
"enable": {
"bottom": {},
"bottomLeft": {},
"bottomRight": {},
"left": {},
"right": {},
"top": {},
"topLeft": {},
"topRight": {}
},
"grid": {},
"lockAspectRatio": {},
"lockAspectRatioExtraHeight": {},
"lockAspectRatioExtraWidth": {},
"onResize": function () {},
"onResizeStart": function () {},
"onResizeStop": function () {},
"resizeRatio": {},
"scale": {},
"snapGap": {},
"style": {}
}
}
};
ReResizable.Resizable.prototype = {
"base": function () {},
"calculateNewMaxFromBoundary": function () {},
"calculateNewSizeFromAspectRatio": function () {},
"calculateNewSizeFromDirection": function () {},
"componentDidMount": function () {},
"componentWillReceiveProps": function () {},
"componentWillUnmount": function () {},
"constructor": function () {},
"createSizeForCssProperty": function () {},
"forceUpdate": function () {},
"getParentSize": function () {},
"isReactComponent": function () {},
"onMouseMove": function () {},
"onMouseUp": function () {},
"onResizeStart": function () {},
"parentNode": function () {},
"propsSize": function () {},
"render": function () {},
"renderResizer": function () {},
"setBoundingClientRect": function () {},
"setState": function () {},
"size": function () {},
"sizeStyle": function () {},
"updateExtendsProps": function () {},
"updateSize": function () {}
};
/**********************************************************************
* End Generated Extern for ReResizable
/**********************************************************************/
@@ -0,0 +1,3 @@
(function () {
window["ReResizable"] = require('re-resizable');
})();
@@ -0,0 +1,66 @@
{
"name": "@cljsjs/re-resizable-bundle",
"private": true,
"scripts": {
"build:dev": "webpack --mode development",
"build:prod": "webpack --mode production --output-filename re-resizable.min.inc.js"
},
"dependencies": {
"fast-memoize": "^2.5.1",
"re-resizable": "5.0.0"
},
"devDependencies": {
"@babel/cli": "7.4.4",
"@babel/core": "7.4.5",
"@babel/plugin-proposal-class-properties": "7.4.4",
"@babel/plugin-transform-modules-commonjs": "7.4.4",
"@babel/preset-react": "7.0.0",
"@babel/preset-typescript": "7.3.3",
"@babel/traverse": "7.4.5",
"@babel/types": "7.4.4",
"@emotion/core": "10.0.10",
"@storybook/addon-info": "5.0.11",
"@storybook/addon-options": "5.0.11",
"@storybook/react": "5.0.11",
"@types/node": "12.0.7",
"@types/react": "16.8.7",
"@types/react-dom": "16.8.4",
"@types/sinon": "7.0.12",
"avaron": "0.2.0",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.0.1",
"babel-loader": "8.0.6",
"babel-plugin-external-helpers": "6.22.0",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-object-assign": "6.22.0",
"babel-plugin-transform-object-rest-spread": "6.26.0",
"babel-polyfill": "6.26.0",
"babel-preset-env": "1.7.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-flow": "6.23.0",
"babel-preset-react": "6.24.1",
"babel-register": "6.26.0",
"cross-env": "5.2.0",
"gh-pages": "2.0.1",
"npm-run-all": "4.1.5",
"prettier": "1.17.1",
"rollup": "1.13.1",
"rollup-plugin-babel": "4.3.2",
"rollup-plugin-commonjs": "10.0.0",
"rollup-plugin-node-globals": "1.4.0",
"rollup-plugin-node-resolve": "5.0.1",
"rollup-plugin-replace": "2.2.0",
"rollup-plugin-typescript2": "0.21.1",
"rollup-watch": "4.3.1",
"sinon": "7.3.2",
"tslint": "5.17.0",
"tslint-config-google": "1.0.1",
"tslint-config-prettier": "1.18.0",
"tslint-plugin-prettier": "2.0.1",
"typescript": "3.5.1",
"webpack": "4.29.0",
"webpack-command": "0.4.2",
"react": "16.8.6",
"react-dom": "16.8.6"
}
}
@@ -0,0 +1,8 @@
module.exports = {
entry: {
're-resizable': './main.js'
},
output: {
filename: '[name].inc.js'
}
};

0 comments on commit c744b27

Please sign in to comment.
You can’t perform that action at this time.