Skip to content

Commit a948ad1

Browse files
committed
chore(init): rescript-chakra
0 parents  commit a948ad1

File tree

11 files changed

+254
-0
lines changed

11 files changed

+254
-0
lines changed

.gitignore

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
*.exe
2+
*.obj
3+
*.out
4+
*.compile
5+
*.native
6+
*.byte
7+
*.cmo
8+
*.annot
9+
*.cmi
10+
*.cmx
11+
*.cmt
12+
*.cmti
13+
*.cma
14+
*.a
15+
*.cmxa
16+
*.obj
17+
*~
18+
*.annot
19+
*.cmj
20+
*.bak
21+
**/lib/bs
22+
**/lib/ocaml
23+
*.mlast
24+
*.mliast
25+
**/.vscode
26+
**/.merlin
27+
**/.bsb.lock
28+
/node_modules/
29+
**/node_modules/**
30+
### Node ###
31+
# Logs
32+
logs
33+
*.log
34+
npm-debug.log*
35+
yarn-debug.log*
36+
yarn-error.log*
37+
lerna-debug.log*
38+
39+
# Diagnostic reports (https://nodejs.org/api/report.html)
40+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
41+
42+
# Runtime data
43+
pids
44+
*.pid
45+
*.seed
46+
*.pid.lock
47+
48+
# Directory for instrumented libs generated by jscoverage/JSCover
49+
lib-cov
50+
51+
# Coverage directory used by tools like istanbul
52+
coverage
53+
*.lcov
54+
55+
# nyc test coverage
56+
.nyc_output
57+
58+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
59+
.grunt
60+
61+
# Bower dependency directory (https://bower.io/)
62+
bower_components
63+
64+
# node-waf configuration
65+
.lock-wscript
66+
67+
# Compiled binary addons (https://nodejs.org/api/addons.html)
68+
build/Release
69+
70+
# Dependency directories
71+
node_modules/
72+
jspm_packages/
73+
74+
# TypeScript v1 declaration files
75+
typings/
76+
77+
# TypeScript cache
78+
*.tsbuildinfo
79+
80+
# Optional npm cache directory
81+
.npm
82+
83+
# Optional eslint cache
84+
.eslintcache
85+
86+
# Optional stylelint cache
87+
.stylelintcache
88+
89+
# Microbundle cache
90+
.rpt2_cache/
91+
.rts2_cache_cjs/
92+
.rts2_cache_es/
93+
.rts2_cache_umd/
94+
95+
# Optional REPL history
96+
.node_repl_history
97+
98+
# Output of 'npm pack'
99+
*.tgz
100+
101+
# Yarn Integrity file
102+
.yarn-integrity
103+
104+
# dotenv environment variables file
105+
.env
106+
.env.test
107+
.env*.local
108+
109+
# parcel-bundler cache (https://parceljs.org/)
110+
.cache
111+
.parcel-cache
112+
113+
# Next.js build output
114+
.next
115+
116+
# Nuxt.js build / generate output
117+
.nuxt
118+
dist
119+
120+
# Storybook build outputs
121+
.out
122+
.storybook-out
123+
storybook-static
124+
125+
# rollup.js default build output
126+
dist/
127+
128+
# Gatsby files
129+
.cache/
130+
# Comment in the public line in if your project uses Gatsby and not Next.js
131+
# https://nextjs.org/blog/next-9-1#public-directory-support
132+
# public
133+
134+
# vuepress build output
135+
.vuepress/dist
136+
137+
# Serverless directories
138+
.serverless/
139+
140+
# FuseBox cache
141+
.fusebox/
142+
143+
# DynamoDB Local files
144+
.dynamodb/
145+
146+
# TernJS port file
147+
.tern-port
148+
149+
# Stores VSCode versions used for testing VSCode extensions
150+
.vscode-test
151+
152+
# Temporary folders
153+
tmp/
154+
temp/
155+
156+
### Reasonml ###
157+
/lib
158+

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
examples/
2+
src/**/*.js
3+
lib/**/*
4+
**/*.merlin
5+
**/*.lock

CHANGELOG.md

Whitespace-only changes.

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# rescript-chakra
2+
> ReScript binding for React Chakra-UI.
3+
4+
## Installation
5+
6+
Run the following in your favorit console:
7+
```console
8+
> yarn add rescript-chakra
9+
```
10+
11+
**OR**
12+
13+
```console
14+
> npm install --save rescript-chakra
15+
```
16+
17+
Then, add `rescript-chakra` in your `bsconfig.json`:
18+
```diff
19+
-- "bs-dependencies": [],
20+
++ "bs-dependencies": [rescript-chakra],
21+
```
22+
23+
## Usage
24+
25+
```rescript
26+
27+
```
28+
29+
Or you can check this [**Example**](https://github.com/ri7nz/rescript-chakra/tree/main/examples).
30+
31+
## API
32+
> (WIP): docs

bsconfig.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "rescript-chakra",
3+
"refmt": 3,
4+
"reason": {
5+
"react-jsx": 3
6+
},
7+
"suffix": ".js",
8+
"bsc-flags": ["-bs-super-errors", "-bs-no-version-header"],
9+
"sources": [
10+
{ "dir": "src", "subdirs": true },
11+
{ "dir": "examples", "subdirs": true, "type": "dev" }
12+
],
13+
"package-specs": {
14+
"module": "es6",
15+
"in-source": true
16+
}
17+
}

examples/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */

examples/app.res

Whitespace-only changes.

package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "rescript-chakra",
3+
"version": "0.0.0",
4+
"description": "ReScript binding for React Chakra-UI.",
5+
"author": "ri7nz <[email protected]>",
6+
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/ri7nz/rescript-chakra.git"
10+
},
11+
"bugs": "https://github.com/ri7nz/rescript-chakra/issues",
12+
"scripts": {
13+
"start": "rescript build -w",
14+
"build": "rescript build -with-deps",
15+
"clean": "rescript clean"
16+
},
17+
"publishConfig": {
18+
"access": "public"
19+
},
20+
"devDependencies": {
21+
"rescript": "9.1.1"
22+
}
23+
}

src/Chakra.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
3+
4+
console.log("rescript-chakra");
5+
6+
export {
7+
8+
}
9+
/* Not a pure module */

src/Chakra.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"rescript-chakra"->Js.log;

0 commit comments

Comments
 (0)