5 |
6 |
7 |
8 |
9 |
10 |
11 |
15 |
16 |
17 | example
18 |
19 |
20 |
21 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Sander
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/example/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 vscodefy
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@reasonbr/bs-react-reveal",
3 | "version": "0.0.2",
4 | "author": "Marcos Oliveira ",
5 | "description": "ReasonML bindings for ReactReveal",
6 | "main": "src/ReactReveal.re",
7 | "license": "MIT",
8 | "keywords": [
9 | "react",
10 | "reveal",
11 | "react-reveal",
12 | "bs-react-reveal",
13 | "react-reveal-reasonml",
14 | "reasonml",
15 | "reason-bindings",
16 | "react-reveal-bindings"
17 | ],
18 | "repository": {
19 | "type": "git",
20 | "url": "https://github.com/reasonbr/bs-react-reveal"
21 | },
22 | "homepage": "https://github.com/reasonbr/bs-react-reveal",
23 | "files": [
24 | "src/",
25 | "bsconfig.json"
26 | ],
27 | "scripts": {
28 | "clean": "bsb -clean-world",
29 | "build": "bsb -make-world",
30 | "watch": "bsb -make-world -w",
31 | "test": "jest"
32 | },
33 | "devDependencies": {
34 | "@glennsl/bs-jest": "0.5.1",
35 | "bs-platform": "8.1.1",
36 | "jest": "26.0.1",
37 | "reason-react": "0.9.1"
38 | },
39 | "peerDependencies": {
40 | "reason-react": "0.9.1"
41 | },
42 | "dependencies": {
43 | "react-reveal": "1.2.2"
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/example/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 |
3 | ## Setup your development environment
4 |
5 | All the dependencies can be install via your favorite package manager:
6 |
7 | ```bash
8 | yarn install
9 | # Or
10 | npm install
11 | ```
12 |
13 | That's it! You're up and running, you can start the project with:
14 |
15 | ```bash
16 | yarn start
17 | # Or
18 | npm run start
19 | ```
20 |
21 | ### Running Tests
22 |
23 | This project uses Jest as a test framework. You can run the tests of the project with:
24 |
25 | ```bash
26 | yarn test
27 | # Or
28 | npm run test
29 | ```
30 |
31 | ### Creating production builds
32 |
33 | To create a production build of the application, you can run:
34 |
35 | ```bash
36 | yarn build
37 | # Or
38 | npm run build
39 | ```
40 |
41 | This will output the compiled files in `build/`.
42 |
43 | ### Repository Structure
44 |
45 | The following snippet describes example's repository structure.
46 |
47 | ```text
48 | .
49 | ├── config/
50 | | Configuration files used to build the project, such as the webpack configuration.
51 | │
52 | ├── public/
53 | | Static assets that you want to include when serving your application.
54 | │ The content of this folder will get copied to the production build.
55 | │
56 | ├── src/
57 | | Source code of the project application.
58 | │
59 | ├── tests/
60 | | Unit tests of the project.
61 | │
62 | ├── LICENSE
63 | │
64 | ├── package.json
65 | │
66 | └── README.md
67 | ```
68 |
--------------------------------------------------------------------------------
/example/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "version": "0.1.0",
4 | "description": "A short, but powerful statement about your project",
5 | "author": "vscodefy",
6 | "license": "MIT",
7 | "homepage": "https://github.com//example",
8 | "bugs": {
9 | "url": "https://github.com//example/issues"
10 | },
11 | "repository": {
12 | "type": "git",
13 | "url": "https://github.com//example.git"
14 | },
15 | "keywords": [
16 | "BuckleScript",
17 | "Reason",
18 | "ReasonReact"
19 | ],
20 | "dependencies": {
21 | "react": "^16.12.0",
22 | "react-dom": "^16.12.0",
23 | "react-reveal": "^1.2.2",
24 | "reason-react": ">=0.7.0"
25 | },
26 | "devDependencies": {
27 | "@reasonbr/bs-react-reveal": "0.0.1",
28 | "bs-platform": "^8.1.1",
29 | "bs-webapi": "^0.15.6",
30 | "concurrently": "^5.0.2",
31 | "css-loader": "^3.4.2",
32 | "html-webpack-plugin": "^3.2.0",
33 | "mini-css-extract-plugin": "^0.9.0",
34 | "optimize-css-assets-webpack-plugin": "^5.0.3",
35 | "style-loader": "^1.1.2",
36 | "terser-webpack-plugin": "^2.3.2",
37 | "webpack": "^4.41.5",
38 | "webpack-cli": "^3.3.10",
39 | "webpack-dev-server": "^3.10.1"
40 | },
41 | "scripts": {
42 | "build": "bsb -make-world && NODE_ENV=production webpack --config config/webpack.config.js && cp -n public/* build/ | true",
43 | "start": "concurrently -c --kill-others 'yarn start:bsb' 'yarn start:webpack'",
44 | "start:bsb": "bsb -make-world -w",
45 | "start:webpack": "webpack-dev-server --config config/webpack.config.js --open",
46 | "clean": "bsb -clean-world",
47 | "format": "bsrefmt --in-place */**/*.re */*.re"
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/example/src/Index.re:
--------------------------------------------------------------------------------
1 | open ReactReveal;
2 |
3 | [@bs.val]
4 | external import: string => unit = "require";
5 |
6 | import("./styles.css");
7 |
8 | module Divider = {
9 | [@react.component]
10 | let make = () =>