From 2b979149c1c38356f03bf80cf69bec0831223d42 Mon Sep 17 00:00:00 2001 From: Maxime Thirouin Date: Fri, 19 Mar 2021 17:05:41 +0100 Subject: [PATCH] ReScript renaming https://github.com/rescript-react-native/rescript-react-native/issues/731 --- .gitattributes | 3 --- .gitignore | 4 ++-- CHANGELOG.md | 2 +- LICENSE | 2 +- README.md | 32 ++++++++++++++++---------------- bsconfig.json | 7 ++----- package.json | 9 +++------ yarn.lock | 8 ++++---- 8 files changed, 29 insertions(+), 38 deletions(-) delete mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 13764bb..0000000 --- a/.gitattributes +++ /dev/null @@ -1,3 +0,0 @@ -# Tell github that .re and .rei files are Reason, sometimes recognized as C/C++ -*.re linguist-language=Reason -*.rei linguist-language=Reason diff --git a/.gitignore b/.gitignore index 28c4ad2..c5c6151 100644 --- a/.gitignore +++ b/.gitignore @@ -9,8 +9,8 @@ node_modules # npm unused lock file (we use yarn.lock) package-lock.json -# ReScript / Reason / Ocaml artifacts -#*.bs.js # we do want this files to ensure zero-cost +# ReScript artifacts +# *.bs.js # we do want this files to ensure zero-cost .bsb.lock **/lib/bs **/lib/ocaml diff --git a/CHANGELOG.md b/CHANGELOG.md index 381af89..4196b1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# Changelog of `@reason-react-native/__template__` +# Changelog of `@rescript-react-native/__template__` ## X.Y.Z - 20YY-MM-DD diff --git a/LICENSE b/LICENSE index 2561ad4..84b2002 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 @reason-react-native contributors +Copyright (c) 2019 @rescript-react-native contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 5f8da8a..f5c1aa6 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ `bsconfig.json` `"namespace"` field (more on this below), - Update all occurences of - - `@reason-react-native/__template__` - - `https://github.com/reason-react-native/__template__` + - `@rescript-react-native/__template__` + - `https://github.com/rescript-react-native/__template__` - `__template__` - `react-native-XXXXXXXXXX` - `https://github.com/OWNER/react-native-XXXXXXXXXX` @@ -23,18 +23,18 @@ --- -# `@reason-react-native/__template__` +# `@rescript-react-native/__template__` -[![Build Status](https://github.com/reason-react-native/__template__/workflows/Build/badge.svg)](https://github.com/reason-react-native/__template__/actions) -[![Version](https://img.shields.io/npm/v/@reason-react-native/__template__.svg)](https://www.npmjs.com/@reason-react-native/__template__) -[![Chat](https://img.shields.io/discord/235176658175262720.svg?logo=discord&colorb=blue)](https://reason-react-native.github.io/discord/) +[![Build Status](https://github.com/rescript-react-native/__template__/workflows/Build/badge.svg)](https://github.com/rescript-react-native/__template__/actions) +[![Version](https://img.shields.io/npm/v/@rescript-react-native/__template__.svg)](https://www.npmjs.com/@rescript-react-native/__template__) +[![ReScript Forum](https://img.shields.io/discourse/posts?color=e6484f&label=ReScript%20Forum&server=https%3A%2F%2Fforum.rescript-lang.org)](https://forum.rescript-lang.org/) -[ReScript](https://rescript-lang.org) / [Reason](https://reasonml.github.io) bindings for +[ReScript](https://rescript-lang.org) bindings for [`react-native-XXXXXXXXXX`](https://github.com/OWNER/react-native-XXXXXXXXXX). Exposed as `ReactNativeXxxxxxxxxx` module. -`@reason-react-native/__template__` X.y.\* means it's compatible with +`@rescript-react-native/__template__` X.y.\* means it's compatible with `react-native-XXXXXXXXXX` X.y.\* ## Installation @@ -45,22 +45,22 @@ is properly installed & configured by following their installation instructions, you can install the bindings: ```console -npm install @reason-react-native/__template__ +npm install @rescript-react-native/__template__ # or -yarn add @reason-react-native/__template__ +yarn add @rescript-react-native/__template__ ``` -`@reason-react-native/__template__` should be added to `bs-dependencies` in your +`@rescript-react-native/__template__` should be added to `bs-dependencies` in your `bsconfig.json`: ```diff { //... "bs-dependencies": [ - "reason-react", - "reason-react-native", + "@rescript/react", + "rescript-react-native", // ... -+ "@reason-react-native/__template__" ++ "@rescript-react-native/__template__" ], //... } @@ -92,11 +92,11 @@ releases. ## Contribute Read the -[contribution guidelines](https://github.com/reason-react-native/.github/blob/master/CONTRIBUTING.md) +[contribution guidelines](https://github.com/rescript-react-native/.github/blob/master/CONTRIBUTING.md) before contributing. ## Code of Conduct We want this community to be friendly and respectful to each other. Please read -[our full code of conduct](https://github.com/reason-react-native/.github/blob/master/CODE_OF_CONDUCT.md) +[our full code of conduct](https://github.com/rescript-react-native/.github/blob/master/CODE_OF_CONDUCT.md) so that you can understand what actions will and will not be tolerated. diff --git a/bsconfig.json b/bsconfig.json index 5e5bedc..7a08c1f 100644 --- a/bsconfig.json +++ b/bsconfig.json @@ -1,9 +1,6 @@ { - "name": "@reason-react-native/__template__", - "refmt": 3, - "reason": { - "react-jsx": 3 - }, + "name": "@rescript-react-native/__template__", + "reason": { "react-jsx": 3 }, "package-specs": { "module": "commonjs", "in-source": true diff --git a/package.json b/package.json index 2a80294..6ae849b 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,15 @@ { - "name": "@reason-react-native/__template__", + "name": "@rescript-react-native/__template__", "description": "ReScript bindings for react-native-XXXXXXXXXX", "version": "0.0.0", "publishConfig": { "access": "public" }, "peerDependencies": {}, - "repository": "https://github.com/reason-react-native/__template__.git", + "repository": "https://github.com/rescript-react-native/__template__.git", "license": "MIT", "keywords": [ "rescript", - "reason", - "reasonml", - "bucklescript", "react-native" ], "files": [ @@ -35,7 +32,7 @@ "release": "npmpub" }, "devDependencies": { - "bs-platform": "^8.2.0", + "bs-platform": "^9.0.0", "husky": "^4.0.0", "lint-staged": "^10.0.0", "npmpub": "^5.0.0", diff --git a/yarn.lock b/yarn.lock index ecd3fe9..39ff0bb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -246,10 +246,10 @@ braces@^3.0.1: dependencies: fill-range "^7.0.1" -bs-platform@^8.2.0: - version "8.3.2" - resolved "https://registry.yarnpkg.com/bs-platform/-/bs-platform-8.3.2.tgz#c307f1cc2d2397c3d088c7f3b62e9f493283cdcf" - integrity sha512-iOTi5JIlNPoCPq31NS9ET79FLyCpwTL2JZbgHz35LzY9Bch1iDtbBR3FVGhRbjphxelAP4fLlFONfUNp5Y3a5g== +bs-platform@^9.0.0: + version "9.0.2" + resolved "https://registry.yarnpkg.com/bs-platform/-/bs-platform-9.0.2.tgz#a6eac70eb8924a322556dacaccbfbc9b2a0d3a37" + integrity sha512-Ye9JqJ4Oa7mcjjoOVRYI8Uc2Cf8N7jQLWDcdUplY7996d/YErSR7WitmV7XnSwr4EvdrbwjEsg1NxNjUQv3ChA== callsites@^3.0.0: version "3.1.0"