Skip to content
Testing, printing, coloring, and other tools to effectively write native Reason code.
Branch: master
Clone or download
bandersongit and facebook-github-bot Remove remaining usage of Str in Rely, Pastel, and Common (#165)
Summary:
I've been working on getting Rely to work with JSOO (spoiler alert, I succeeded with these changes) and Str was one of the blocking issues (and we wanted to remove it anyway). This PR removes the reamining usages of Str in Rely, Pastel, and Common.

I also added //Provides: comments in the Pastel js stubs so that they correctly get picked up by JSOO.

There was a small change in behavior due to the behavior of Str.split_delim/Str.full_split vs. Re.split_full. I implemented a split_delim in the case we actually relied on it, and in the other cases the change was non functional and I think was better than before (you can see some snapshots where we basically had the empty string inside of a default Pastel get removed)
Pull Request resolved: #165

Reviewed By: jordwalke

Differential Revision: D15386118

Pulled By: bandersongit

fbshipit-source-id: 4597ba37baaebcec7611504e978790663fcdfbc0
Latest commit d3203ea May 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.ci Fix parsing of mismatched signatures in Reason error reporter Apr 4, 2019
.circleci Rename chalk to pastel, chalk-console to pastel-console (#31) Dec 6, 2018
esy.lock update changelog and .json for 1.0.2 release May 3, 2019
scripts run chmod +x to mark test-ci script as executable Apr 10, 2019
shared-src Remove remaining usage of Str in Rely, Pastel, and Common (#165) May 17, 2019
src Remove remaining usage of Str in Rely, Pastel, and Common (#165) May 17, 2019
tests Remove remaining usage of Str in Rely, Pastel, and Common (#165) May 17, 2019
.gitattributes Fixup commit for shipit Dec 12, 2018
.gitignore Generate junit results and publish in CI (#128) Mar 22, 2019
CHANGELOG.md update changelog and .json for 1.0.2 release May 3, 2019
CODE_OF_CONDUCT.md Initial commit Nov 28, 2018
CONTRIBUTING.md Upgrade esy-prepublish scripts so that it accepts individual json Dec 3, 2018
LICENSE Initial commit Nov 28, 2018
ORIGINS.md Useful Path operations for filesytem. (#153) Apr 19, 2019
README.md
azure-pipelines.yml Generate junit results and publish in CI (#128) Mar 22, 2019
console.esy.lock.json Automatically run refmterr tests in Linux and MacOS on Azure pipelines ( Dec 7, 2018
console.json bump .json files for console 0.1.0 and pastel 0.2.1 and update change… Mar 6, 2019
console.opam Initial commit Nov 28, 2018
dir.json Dir (#139) Apr 11, 2019
dir.opam Dir (#139) Apr 11, 2019
dune Set up tests project using Rely (#50) Dec 17, 2018
dune-project Set up tests project using Rely (#50) Dec 17, 2018
esy.json add dependency to qcheck-core, update qcheck-rely to depend on that a… May 2, 2019
esy.lock.json Pull out common util logic, Improve diffs for signature mismatches (#44) Dec 20, 2018
file-context-printer.json update fcp.json and changelog for fcp 0.0.3 Feb 27, 2019
file-context-printer.opam Initial commit Nov 28, 2018
fs.json Useful Path operations for filesytem. (#153) Apr 19, 2019
fs.opam Useful Path operations for filesytem. (#153) Apr 19, 2019
pastel-console.json update .json files for all packages except refmterr to have a more re… Jan 10, 2019
pastel-console.opam Rename chalk to pastel, chalk-console to pastel-console (#31) Dec 6, 2018
pastel.json Remove remaining usage of Str in Rely, Pastel, and Common (#165) May 17, 2019
pastel.opam Rename chalk to pastel, chalk-console to pastel-console (#31) Dec 6, 2018
path.json Path module. Type safe file path manipulation. (#136) Apr 11, 2019
path.opam Path module. Type safe file path manipulation. (#136) Apr 11, 2019
qcheck-rely.json update changelog and .json for 1.0.2 release May 3, 2019
qcheck-rely.opam Qcheck rely (#156) May 1, 2019
reason-native.opam run reason-native tests along with scirpts/re tests in sandcastle Apr 12, 2019
refmterr.esy.lock.json Move refmterr dependencies to refmterr.json Dec 1, 2018
refmterr.json Pull out common util logic, Improve diffs for signature mismatches (#44) Dec 20, 2018
refmterr.opam Initial commit Nov 28, 2018
rely.json update rely.json and CHANGELOG.md for 2.1.0 release (#158) Apr 26, 2019
rely.opam rename test runner to rely Dec 4, 2018
tests.opam Set up tests project using Rely (#50) Dec 17, 2018
unicode-config.json Add unicode json and readme for publish script (#107) Feb 21, 2019
unicode-config.opam Move Unicode and UnicodeConfig under reason-native Feb 19, 2019
unicode.json Add unicode json and readme for publish script (#107) Feb 21, 2019
unicode.opam Move Unicode and UnicodeConfig under reason-native Feb 19, 2019

README.md

Reason Native

Build Status

Testing, printing, coloring, and other tools to effectively write native Reason code.

Packages:

  • @reason-native/pastel: Terminal highlighting with support for nesting and style propagation.
  • @reason-native/console: A web-influenced polymorphic console API for native Console.log(anything) with runtime printing.
  • @reason-native/file-context-printer: Utility for displaying snippets of files on the command line.
  • @reason-native/refmterr: Utility for extracting structure from unstructured ocaml compiler errors, and displaying them.
  • @reason-native/rely: Native Jest style API.
  • @reason-native/pastel-console: To be used in devDependencies. Enhances console with colors.

Status:

Inside of this repo, there are several packages inside the src directory that are to be individually released when their APIs are sufficiently stable.

Examples

Contributing

  • install esy (https://esy.sh/)
  • run esy install and esy build
  • test executables are currently defined in the respective .json files for each repository, to run them run esy x ExecutableName.exe

Breaking changes

The packages in reason-native adhere to semantic versioning. Notably we do not consider changes that may induce warning 9 errors (such as adding new fields to records) to be breaking changes. Consequently minor version upgrades may cause warning 9 errors.

License

reason-native is MIT licensed, as found in the LICENSE file.

You can’t perform that action at this time.