|
1 |
| -<div align="center"> |
| 1 | +<h1 align="center"> |
| 2 | + <a href="https://rescript-lang.org/"> |
| 3 | + ReScript |
| 4 | + </a> |
| 5 | +</h1> |
2 | 6 |
|
3 |
| - <h3> <a href="https://rescript-lang.org"> ReScript Documentation </a> | <a href="https://forum.rescript-lang.org/"> Forum </a> | <a href="https://rescript-lang.org.cn/community/roadmap#roadmap"> Roadmap</a> | <a href="https://rescript-lang.org.cn/"> 中文 </a> | <a href="https://green-labs.github.io/rescript-in-korean/"> 한국어 </a> </h3> |
4 |
| - |
5 |
| -</div> |
| 7 | +<p align="center"> |
| 8 | + <strong>Fast, Simple, Fully Typed JavaScript from the Future.</strong> |
| 9 | +</p> |
6 | 10 |
|
7 |
| -## Overview |
| 11 | +<p align="center"> |
| 12 | + <a href="https://www.npmjs.org/package/rescript"> |
| 13 | + <img src="https://img.shields.io/npm/v/rescript?color=brightgreen&label=npm%20package" alt="Current npm package version." /> |
| 14 | + </a> |
| 15 | + <a href="https://github.com/rescript-lang/rescript-compiler/actions"> |
| 16 | + <img src="https://github.com//rescript-lang/rescript-compiler/workflows/CI/badge.svg" alt="Current Github Actions workflow status." /> |
| 17 | + </a> |
| 18 | + <a href="https://github.com/rescript-lang/rescript-compiler/blob/HEAD/LICENSE"> |
| 19 | + <img src="https://img.shields.io/badge/License-LGPL%20v3-blue.svg" alt="ReScript is released under the LGPL license." /> |
| 20 | + </a> |
| 21 | + <a href="https://twitter.com/intent/follow?screen_name=rescriptlang"> |
| 22 | + <img src="https://img.shields.io/twitter/follow/rescriptlang.svg?label=Follow%20@rescriptlang" alt="Follow @rescriptlang" /> |
| 23 | + </a> |
| 24 | +</p> |
8 | 25 |
|
9 |
| -The compiler for ReScript: a statically typed functional language focused on shipping. |
| 26 | +<h3 align="center"> |
| 27 | + <a href="https://rescript-lang.org/docs/manual/latest/introduction">Introduction</a> |
| 28 | + <span> · </span> |
| 29 | + <a href="https://rescript-lang.org/docs/manual/latest/installation">Installation</a> |
| 30 | + <span> · </span> |
| 31 | + <a href="https://rescript-lang.org/try">Try Online</a> |
| 32 | + <span> · </span> |
| 33 | + <a href="https://forum.rescript-lang.org/">Forum</a> |
| 34 | + <span> · </span> |
| 35 | + <a href="CONTRIBUTING.md">Contribute</a> |
| 36 | +</h3> |
10 | 37 |
|
11 |
| -[](https://badge.fury.io/js/rescript)  |
| 38 | +ReScript is a robustly typed language that compiles to efficient and human-readable JavaScript. It comes with a lightning fast compiler toolchain that scales to any codebase size. |
12 | 39 |
|
13 |
| -## Installation |
| 40 | +- **Fast and Simple.** ReScript cares about a consistent and fast feedback loop for any codebase size. Refactor code, pull complex changes, or switch to feature branches as you please. No sluggish CI builds, stale caches, wrong type hints, or memory hungry language servers that slow you down. |
| 41 | +- **A Robust Type System.** Every ReScript app is fully typed and provides reliable type information for any given value in your program. We prioritize simpler types over complex types for the sake of clarity and easy debugability. No `any`, no magic types, no surprise `undefined`. |
| 42 | +- **Seamless Integration.** Use any library from JavaScript, export ReScript libraries to JavaScript, automatically generate TypeScript types. It's like you've never left the good parts of JavaScript at all. |
| 43 | +- **Tooling that just works out of the box.** A builtin pretty printer, memory friendly [VSCode](https://github.com/rescript-lang/rescript-vscode) & [Vim](https://github.com/rescript-lang/vim-rescript) plugins, a stable type system and compiler that doesn't require lots of extra configuration. ReScript brings all the tools you need to build reliable JavaScript, Node and ReactJS applications. |
| 44 | +- **Easy to adopt — without any lock-in.** ReScript was made with gradual adoption in mind. If you ever want to go back to plain JavaScript, just remove all source files and keep its clean JavaScript output. Tell your coworkers that your project will keep functioning with or without ReScript! |
14 | 45 |
|
15 |
| -```sh |
16 |
| -npm install --save-dev rescript |
17 |
| -``` |
| 46 | +ReScript is used by many companies to ship and maintain mission-critical products and is maintained by the [ReScript community](https://rescript-lang.org/community). |
18 | 47 |
|
19 |
| -## Contribution |
| 48 | +## Contents |
20 | 49 |
|
21 |
| -See [CONTRIBUTING.md](CONTRIBUTING.md). |
| 50 | +- [Getting Started](#-getting-started) |
| 51 | +- [Documentation](#-documentation) |
| 52 | +- [Upgrading](#-upgrading) |
| 53 | +- [How to Contribute](#-how-to-contribute) |
| 54 | +- [License](#-license) |
| 55 | +- [Acknowledgments](#-Acknowledgments) |
22 | 56 |
|
23 |
| -## Acknowledgments |
| 57 | +## 🎉 Getting Started |
24 | 58 |
|
25 |
| -- Thanks to the [OCaml](https://ocaml.org) team, obviously, without such a beautiful yet practical language, this project would not exist. The original type system was inherited from [it](jscomp/ml) with lots of modifications to fit with JS ecosystem better. |
26 |
| -- Thanks to [ninja-build](https://ninja-build.org), ReScript also comes with a blazing fast build tool on top of it, `ninja` is a truly [well engineered](http://aosabook.org/en/posa/ninja.html) scalable build tool |
27 |
| -- Thanks to [Bloomberg](https://www.techatbloomberg.com) and [Facebook](https://github.com/facebook/). This project began at Bloomberg and was published in 2016; without the support of Bloomberg, it would not have happened. This project's funded by Facebook since July 2017 |
| 59 | +Follow the [Installation Guide](https://rescript-lang.org/docs/manual/latest/installation) to set up a new ReScript project or integrate ReScript into your existing JavaScript project. |
28 | 60 |
|
29 |
| -## History |
| 61 | +For more information on building React apps with ReScript, see the [rescript-react documentation](https://rescript-lang.org/docs/react/latest/installation). |
30 | 62 |
|
31 |
| -This project was originally created by [Hongbo Zhang](https://github.com/bobzhang) in 2015 and |
32 |
| -still actively maintained by Hongbo Zhang hosted at |
33 |
| -[here](https://github.com/rescript-lang/rescript-compiler) |
| 63 | +For React Native apps, see the [rescript-react-native website](https://rescript-react-native.github.io/). |
34 | 64 |
|
35 |
| -It was named BuckleScript and rebranded into [ReScript](https://rescript-lang.org/) in 2020. |
36 |
| -The major contributions from contributors include super_errors from |
37 |
| -[Cheng](https://github.com/chenglou) and [Cristiano](https://github.com/cristianoc), react_jsx_ppx from [Ricky](https://github.com/rickyvetter). |
38 |
| -Cristiano also contributed to several important patches in the upstream native compiler, |
39 |
| -in particular, the pattern match compilation. |
| 65 | +## 📖 Documentation |
40 | 66 |
|
41 |
| -More details are available [here](https://github.com/rescript-lang/rescript-compiler/graphs/contributors). |
| 67 | +The full documentation for the ReScript language can be found on our [website](https://rescript-lang.org/). |
42 | 68 |
|
43 |
| -## Licensing |
| 69 | +The source for the ReScript documentation and website is hosted in a [separate repo](https://github.com/rescript-association/rescript-lang.org). |
44 | 70 |
|
45 |
| -See [COPYING](./COPYING) and [COPYING.LESSER](./COPYING.LESSER) |
| 71 | +## 🚀 Upgrading |
| 72 | + |
| 73 | +See the [Upgrading Guide](https://rescript-lang.org/docs/manual/latest/installation) for instructions on upgrading to newer ReScript versions. |
| 74 | + |
| 75 | +## 👏 How to Contribute |
| 76 | + |
| 77 | +### [Contributing Guide](CONTRIBUTING.md) |
| 78 | + |
| 79 | +Read our [Contributing Guide](CONTRIBUTING.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to ReScript. |
| 80 | + |
| 81 | +### [Code of Conduct][code] |
| 82 | + |
| 83 | +The ReScript community has adopted a Code of Conduct that we expect project participants to adhere to. |
| 84 | +Please read the [full text][code] so that you can understand what actions will and will not be tolerated. |
| 85 | + |
| 86 | +[code]: https://rescript-lang.org/community/code-of-conduct |
| 87 | + |
| 88 | +### [Roadmap][roadmap] |
| 89 | + |
| 90 | +You can learn more about our vision for ReScript in the [Roadmap][roadmap]. |
| 91 | + |
| 92 | +[roadmap]: https://rescript-lang.org/community/roadmap |
| 93 | + |
| 94 | +### [Discussions][discussions] |
| 95 | + |
| 96 | +For discussions on ongoing development, see the [Development](https://forum.rescript-lang.org/c/development/8) section of the ReScript forum. |
| 97 | + |
| 98 | +[discussions]: https://rescript-lang.org/community/roadmap |
| 99 | + |
| 100 | +## 📄 License |
| 101 | + |
| 102 | +ReScript is licensed under LGPL version 3, with relaxed rules about creating and distributing combined work. See the [LICENSE](LICENSE) file for details. |
46 | 103 |
|
47 | 104 | `vendor/ocaml.tar.gz` contains the official [OCaml](https://ocaml.org) compiler (version 4.14.0).
|
48 | 105 | Refer to its copyright and license notices for information about its licensing.
|
49 | 106 |
|
50 |
| -`vendor/ninja.tar.gz` contains the vendored [ninja](https://github.com/ninja-build/ninja). |
| 107 | +The `ninja` submodule contains the vendored [ninja](https://github.com/ninja-build/ninja) build system. |
51 | 108 | Refer to its copyright and license notices for information about its licensing.
|
52 | 109 |
|
53 |
| -Note that OSS is for sharing of knowledge, but the authorship should be respected. Copyright headers in each file, Acknowledgements and History section in this file should be kept **intact**. |
| 110 | +## 🏅 Acknowledgments |
| 111 | + |
| 112 | +ReScript was originally created by [Hongbo Zhang](https://github.com/bobzhang) in 2015. |
54 | 113 |
|
55 |
| -See [Credits](./CREDITS.md) for more details. |
| 114 | +See [CREDITS.md](CREDITS.md) for further acknowledgements and project history. |
0 commit comments